Authentication
Every request carries an API key. A key belongs to one business and can do only what its scopes allow, whoever created it.
Send the key#
Put the key in the Authorization header as a Bearer token. Keys start with cat_live_.
GET /api/v1/me HTTP/1.1
Authorization: Bearer cat_live_your_key_hereA missing, mistyped, revoked or expired key all get the same answer: 401 unauthorized. We don't say which, so a leaked or guessed key gives nothing away.
Create a key#
- Open Integrations → API keys and choose New API key. Owners and admins can create and revoke keys; everyone in the team can see the list. A business can have up to 50 active keys.
- Name it after where it will be used, for example “Website orders” or “Zapier”.
- Pick only the scopes it needs. A key with no scopes can still call GET /me.
- Copy the key when it appears. It is shown once; we store only a hash of it. The list later shows its first characters, scopes and when it was last used.
Scopes#
A request to an endpoint whose scope the key lacks gets 403 forbidden, naming the missing scope.
| Scope | Lets the key |
|---|---|
messages:send | Send WhatsApp messages (POST /messages) and list templates. |
messages:read | Read the messages in a conversation, download their files and list templates. |
contacts:read | List, search and read contacts. |
contacts:write | Create and update contacts and their tags. |
conversations:read | List and read conversations. |
broadcasts:send | Send broadcasts and read their progress. |
webhooks:manage | Register, change and delete webhook endpoints. |
Before approval#
A new business can create keys straight away. Reads, contacts and webhooks work while the business waits for approval, so you can build and test your integration. Sending messages and broadcasts returns account_not_approved until it is approved.
Keep keys safe#
- Use keys only from your server. Never put them in a website, mobile app or anything a customer can open.
- Keep them in environment variables or a secret manager, not in your code repository.
- One key per integration, with the fewest scopes. Then revoking one doesn’t break the others.
- Revoke a key in Integrations → API keys the moment you suspect it leaked. It stops working at once.
See every call
Integrations → Request log shows recent API and AI-app calls with their status and time taken, and can filter to just the errors. Handy when something fails.