Authentication
Every API call carries an API key of your account in the Authorization header:
Authorization: Bearer sk-3f9a1c8b2e4d…Without the header, or with a key that doesn't work, the answer is 401. There are a few exceptions: Outbound needs one more header and some operations are public.
Create a key
An admin of the account creates it, from the platform:
- Go to Settings and, in the menu, open API keys. It sits under the Superadmin group, but every admin can see it.
- Your account's App ID shows at the top: it is the
appUUIDthe routes ask for. Copy it. - Click Create API key. Optionally, set an expiration date: it must be in the future and no more than 5 years ahead. If you don't set one, the key expires one year after it's created.
- Copy the key right away. It is shown only once: Biky keeps only a fingerprint, so nobody can see it again. If you lose it, revoke it and create another one.
New keys start with sk-. The list shows only that beginning, so you can tell them apart.
What a key can do
- It acts as the person who created it, with their role in the account. If that person's role changes, the key changes with it. If they leave the team, the key loses access.
- It works in every account of whoever created it, not only in the account where it was created: in each one it has the role that person has there. If the integration must touch a single account, have it created by an admin who belongs only to that account.
- It doesn't manage keys or sessions. Creating or revoking keys requires a user session on the platform: with a key, those operations answer
403.
Exceptions
Almost the whole API works with the key as is. What breaks the rule:
| Module | What changes |
|---|---|
| Outbound | Besides the key, every call carries the X-App-UUID header with your appUUID. |
| Catalog · Storefront | The storefront operations are public: no credential. |
| Flows | A flow's webhook takes no credential: the webhookId in the URL is the secret. Treat it like a password. |
Revoke a key
In Settings → API keys, delete the key. In most modules it stops working within a minute; in Smart Chat and Outbound it can take up to 5 minutes, because they remember valid keys for that long. Do it as soon as you suspect it leaked.
Exchange the key for a token
If your integration makes many calls, you can exchange the key for a 10-minute access token with the standard OAuth 2.0 client_credentials flow:
curl -X POST https://identity.keybeapi.com/v1/oauth/token \
-H "Content-Type: application/json" \
-d '{ "grant_type": "client_credentials", "client_secret": "'"$BIKY_API_KEY"'" }'{ "access_token": "eyJhbGciOiJFUzI1NiIs…", "token_type": "Bearer", "expires_in": 600 }You send the token like the key (Authorization: Bearer <token>), and it has the same permissions. While it is valid, your system can verify it on its own with the public keys at /.well-known/jwks.json, without calling Biky. When it expires, ask for another one.
See Exchange an API key for an access token.
Authentication errors
| Code | What happened |
|---|---|
401 | The header didn't arrive, or the key was copied wrong, expired or was revoked. |
403 | The key is valid but not enough: its owner's role lacks that permission, or the route belongs to another account. |
To see what Biky sees in a key, call Inspect a credential: it answers who the owner is, their role and the account.
Good practices
- Never put the key in a browser or a mobile app. Anyone could read it. Calls with the key go out from your server.
- One key per integration, so you can revoke one without cutting the others.
- Store it as a secret: in your infrastructure's secret manager or an environment variable, never in the repository.
- Check when it expires and rotate it before it does.