Skip to content

API keys

Create, store, scope, use, and revoke BoxCompute API keys safely.

Updated View as Markdown

Manage customer API keys at https://app.boxcompute.ai/api-keys.

Sign-in options

The hosted app offers email/password, Google and Apple sign-in. Manage linked providers under Settings → Account → Security. Before disconnecting a provider, use Forgot password? if you have never set a password.

For a new account through Apple, use Hide My Email or an iCloud address. If Apple cannot confirm another email address, sign in with your password first, then choose Connect Apple in Settings.

Sign-up review

Some sign-up requests wait for review before an account is created or a sign-up link is sent. Once approved, the request receives a sign-up link by email. Submitting the same request again does not bypass review. If you need help, contact [email protected]; never include a password or sign-up link. Welcome credit is subject to eligibility, not granted for every new account. Sharing a network with other customers does not by itself disqualify a new account from welcome credit. Sign-up review and other eligibility checks still apply to email, Google and Apple sign-up.

Give feedback

When eligible, open Menu → Give feedback in the app to answer the survey in English or Bahasa Melayu. The survey opens after your account reaches the required age (seven days by default) and you have used BoxCompute. Before then, the Menu link is hidden and a shared survey link explains what is missing; a too-new account sees its age. An answer submitted while ineligible is not saved.

The form shows whether credit is still offered; any reward does not depend on your rating. Once the survey’s reward allocation runs out, eligible accounts can still answer without credit. If you already answered, the page shows your thanks instead of taking another answer. Publishing a quote from your answer requires separate consent on the form; do not include passwords, keys or sign-in links in feedback.

Get help

In the app, choose Menu → Support on WhatsApp to ask the team and other BoxCompute users. The welcome email and the app’s support banner also link to the group; closing the banner does not remove the Menu link. For private account or billing questions, email [email protected]. Never post API keys, passwords, sign-up links or private files in the group.

Create a key

  1. Click New API key.
  2. Keep the default name Development or enter a descriptive name for the integration or environment.
  3. Under Workspaces, keep Every workspace or choose one workspace to limit the key to it.
  4. Tick Can run agents if the key will start agent runs.
  5. Click Create key.
  6. Copy the bc_live_... secret using the copy control and store it immediately.

The plaintext secret is shown only once. After you close the dialog, BoxCompute shows only the key’s name, final-character hint, scopes, creation and last-use information, and revocation status. If you lose the secret, create a replacement and revoke the old key.

Limit a key to one workspace

A key limited to one workspace sees and acts on that workspace’s VMs and nothing else in the account. Use one to keep a work integration away from personal VMs, or the other way round. The API keys page shows Only and the workspace’s name under such a key, and GET /api/v2/me returns it as apiKey.workspaceId (null for a key that reaches every workspace; an older server may omit the field). Every workspace, the default, includes workspaces you create later. Workspace restrictions apply in addition to the key’s operation scopes.

A limited key:

  • lists only its workspace in GET /api/v2/workspaces, and only that workspace’s VMs in GET /api/v2/sandboxes;
  • creates VMs only in its workspace: any other workspaceId returns 403 INSUFFICIENT_SCOPE;
  • gets 404 NOT_FOUND for a VM in any other workspace, including the account’s own, even for an organization admin;
  • gets 403 INSUFFICIENT_SCOPE for account-wide calls: billing, usage, the audit log, deleted VMs, the account cost report and deleted-VM costs, and creating workspaces, and for the legacy /api/v1 routes. A VM’s own cost report works for a VM in its workspace.

The workspace is fixed when the key is made. Deleting the workspace deletes the keys limited to it. Apps connected through the MCP server can be limited the same way when you approve them. This disconnects those apps rather than widening their access. To change a key’s restriction or make account-wide calls, create a replacement with the appropriate workspace choice and revoke the old one.

Suspended accounts

A suspended account cannot sign in or use its API keys. Requests with an otherwise valid key return 403 ACCOUNT_SUSPENDED; changing its scopes or retrying will not restore access. Contact [email protected] if you think this is a mistake. Suspension does not revoke the key: after the account is restored, an unrevoked key can work again, but you must sign in again to use the web application.

Store and use keys

  • Put production keys in a secret manager and limit who and what can read them.
  • Use separate, clearly named keys for development, CI, and production so each can be rotated independently.
  • Do not commit keys, paste them into source code, include them in URLs, or write them to logs.
  • Do not use a realistic-looking secret in examples. Use bc_live_REDACTED in static documentation.
  • Send the secret only in the HTTPS authorization header:
Authorization: Bearer bc_live_REDACTED

Scopes

Keys can have these scopes:

Scope Permitted public v2 operations
workspace:create Create a persistent workspace owned by the account
sandbox:read List workspaces, active and deleted Sandboxes; inspect a Sandbox and its desktop status; read current and retained logs and Sandbox analytics; introspect the authenticated account and key with GET /api/v2/me; read file metadata and content; list directories; and revoke the current key with DELETE /api/v2/auth
sandbox:create Create a Sandbox in an owned workspace, start an existing owned slot, or stop an owned VM while keeping its disk
sandbox:execute Execute commands and manage observable operations; write, edit, rename, create, and remove paths; start/stop the desktop, capture screenshots, send desktop input, and mint/revoke control-capable viewer links; list, create and close VM browser previews (listing returns bearer URLs); activate, reconnect, and revoke an operator-selected cooperative connection; create, look up, and revoke selected TCP service access
sandbox:delete Delete an owned Sandbox
usage:read Read account usage summaries, credit balance, wallet transactions, Sandbox compute-cost reports, and the account’s API audit log
email:send Send plain-text email to the key owner’s own account address; included with Starter
agents:read List a workspace’s agents
chat:write Start, stop and answer agent runs; start and cancel early-access batches
chat:read Read agent runs, batches and batch items

Keys created on the API keys page get the first seven scopes, including workspace:create and email:send. Can run agents adds agents:read, chat:write and chat:read; the page has no other scope picker. Older keys do not gain new scopes automatically: replace one if it needs to create a workspace, send email or run agents and lacks the corresponding scope. Having email:send does not grant Starter. Use separate keys for separate integrations so you can rotate or revoke their access independently.

See Audit API activity to filter API requests and key lifecycle events, page through results, and understand retention. See Track Sandbox costs to attribute compute to creating keys, Sandboxes, and charged runs.

Revoke a key

Use the revoke control on the API keys page. Revocation takes effect immediately, and the secret cannot authenticate another request. Revoking a key does not delete workspaces or Sandboxes that already exist.

A key can also revoke itself:

await boxcompute.auth.revoke();
boxcompute.auth.revoke()

With direct HTTP:

curl -X DELETE 'https://api.boxcompute.ai/api/v2/auth' \
  -H 'Authorization: Bearer bc_live_REDACTED' \
  -H 'Content-Type: application/json'

The response is 204 No Content; the key is invalid immediately afterward.

Delete your account

Revoking a key is not account deletion. To delete your account, open Settings → Account → Danger zone in the app. Cancel any renewing Starter or Pro plan in Usage & billing first, and export files you want to keep.

Enter your current password, or choose Signed up with Google or Apple? Email me a code to receive a six-digit code at your account’s email address. Type DELETE to confirm. The code lasts ten minutes; a new request replaces it and five wrong entries end it. You can request one per minute, up to five per hour. Mobile deletion requires the emailed code rather than your password.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close