API keys
Project API keys let scripts, CI pipelines and other systems call the Blokkio public API — list workflows, start runs, read results and cancel executions — without a user signing in.
- A key belongs to one project and can only see and run that project's workflows.
- Creating and revoking keys needs the
ApiKeysManagepermission — Administrators and Contributors (see Roles). Every member can see the key list. - A key acts on behalf of the member who created it, and never does more than that person's current role allows. If the creator is changed to Viewer, their keys keep reading but can no longer run, import or cancel anything (or call MCP tools); those scopes come back if the role is restored. If the creator is removed from the workspace, or schedules their account for deletion, their keys stop working.
- Keys look like
bk_live_followed by 40 letters and digits, e.g.bk_live_8Jt2….
Creating a key
-
Open the project, then go to Settings → API keys.
-
Click + New API key.
-
Fill in the form:
Field Required Default Description Name Yes — A label so you recognise the key later, e.g. CI pipeline(max 100 characters)Scopes Yes (at least one) Read workflows, Execute workflows, Read executions What the key may do — see below Expires Yes 90 days 30 days, 90 days, 1 year or Never -
Click Create key and copy the key now. It is shown only once — Blokkio stores only a hash of it and can't show it again. If you lose it, revoke it and create a new one.
A project can have at most 50 active keys.
Scopes
| Scope | Label in the app | Allows |
|---|---|---|
workflows:read | Read workflows | List workflows, view their triggers and export them |
workflows:write | Import workflows | Import workflow files, e.g. from CI. The key's creator must also still be a Contributor or Administrator |
workflows:execute | Execute workflows | Start runs with a JSON payload |
executions:read | Read executions | List executions and view node results |
executions:cancel | Cancel executions | Stop running executions |
mcp:tools | Call MCP tools | List and call the tools offered by the project's MCP server |
Give each key only the scopes it needs. A request outside the key's scopes is refused with 403
(insufficient-scope).
Using a key
Send the key in the Authorization header (or X-Api-Key):
curl https://api.blokkio.com/api/v1/workflows \
-H "Authorization: Bearer $BLOKKIO_API_KEY"
curl https://api.blokkio.com/api/v1/workflows \
-H "X-Api-Key: $BLOKKIO_API_KEY"
See the public API reference for endpoints, examples and the TypeScript client. Requests are
rate-limited per key (120 per minute by default); over the limit the API answers 429.
The key list
Settings → API keys shows every active key with its name, the first characters of the key (e.g.
bk_live_8Jt2xQ4m…), scopes, who created it and when, when it was last used, and when it expires. Expired keys
are labelled Expired. A scope the creator's current role no longer allows is shown struck through, and a key whose
creator left the workspace (or is deleting their account) is labelled Not working: creator has no access.
Revoking a key
Click the revoke button on the key's row and confirm with Revoke key. Revocation is immediate: the next request with that key gets
401 ("The API key has been revoked."). Revoked keys can't be restored.
Creating and revoking keys is recorded in the audit log as api_key.created and
api_key.revoked (with the key's name and prefix — never the key itself).
When a key is rejected the 401 response says why:
| Message | Cause |
|---|---|
| The API key has been revoked. | Someone revoked it |
| The API key has expired. | Its expiry date has passed |
| The API key's owner no longer has access to this workspace. | The creator was removed from the workspace |
| The API key's owner is deleting their Blokkio account… | The creator scheduled their account for deletion; they can sign in to cancel it |
A key that is valid but asks for something its creator's current role doesn't allow gets 403, and the message names
the scopes that are switched off.
Good practice
- Store keys in your CI's secret store or a password manager, never in source control.
- Use one key per system so you can revoke one without breaking the others.
- Prefer an expiry date over Never, and rotate keys before they expire: create the new key, deploy it, then revoke the old one.