Reference
API reference
Endpoints, authentication, permissions, errors and pagination.
Interactive OpenAPI documentation is served by the API at /v1/docs (/v1/openapi.json). Base path in local development through the web app: /api/v1.
Conventions
- Authentication: session cookie +
X-CSRF-Tokenfor people;Bearer tmk_…for API keys;Bearer tmag_…for agents (runtime only). - Errors: RFC 9457 problem JSON:
{type, title, status, code, detail, request_id, errors?}. No stack traces. - Pagination:
limit(max 200) andoffset; responses containpage: {limit, offset, total, next_offset}. - Rate limits: per user/key per minute, per agent per minute on the runtime path;
429withRetry-After.
Endpoints
| Method | Path | Permission |
|---|---|---|
| POST | /v1/auth/signup, /login, /logout, /demo | public |
| GET | /v1/auth/me | signed in |
| POST | /v1/auth/password-reset/request, /confirm | public |
| GET, POST | /v1/agents | agents:read, agents:write |
| GET, PATCH | /v1/agents/{id} | agents:read, agents:write |
| PUT | /v1/agents/{id}/tools | agents:write |
| POST | /v1/agents/{id}/status | agents:status (human) |
| POST, DELETE | /v1/agents/{id}/credentials | agents:status (human) |
| GET, POST | /v1/tools | tools:read, tools:write |
| GET, PATCH | /v1/tools/{id} | tools:read, tools:write |
| POST | /v1/tools/{id}/versions/{vid}/approve, /reject | tools:review (human) |
| GET, POST | /v1/mcp-servers | tools:read, tools:write |
| GET, POST | /v1/policies | policies:read, policies:write |
| GET | /v1/policies/{id}, /{id}/decisions | policies:read |
| POST | /v1/policies/{id}/versions | policies:write |
| POST | /v1/policies/{id}/activate, /deactivate | policies:activate (human) |
| POST | /v1/policies/test | policies:test |
| POST | /v1/runtime/authorize | agent credential |
| GET | /v1/runtime/requests/{id} | agent credential |
| POST | /v1/runtime/requests/{id}/result | agent credential |
| POST | /v1/gateway/simulate | runtime:simulate (human) |
| GET | /v1/gateway/requests, /{id} | runtime:read |
| GET | /v1/approvals, /{id} | approvals:read |
| POST | /v1/approvals/{id}/decision | approvals:decide (human) |
| GET, PATCH | /v1/findings, /{id} | findings:read, findings:write |
| POST | /v1/findings/{id}/ai-analysis | findings:write (409 if no provider) |
| GET | /v1/risk/overview, /v1/dashboard | findings:read, dashboard:read |
| GET | /v1/audit/events, /{seq} | audit:read |
| POST | /v1/audit/verify | audit:read |
| GET | /v1/audit/export | audit:export |
| GET, PATCH | /v1/org | org:read, org:manage |
| GET, POST, PATCH, DELETE | /v1/org/members | org:read, users:manage |
| GET, POST, DELETE | /v1/org/api-keys | apikeys:manage |
| GET | /v1/org/billing, /v1/integrations | org:read |
| POST, GET | /v1/sandbox/* | public sandbox session |
| POST | /v1/public/contact | public |
| GET | /v1/health, /v1/public/status | public |
API key scopes
registry:read, registry:write, policies:read, policies:write, events:read. Human-only permissions are removed from every API key regardless of scope.