Obtaining an API Token
AutoCISO API tokens are long-lived bearer credentials for service accounts — CI/CD pipelines, scripts, and AI clients connecting over MCP. This page covers creating, scoping, and revoking them.
Prerequisites
- An AutoCISO account with the Owner or Manager role
- Access to Settings → API Tokens
Tokens are issued per organisation. A token created in one org can never read another org’s data — the organisation is bound into the token itself and resolved on the server.
Creating a token
- Go to Settings → API Tokens
- Click New token
- Enter a name that identifies the integration (e.g.,
ci-pipeline-sbom-upload) - Select the required scopes (see the table below)
- Optionally set an expiry date
- Click Create
- Copy the token immediately — it is only shown once
The token value looks like aci_<64 hex chars>_<64 hex chars> and always begins with aci_.
Scopes
These four scopes are the complete set. Any other value is rejected when the token is created.
| Scope | Grants | Use it for |
|---|---|---|
sbom:read | Read SBOMs, components, findings, vendors | Dashboards, reporting jobs |
sbom:write | Create/upload SBOMs, update findings, manage vendors — implies sbom:read | CI/CD upload pipelines |
mcp:read | The 22 read-only MCP tools | AI clients (Claude, Cursor, VS Code) |
mcp:write | Adds the risk_create_draft MCP tool — implies mcp:read | AI clients permitted to file risk drafts |
Grant the narrowest scope that works. A CI job that only uploads SBOMs needs sbom:write and nothing else. See API Scopes for the endpoint-by-endpoint matrix.
Using the token
Include the token as a Bearer value in the Authorization header of every request:
Authorization: Bearer aci_your_token_here
Token lifecycle
- Expiry is optional. Set
expiresAtwhen creating a token and it stops working after that moment. Leave it unset and the token remains valid until revoked. - Revoke tokens from Settings → API Tokens when an integration is decommissioned. Revocation takes effect immediately.
- If a token leaks, revoke it immediately and issue a replacement. Because each integration should hold its own token, revocation is surgical — only the leaked client loses access.
- AutoCISO stores only a SHA-256 hash of the token. Nobody — including support — can recover the value after creation.
What tokens cannot do
- Manage other tokens.
GET/POST/DELETEon/api/v1/tokensreject API-token auth with403. Token management requires an interactive user session. - Act as a user. Token requests carry no user identity, so endpoints that attribute actions to a person are unavailable to them.
- Choose an organisation. There is no
org_idparameter and noX-Org-IDheader for API tokens.
Rate limits
There is no per-token application rate limit. A shared infrastructure limit of 20 requests per second per client IP applies at the edge and returns 429 Too Many Requests when exceeded.
The MCP endpoint is limited separately and more tightly — see MCP Errors and Retries.
Next steps
- What an API Token Can Reach — the endpoint allowlist
- API Quickstart — your first call
- Upload an SBOM via API
- MCP Auth and Scopes — for AI clients
Was this page helpful?