Skip to main content
API requests are authenticated with a project API key. An API key is a private access code for a program, similar to a password. It tells Botcadence which project is making the request. You only need this page when another program will connect to Botcadence; dashboard users sign in normally.
Send the key in the Authorization: Bearer header on every request.

Create a key

1

Open project settings

In the dashboard, open your project → Admin → Settings → API Keys.
2

Create the key

Click Create API key, give it a name, and select the scopes your integration needs. Scopes use the resource:action form.
3

Copy the secret

Copy the plain key immediately. Botcadence stores only a hash and will not show the full value again.
Never commit API keys to source control or expose them in client-side code. Call the API from your server only.

Key format

Send the key on every request:
The key must belong to the same organization and project as the IDs in the URL path.

Scopes

Create keys with the scopes required for the endpoints you call. Read, update, and delete scopes will be available for resources when those API actions are supported. Existing API keys that used automations:trigger or whatsapp:send are migrated to automations:create and whatsapp:create before this scope contract is deployed. Create new keys with the resource-action scopes listed above.

Example

Common auth errors

Revoke a key

From Admin → Settings → API Keys, revoke any key that is compromised or no longer needed. Revoked keys stop working immediately.