API Scopes

AutoCISO tokens carry one or more scopes. These four are the complete set — the server rejects any other value at token creation.

The four scopes

ScopeGrantsImplies
sbom:readRead SBOMs, components, findings, vendors
sbom:writeCreate, upload, update, and delete supply-chain recordssbom:read
mcp:readThe 22 read-only MCP tools
mcp:writeThe risk_create_draft MCP toolmcp:read

Implication is one-directional: a token with sbom:write can read, but a token with sbom:read cannot write. The two families are independent — sbom:write grants nothing over MCP, and mcp:write grants nothing over REST.

REST scope matrix

All paths are relative to https://api.autociso.io/api/v1. Every route below is additionally gated by the supply_chain_security plan feature.

SBOMs

MethodPathScope
GET/sscs/sbomssbom:read
GET/sscs/sboms/{sbomId}sbom:read
GET/sscs/sboms/{sbomId}/componentssbom:read
POST/sscs/sbomssbom:write
POST/sscs/sboms/uploadsbom:write
DELETE/sscs/sboms/{sbomId}sbom:write

Findings

MethodPathScope
GET/sscs/findingssbom:read
GET/sscs/findings/summarysbom:read
PATCH/sscs/findings/{findingId}/statussbom:write

Vendors

MethodPathScope
GET/sscs/vendorssbom:read
GET/sscs/vendors/risk-summarysbom:read
POST/sscs/vendorssbom:write
PUT/sscs/vendors/{vendorId}sbom:write

That is the entire REST surface available to an API token. See What an API Token Can Reach for what happens everywhere else.

MCP scope matrix

Over /mcp, scope determines which tools appear in tools/list. A token with mcp:read never sees the write tool at all — it is filtered out of the listing rather than failing at call time.

ScopeTools visible
mcp:read22 read-only tools
mcp:writeAll 23

The write tool has a second gate: it is also hidden unless MCP writes are enabled for the deployment. A token with mcp:write against a deployment with writes disabled sees only the 22 read tools. See MCP Auth and Scopes.

Scope errors

A valid token calling an allowlisted endpoint without the needed scope gets 403:

{
  "data": null,
  "error": {
    "code": "INSUFFICIENT_SCOPE",
    "message": "this API token does not have the required scope: sbom:write"
  }
}

The message names the missing scope. Scopes are fixed at creation — to change them, create a new token and revoke the old one.

Next steps

Last reviewed: 2026-09-09

Was this page helpful?

Esc