API Keys
Create an API key, choose what it can do, keep it safe and revoke it
API Keys
What it is: an API key is a secret text that starts with bvx_. A program that holds it can act in BrandVox on your behalf.
Where it lives: you create it in the dashboard. You then keep it on your own computer or in the secret store of your server. BrandVox keeps only a hash of the key (a one-way fingerprint), so nobody can read the key back from our side.
Who uses it and when: you create a key once per tool or computer, before you call the HTTP API or let an AI agent call it. You come back here to replace a key or to revoke one.
Create a key
Open the API keys tab
In the dashboard go to Settings → API keys, or open app.brandvoxai.com/account?tab=api-keys.
Click Create API key
Give the key a Name of up to 64 characters. Name it after the place you will use it, for example Claude Code on my laptop. You will recognise it later in the list.
Choose the access
Pick Full access, Read-only or Custom. The table below explains each one. Full access fits your own laptop. For a shared script or an AI agent, pick the narrowest option that does the job.
Choose the workspaces
All my workspaces lets the key work everywhere you work, including workspaces you join later. Selected workspaces limits the key to the ones you tick.
Choose the workspace role
Same as mine gives the key the role you have in each workspace. Member only keeps the key from ever acting as an admin. See Workspace roles below.
Choose the expiration
Never, 30 days, 90 days or 1 year. After that date the key stops working by itself.
Copy the key now
Click Create key. The full key is shown once. Copy it and store it in a password manager.
You cannot see the key again after you close this screen. If you lose it, revoke it and create a new one.
The four settings of a key
Each key has four settings. They are independent, so you can combine them freely.
| Setting | Options | What it controls |
|---|---|---|
| Access | Full access, Read-only, Custom | Which parts of BrandVox the key can read or change |
| Workspaces | All my workspaces, Selected workspaces | Where the key works |
| Workspace role | Same as mine, Member only | Whether the key may manage a workspace |
| Expiration | Never, 30 days, 90 days, 1 year | How long the key works |
Access levels
A key acts as you, so it can never do more than you can do in the dashboard. The access level can only narrow that down.
| Access | What the key can do | Good for |
|---|---|---|
| Full access | Everything you can do in the dashboard | Your own laptop |
| Read-only | View everything, create or change nothing | Reports, dashboards, a first try |
| Custom | Read or Read & write for each area you pick | A script, an AI agent or a teammate tool with one job |
Read & write includes Read. An area you leave on None is closed to the key.
Areas
With Custom access you set the level for each of these eight areas.
| Area | What it covers |
|---|---|
Workspaces (workspace) | Workspaces, members, invitations, notifications |
Brand (brand) | Brand profile, website analysis |
Agents (agents) | Support agents: settings, prompts, chats, leads, analytics, voice, channels |
Knowledge (knowledge) | Websites, files, text, Q&A, Notion, Google Docs, training |
Content (content) | Images, videos, social posts, SEO, folders, prompt templates, scheduled posts |
Leads (leads) | Lead searches and lists |
Account (account) | Your profile, help requests |
Billing (billing) | Plan, invoices, checkout, cancellation |
Example: a key that should only create images and posts needs Content: Read & write and nothing else.
To see what a key has, call GET /api/v1/api-keys/whoami with it.
Limiting a key to workspaces
A key set to Selected workspaces works only there.
- A request for another workspace is refused with the error
workspace_not_allowed. - A request that names no workspace is refused with
workspace_required. Send theworkspace_idwith every request. - A request body must be JSON (
Content-Type: application/json) or a form. Anything else is refused withunreadable_body, because BrandVox cannot check the workspaces in it.
This is useful for agencies. Create one key per client workspace, and a mistake in one project cannot touch another client.
Workspace roles
A workspace has two roles: admin and member. In the API they are written admin and user.
| Role | What it can do |
|---|---|
| Member | All the daily work: agents, knowledge, images, posts, videos, brand, leads |
| Admin | Everything a member can do, plus managing the workspace: invite or remove members, change member roles, rename or delete the workspace |
A key acts with the role its owner has in each workspace. If you are an admin in one workspace and a member in another, your key is an admin in the first and a member in the second.
When you create a key you choose its Workspace role:
| Option | What it means |
|---|---|
| Same as mine (default) | The key has your role in each workspace: admin where you are an admin, member where you are a member |
| Member only | The key does the daily work and never does admin actions, even in workspaces where you are an admin |
A Member only key that tries an admin action is refused with the error admin_role_required. Admin actions are inviting or removing members, changing a member's role, and renaming or deleting a workspace.
Member only is a good choice for an AI agent or a script. It can create content and train your support agent, and it cannot change who is in your team.
What a key can never do
No API key, whatever its access level, can:
- create, list or revoke API keys
- change your password
- delete your account
- read the access token of a connected Google account
- use admin endpoints
These actions need you, signed in to the dashboard. A leaked key therefore cannot lock you out of your account or create more keys.
Keeping your key safe
Treat the key like a password.
- Never paste it into a chat, including a chat with an AI agent. If a key ever appears in a chat, revoke it and create a new one.
- Never commit it to a git repository, and do not write it into a script or a config file you share.
- Keep it in an environment variable such as
BRANDVOX_API_KEY, and read it from there in your code. On a server or in CI (an automated build server), load it from the secret store. - Use one key per tool or computer. When a laptop is lost you revoke one key and nothing else breaks.
- Give the least access that does the job. Pick Member only when the key does not need to manage the workspace, and set an expiration for keys you will not use for long.
Replacing a key (rotation)
Rotation means swapping an old key for a new one. There is no downtime if you do it in this order:
- Create a new key with the same access.
- Put the new key where your tool reads it, for example
BRANDVOX_API_KEY. - Call
whoamiwith the new key to check that it works. - Revoke the old key in the dashboard.
Revoking a key
Open Settings → API keys, find the key and click Revoke, then Revoke key. It stops working immediately, and any tool that uses it loses access. This cannot be undone.
The Last used column shows when each key was last used. Keys that say Never or show an old date are good candidates to revoke.
Limits
- Up to 25 keys per user.
- 600 requests per minute per key. See rate limits.