Skip to content
ViceVox
MenuClose
DocumentationAPI keys

API keys

An API key lets a program or an agent use ViceVox for you. Give each agent its own key, with only the permissions, workspaces, action types and usage it needs.

Make a key

In the web app, open Developers and make a key. Copy it at once: ViceVox shows it one time only. A key starts with btk1_ and has 60 characters.

Send the key in the Authorization header or in X-API-Key, never in both. Keep it on a server: anyone who has it can act in your accounts.

Read what the key may do
curl https://api.vicevox.com/v1/me \
  -H "Authorization: Bearer $VICEVOX_API_KEY"

# or
curl https://api.vicevox.com/v1/me \
  -H "X-API-Key: $VICEVOX_API_KEY"

GET /v1/me shows the key's scopes and workspaces. Over MCP, whoami gives the same.

Key settings

The web app sends these settings to POST /v1/api-keys. Only a person who is signed in to the web app, with the permission to manage API keys, can make, rotate or revoke a key. A request with an API key to /v1/api-keys gets 401.

Key settings
{
  "name": "Support agent",
  "scopes": ["content_read", "inbox_read", "content_publish"],
  "expiresAt": "2027-05-21T00:00:00Z",
  "workspaceIds": ["0199a0b1-..."],
  "allowedActions": ["read_feed", "read_notifications", "reply", "like"],
  "dailyUsagePercent": 5
}
FieldRules
nameRequired. 1 to 80 characters. Each active key of the organization has a different name.
scopesRequired. 1 to 18 permissions. See Scopes.
expiresAtRequired. From 5 minutes to 366 days after the key is made or rotated.
workspaceIdsOptional. 1 to 50 workspaces. Without it, the key reaches every workspace you reach. See Workspaces.
allowedActionsOptional. The action types the key may start. null or absent: every type. See Action types.
dailyUsagePercentOptional. 1 to 100: the part of the plan's monthly usage the key may use in one UTC day. null or absent: no limit. See Daily usage limit.

An organization can have 20 active keys.

Scopes

Scopes are the permissions of the key. A key can hold only scopes that you hold, and it acts inside your role: when your role loses a permission, the key loses it at once. These scopes control accounts and actions:

ScopeLets the key
integrations_manageAdd, change, sign in, check and delete accounts and identities. Revoke sign-in links.
content_readRead accounts, identities, media, the calendar and approval policies.
inbox_readRun the read actions, such as read_feed, read_notifications and search. Make, read and change alerts.
content_publishRun the write actions, such as post, reply, like, follow and send_message, and browser steps. Make sign-in links.
content_writeUpload media. Plan posts on the calendar and send them for review.
content_approveApprove or reject posts that wait for approval.
analytics_readRead analytics.
audit_readRead the audit log.

The other scopes control the other parts of the API, such as members, clients and reports. A key can never hold organization_manage, billing_manage or api_manage. The MCP page gives the scope of each tool.

Workspaces

With workspaceIds, the key reaches only those workspaces. Use one key for each client or brand.

  • GET /v1/agency/workspaces, GET /v1/me and the MCP tool list_workspaces show only the key's workspaces.
  • The key can use the accounts, identities, actions, alerts, media, calendar and approvals of its workspaces, the usage and feedback. Other routes answer 403.
  • It cannot hold the scopes that act on the whole organization: members_manage, clients_manage, workspaces_manage, capacity_manage, audit_read. A request for one gets 422.
  • The limit does not change. A rotation keeps it. For other workspaces, make a new key.

Action types

allowedActions names the action types the key may start: 1 to 64 different names. Use the action types, plus connect, check and live. null or absent: every type.

  • The list applies on every route that starts an action: one action, the bulk route, check, connect (a new account, a sign-in again, a move to another identity) and live.
  • browser steps are allowed only when the list names browser.
  • A sign-in link opens a live browser. So a key makes a link only when the list names live. Without it, a challenge has sign_in_url: null.
  • A type that is not on the list gets 403 action_not_allowed. ViceVox queues nothing.
403 Forbidden (trimmed)
{
  "status": 403,
  "code": "action_not_allowed",
  "detail": "This API key may not start `post`. It may start: like, read_feed, read_notifications, reply. ...",
  "action_type": "post",
  "allowed_actions": ["like", "read_feed", "read_notifications", "reply"]
}

Daily usage limit

dailyUsagePercent is the part of the plan's monthly usage that the key may use in one UTC day: a whole number from 1 to 100. The count is the key's usage since 00:00 UTC, plus the usage of its actions that wait to run. Usage that a failed action gives back does not count.

  • An action past the limit gets 402 key_usage_limit with limit_percent, used_percent (today, queued actions included) and resets_at, the next 00:00 UTC. ViceVox queues nothing.
  • The checks of an alert that the key made are not refused, but their usage counts.
  • The usage of the organization applies too. When it is used up, the answer is 402 usage_limit. See Plans and usage.
402 Payment Required (trimmed)
{
  "status": 402,
  "code": "key_usage_limit",
  "detail": "This API key may use 5% of the plan's monthly usage in one UTC day. It used 5% today, queued actions included.",
  "limit_percent": 5,
  "used_percent": 5,
  "resets_at": "2026-11-24T00:00:00Z"
}

Expiry, rotation and revocation

  • Each key expires. Choose a time from 5 minutes to 366 days.
  • A rotation gives the key a new secret and stops the old one at once. Send scopes and expiresAt again. Leave out allowedActions or dailyUsagePercent to keep it, or send null to remove the limit.
  • A revocation stops the key at once.
  • ViceVox cannot show a key again. If you lose a key, rotate it.

Track what a key does

  • Developers shows the last use of each key: the time, the network (an IPv4 /24 or an IPv6 /64) and the user agent.
  • Each action names who asked for it in requested_by. GET /v1/workspaces/{ws}/actions?api_key_id= keeps the actions of one key.
  • The audit log records when a key is made, rotated, revoked or refused, and when its limits change.

What a key cannot do

A key cannot make, rotate or revoke keys. It cannot change a password, a profile or the sessions of a person, switch the organization or accept an invitation. These routes answer 401 or 403 to a key.

MCP

When an MCP client signs in with OAuth, ViceVox gives it an API key that expires after 1 hour. The client gets a new one with its refresh token. The key gets the scopes the client asks for that your role allows, and every rule on this page applies to it.

A client that cannot use OAuth sends a key in the header. See MCP server. Request limits: Rate limits.