Skip to content
TrustMeshVyantraa

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-Token for 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) and offset; responses contain page: {limit, offset, total, next_offset}.
  • Rate limits: per user/key per minute, per agent per minute on the runtime path; 429 with Retry-After.

Endpoints

MethodPathPermission
POST/v1/auth/signup, /login, /logout, /demopublic
GET/v1/auth/mesigned in
POST/v1/auth/password-reset/request, /confirmpublic
GET, POST/v1/agentsagents:read, agents:write
GET, PATCH/v1/agents/{id}agents:read, agents:write
PUT/v1/agents/{id}/toolsagents:write
POST/v1/agents/{id}/statusagents:status (human)
POST, DELETE/v1/agents/{id}/credentialsagents:status (human)
GET, POST/v1/toolstools:read, tools:write
GET, PATCH/v1/tools/{id}tools:read, tools:write
POST/v1/tools/{id}/versions/{vid}/approve, /rejecttools:review (human)
GET, POST/v1/mcp-serverstools:read, tools:write
GET, POST/v1/policiespolicies:read, policies:write
GET/v1/policies/{id}, /{id}/decisionspolicies:read
POST/v1/policies/{id}/versionspolicies:write
POST/v1/policies/{id}/activate, /deactivatepolicies:activate (human)
POST/v1/policies/testpolicies:test
POST/v1/runtime/authorizeagent credential
GET/v1/runtime/requests/{id}agent credential
POST/v1/runtime/requests/{id}/resultagent credential
POST/v1/gateway/simulateruntime:simulate (human)
GET/v1/gateway/requests, /{id}runtime:read
GET/v1/approvals, /{id}approvals:read
POST/v1/approvals/{id}/decisionapprovals:decide (human)
GET, PATCH/v1/findings, /{id}findings:read, findings:write
POST/v1/findings/{id}/ai-analysisfindings:write (409 if no provider)
GET/v1/risk/overview, /v1/dashboardfindings:read, dashboard:read
GET/v1/audit/events, /{seq}audit:read
POST/v1/audit/verifyaudit:read
GET/v1/audit/exportaudit:export
GET, PATCH/v1/orgorg:read, org:manage
GET, POST, PATCH, DELETE/v1/org/membersorg:read, users:manage
GET, POST, DELETE/v1/org/api-keysapikeys:manage
GET/v1/org/billing, /v1/integrationsorg:read
POST, GET/v1/sandbox/*public sandbox session
POST/v1/public/contactpublic
GET/v1/health, /v1/public/statuspublic

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.