Keep credentials server-side
Use the one-time developer token for server integrations and the login JWT only for token management and Anant8-specific customer APIs. Tokens are scoped to one connected WhatsApp phone/WABA and can be revoked from the developer-token management endpoint. Do not expose either credential in browser code. Use HTTPS and a secure secret store.
Make sends retry-safe
Idempotency-Key is optional on public message and client template batch sends. Without a key, each request is treated as a new operation, even when recipient and content match. For a retry-safe send, create a stable key for one logical request and reuse it only with the identical payload; use a new key for a new operation. A changed payload under the same key returns HTTP 409. On /v1 sends, an in-progress keyed operation returns HTTP 409 with Retry-After; accepted sends replay Meta's stored response. On queued batch routes, an identical repeat returns HTTP 202 with duplicate: true and the original batch ID. After an uncertain /v1 response, retry only with the same key; Anant8 does not blindly resubmit. Batch routes remain asynchronous.
Protect customer data
Message history and contacts may contain personal information. Fetch only what your integration needs, limit retention in your own systems, restrict staff access, and avoid logging phone numbers, message text, JWTs, or provider payloads unless required for support.
Follow WhatsApp requirements
Free-form text, media, location and interactive sends require an open 24-hour customer service window. Use approved templates outside the window; templates must be synced first, and marketing templates use the marketing route. Obtain the consent required for your use case; template approval remains governed by Meta.
Need help with an integration? Contact Anant8