Skip to content

Admin Dashboard: API Keys

API keys authenticate programmatic access to the ByteBrew Engine. Each key can be scoped to specific capabilities, allowing you to follow the principle of least privilege. Keys are created through the dashboard and can be revoked at any time.

  • Click “Create API Key” on the API Keys page.
  • Give it a descriptive name (e.g., “chatbot-frontend”, “ci-cd-pipeline”).
  • Select the scopes this key needs (see table below).
  • Click “Create” — the key is shown once. Copy it immediately.
ScopeDescription
chatSend messages to a schema (POST /schemas/{name}/chat). The most common scope for client applications.
tasksCRUD operations on /tasks. Create, list, cancel tasks and provide input.
agents:readRead-only access to agent configurations (GET /agents).
configReload, export, and import configuration. Useful for CI/CD pipelines.
adminFull access to all endpoints including API key management and settings.
Terminal window
# Use an API key in requests
curl http://localhost:8443/api/v1/agents \
-H "Authorization: Bearer bb_your_api_token"
# Example: key with chat + tasks scopes
# Can call: POST /schemas/{name}/chat, GET/POST/DELETE /tasks
# Cannot call: /config/reload, API key management, settings
# Example: key with config scope only (CI/CD)
curl -X POST http://localhost:8443/api/v1/config/reload \
-H "Authorization: Bearer bb_cicd_deploy_token"

Click the “Revoke” button next to any key in the list. Revocation is immediate — any request using that key will receive a 401 Unauthorized response. Revocation is logged in the Audit Log.