@basetime/a2w-api-ts
v2.2.3
Published
Client library that communicates with the Addtowallet API.
Readme

Full documentation: https://basetime.github.io/a2w-api-ts/
TypeScript client for the AddToWallet API
@basetime/a2w-api-ts is a library for communicating with the AddToWallet platform from Node.js and TypeScript:
- Full API coverage: Campaigns, passes, templates, scanners, workflows, webhooks, and more.
- Runtime validation: Zod schemas for every response type with optional strict parsing.
- Flexible auth: API keys or OAuth providers wired through a shared
Client.
Documentation
| Topic | Link | | ------------------- | ------------------------------------------------------------------------------ | | Getting started | Introduction | | Installation | Installation | | Setup | Setup | | API usage | Usage | | Response validation | Runtime validation |
Canonical docs live in docs/. Edit those pages directly, then run pnpm docs:build:nav to refresh the VitePress sidebar.
Development
pnpm install
pnpm test
pnpm docs:serve # VitePress dev server with nav watcher
pnpm docs:build # production docs buildLicense
MIT
