Docs · API tokens

Accounts & security

API tokens

API tokens let scripts, CI jobs and integrations act on your workspace without a password. Each token belongs to the workspace, not to a person, so it keeps working when people come and go.

Create a token#

Owners and admins can create tokens:

  1. Open Settings → API tokens.
  2. Give the token a name that says where it’s used, such as CI release uploads.
  3. Pick its scopes (see below). Give it only what it needs.
  4. Choose Create token.

Bugzor shows the token once. Copy it into your secret store right away. We only keep a hash, so we can’t show it again. A token looks like this:

Text
bgz_1a2b3c4d_5e6f…

The part after bgz_, up to the next underscore, is the token’s prefix. The token list shows it, so you can tell tokens apart without seeing the secret.

Scopes#

ScopeAllows
org:readRead the workspace, its members and teams
projects:readList projects and read their settings
projects:writeCreate and change projects and DSN keys
issues:readRead issues and events
issues:writeResolve, ignore, reopen and assign issues
traces:readRead traces and spans
logs:readSearch logs
crons:readRead cron monitors and their runs
crons:writeMute and unmute cron monitors
events:writeSend events on behalf of the workspace

To give an AI agent read access to errors, traces and logs, see the MCP server.

Use a token#

Send it as a bearer token:

Terminal
curl -H "Authorization: Bearer $BUGZOR_TOKEN" https://www.bugzor.com/api/…

See the documentation or contact support for help using API tokens.

Revoke a token#

On Settings → API tokens, choose Revoke next to the token. It stops working immediately, and the list keeps it (marked revoked) so you can see when it was last used.

Revoke a token as soon as it might have leaked: committed to a repository, pasted in a chat, or printed in a CI log. Creating and revoking tokens is recorded in the audit log.

Tips#

  • One token per use. If one leaks, you revoke it without breaking anything else.
  • Prefer read-only scopes for dashboards and reports.
  • The list shows when each token was last used. Revoke the ones nobody uses.

Something unclear or out of date? Tell us.