1. Link a number
An owner links and confirms the business number. Each customer key belongs to that one phone. Keep the service online.2. Create a scoped customer key
In Developer, choose a name, expiry, exact conversations and permissions. Start withstatus:read, chats:read, messages:read and events:read as needed. Select messages:write separately to send. Copy the secret once into your backend’s secret store.
3. Verify from your backend
Replace the example origin with your dedicated installation address. The domain below is a placeholder. Examples only copy text; this documentation cannot execute API calls.4. Receive events and reply deliberately
Persist an event cursor or signed webhook event ID, fetch selected-chat history for content, then run your own agent policy. A callback duplicate must never create a second send. Send using a stableIdempotency-Key, save the returned request identifier and inspect uncertain results using the original key. See replies and attachments and safe requests.
The SDK and MCP guide covers downloads and explicit host approval for writes. The endpoint index and API reference describe the current contract.