Message builders

Builders return typed SendMessageInput objects for wazapin.messages.send().

Pagination helpers

Resources with listPaginated() yield items one at a time.
Available today on:
  • channels
  • contacts
  • templates

Error handling

Methods return { data, error } and do not throw on API errors. Check error in production code — the quickstart examples skip this to stay short.

Idempotency

Pass an idempotency key when sending messages you may retry.

Low-level typed API client

Use client.api for advanced OpenAPI-typed endpoints that are not wrapped by a resource yet.