API reference

The complete, machine-readable definition of the Maetra API lives in openapi.yaml (OpenAPI 3.1). It covers Govern, Secure, Task Guard, Agents, and system operations.

Note Wiring the spec in GitBook. Add the OpenAPI file as an API reference source: Organization settings → Integrations → OpenAPI, upload openapi.yaml (or point at a hosted URL), then insert an OpenAPI block on this page.

Operations#

All endpoints are served from https://api.maetra.io and require a Bearer API key unless noted.

Govern

MethodPathScopeDocs
POST/v1/checkpointsgovern:checkpoints:writeCheckpoints
GET/v1/checkpoints/{id}govern:checkpoints:readCheckpoints
GET/v1/checkpoints/{id}/waitgovern:checkpoints:readCheckpoints
GET/v1/policies/activegovern:policies:readPolicies

Secure

MethodPathScopeDocs
GET/v1/secure/rulessecure:rules:readRules
POST/v1/secure/rulessecure:rules:writeRules
PATCH/v1/secure/rules/{id}secure:rules:writeRules
POST/v1/secure/scansecure:scan:writeScanning content
GET/v1/secure/incidentssecure:incidents:readIncidents

Agents

MethodPathScopeDocs
GET/v1/agentsdiscover:agents:readAgents

Task Guard

MethodPathScopeDocs
POST/v1/task-guard/tools/{tool}Depends on toolTask Guard API
POST/v1/task-guard/sessionstask_guard:tasks:writeTasks and context
POST/v1/task-guard/taskstask_guard:tasks:writeTasks and context
POST/v1/task-guard/sessions/{sessionId}/user-eventstask_guard:confirmations:write + trusted credentialTasks and context
GET/v1/task-guard/tasks/{taskId}task_guard:tasks:readTasks and context
GET/v1/task-guard/tasks/{taskId}/contexttask_guard:tasks:readTasks and context
POST/v1/task-guard/tasks/{taskId}/progresstask_guard:tasks:writeTasks and context
POST/v1/task-guard/tasks/{taskId}/pausetask_guard:tasks:writeTasks and context
POST/v1/task-guard/tasks/{taskId}/resumetask_guard:tasks:writeTasks and context
POST/v1/task-guard/tasks/{taskId}/canceltask_guard:tasks:writeTasks and context
POST/v1/task-guard/tasks/{taskId}/completetask_guard:tasks:writeTasks and context
POST/v1/task-guard/tasks/{taskId}/checkstask_guard:checks:writeAlignment and effects
POST/v1/task-guard/tasks/{taskId}/changestask_guard:checks:writeAlignment and effects
POST/v1/task-guard/checks/{checkId}/explanationtask_guard:checks:writeAlignment and effects
POST/v1/task-guard/checks/{checkId}/effectstask_guard:effects:writeAlignment and effects
POST/v1/task-guard/changes/{proposalId}/confirmationtask_guard:confirmations:write + trusted credentialAlignment and effects
POST/v1/task-guard/alignment/verifytask_guard:checks:writeAlignment and effects

System

MethodPathAuthDocs
GET/v1/pingAny valid keyAuthentication
GET/.well-known/jwks.jsonNoneDecision tokens
Maetra AI DocsGovern agents before they act.