Browse the help center
Create and manage API keys
Create a ChatFlow GO API key with only the scopes your integration needs, store it safely, check it works, and revoke it when you no longer need it.
API keys let your own code use the ChatFlow GO API. Each key belongs to one workspace, carries a set of scopes that limit what it can do, and can be revoked at any time.
Before you start
- Your workspace needs the Growth plan (up to 10 keys) or Scale (unlimited keys).
- You need the Owner or Admin role. Other roles see "Ask an admin to create one."
Create a key
- Click Settings in the sidebar, then API keys.
- Click New API key.
- Enter a Name. Name it after the integration that will use it, for example "Zapier automation" or "Shopify order updates".
- Under Scopes, tick only what the integration needs (see below).
- Click Create key.
- The Copy your API key window shows the full key. Click Copy and store it somewhere safe, such as your server's secret manager or environment variables.
- Click Done.
Choose scopes
| Scope | Allows | Example use |
|---|---|---|
messages:send | Send WhatsApp messages | Order confirmations from your store |
messages:read | Read messages and delivery status | Syncing chat history into another tool |
contacts:read | List and read contacts | Looking up a customer by phone |
contacts:write | Create and update contacts | Adding new sign-ups as contacts |
conversations:read | List and read conversations | A reporting dashboard |
broadcasts:send | Launch broadcasts and read their progress | Sending a campaign from your own system |
webhooks:manage | Register and manage outgoing webhooks | Setting up real-time notifications |
A key with no scopes can still call GET /api/v1/me, which is handy for checking that a key works.
Example: a store that sends order updates and keeps contacts in sync needs messages:send and contacts:write. It does not need broadcasts:send or webhooks:manage.
Check the key works
curl https://acme.chatflowgo.com/api/v1/me \
-H "Authorization: Bearer wacrm_live_xxxxxxxxxxxxxxxx"
A working key returns your workspace name and the key's scopes:
{
"data": {
"account": { "id": "…", "name": "Acme Inc" },
"key": { "id": "…", "scopes": ["messages:send", "contacts:write"] }
}
}
If you get 401 unauthorized, check that you copied the whole key, including the wacrm_live_ prefix, and that the header reads Authorization: Bearer <key>.
The key list
Settings → API keys lists every key with:
- its name and the start of the key, so you can tell keys apart,
- its scopes (or "No scopes"),
- when it was created and last used ("never used" if it has not been used yet),
- a Revoked or Expired badge where relevant.
The "last used" date is the best way to find keys nobody uses any more.
Revoke a key
- Go to Settings → API keys.
- Click Revoke next to the key.
- You will see "Revoked [name]".
Revocation takes effect on the key's next request, which will fail with 401 unauthorized. Revoked keys stay in the list as a record. Revoking cannot be undone. To restore access, create a new key and update your integration.
Rotate a key
To replace a key without downtime:
- Create a new key with the same scopes.
- Update your integration to use the new key.
- Check the old key's last used date stops changing.
- Revoke the old key.
Keys and your plan
- Every key that is not revoked counts toward your plan's API key limit, including keys nobody uses. Revoke unused keys to free up room.
- If you downgrade to a plan without the API, or the workspace is locked, existing keys are not deleted. API calls return
402 plan_limituntil you upgrade again, and then the same keys work again with no changes.
Good practice
- One key per integration, so you can revoke one without breaking the others.
- Least privilege. Only grant the scopes the integration uses.
- Server-side only. Never put a key in browser JavaScript, a mobile app or a public repository.
- Revoke at once if a key may have leaked, for example after a laptop is lost or a contractor leaves.
Related articles
Was this page helpful?