Authentication and keys
All API requests require Bearer authentication using an integration key issued to your organisation. Pass this key in the Authorization header on every request.
Key format and identifiers
Integration keys start with bella_sk_live_ for identification and scanning:
- Prefix (
bella_sk_live_): Scanned by tools like GitHub Secret Scanning to prevent leaks in source code. - Key identifier (
ik_…): A public handle shown in your dashboard. Safe to include in server logs and support tickets. - Secret token: Displayed only once when created. Save it in your backend secrets manager.
Server-side security
Integration keys have administrative access to all members, threads, and data in your organisation.
Keep keys server-side. Never embed integration keys in client code, mobile apps, or browser bundles. All requests must come from your backend servers.
Making authenticated requests
Pass your integration key in the Authorization header formatted as Bearer <key>:
cURL
curl -X GET "https://api.bellacoach.ai/api/v1/content/articles/metadata" \
-H "Authorization: Bearer $BELLA_API_KEY"Key lifecycle: revocation vs deletion
Manage keys under Integration keys in the dashboard ↗:
- Revocation: Sets
revoked_aton the key. Requests using it are immediately rejected with401 Unauthorized. Retains creation and decommission dates for audit history. - Deletion: Permanently removes the key and its audit record.
- Rotation: Create a new key, update your server environment variables, test a request, then revoke the old key.
Staging and test environments
To isolate testing from production data:
- Contact us to set up a dedicated demo organisation.
- Demo organisations provide full isolation with separate assistants, integration keys, and members.
Next steps
Last updated on