Reference
Reference Index
Every WATS reference doc and when to reach for it.
applies to 0.4.x-alpha · reviewed 2026-05-02
| Doc | When to use it |
|---|
reference/client.md | Constructing a GraphClient; construction-time validation; request lifecycle. |
reference/endpoints.md | Defining a new endpoint with defineEndpoint; path templates, param kinds, body passthrough. |
reference/scoped-clients.md | Binding a phoneNumberId or wabaId into a PhoneNumberClient / WABAClient. |
reference/calling.md | WhatsApp Calling lifecycle, call permissions, call-button/deep-link helpers, calling webhooks, and operator constraints. |
reference/groups.md | WhatsApp Groups endpoint contracts, limits, webhook outcomes, service opt-in routes. |
reference/errors.md | The error registry; every pywa error code → WATS subclass; classification rules. |
reference/pagination.md | paginate / paginateAll; cursor extraction; AbortSignal; PaginationError taxonomy. |
reference/media.md | Media runtime: upload, metadata, binary download, delete, encrypted decrypt, upload sessions, and Node/Bun path helpers via @wats/graph/node-media. Endpoint family subpaths: @wats/graph/endpoints/{messages,media,templates,flows,calling,business-management,groups}. |
| Doc | When to use it |
|---|
reference/crypto.md | CryptoProvider seam; Node / Bun / WebCrypto adapters; typed error hierarchy. |
| Doc | When to use it |
|---|
reference/config.md | @wats/config YAML/JSON schema, env-secret refs, validation, redaction. |
reference/cli.md | @wats/cli commands: init, setup, doctor, serve, openapi export, messages list/show. |
reference/service.md | @wats/service runtime-neutral standalone webhook/API service. |
reference/persistence.md | Durable runtime state: SQLite + Postgres adapters, migrations, idempotency, outbox, message projection. |
reference/service.md | Generated OpenAPI 3.1 document and GET /openapi.json service route. |
| Doc | When to use it |
|---|
reference/internal-utils.md | @wats/internal-utils — internal helpers, not a public API. Published only so public packages install cleanly from the registry. |