Authentication

The Brie API uses Bearer token authentication. Include your API key in the Authorization header of every request:

curl https://api.briehq.com/v1/me \
  -H "Authorization: Bearer brie_pat_your_key_here"

API key types

TypePrefixScopeUse case
Personal Access Token (PAT)brie_pat_All workspaces you belong toPersonal scripts, CLI tools, AI agents
Workspace Service Token (WST)brie_wst_Single workspace onlyCI/CD pipelines, team automations

PAT (Personal Access Token)

Acts as you. Has access to all workspaces in your organization where you're a member. Best for personal use and development.

WST (Workspace Service Token)

Scoped to a single workspace. Cannot access other workspaces or create new ones. Best for automated systems that should only touch one workspace.

Creating an API key

  1. Go to app.briehq.comSettingsIntegrationsAPI Keys
  2. Click Create API Key
  3. Choose PAT or WST, select scopes, and set an optional expiry
  4. Copy the token — it's shown only once

Scopes

Each API key has a set of scopes that control what it can access:

ScopeAllows
slices:readList and view bug reports
slices:writeCreate and update bug reports
slices:deleteDelete bug reports
workspaces:readList and view workspaces
workspaces:writeCreate and update workspaces
spaces:readList spaces within workspaces
spaces:writeCreate spaces
user:readView your own profile
keys:manageCreate, list, revoke, and rotate API keys
webhooks:manageCreate, list, delete, and manage webhooks

Tip: Follow the principle of least privilege. Only grant the scopes your integration actually needs.