Documentation

API Reference

Complete REST API documentation for the Cognigate governance engine.

Interactive API Explorer

The full interactive API documentation is available via Swagger UI and ReDoc:

Base URL

https://cognigate.dev/v1

Core Endpoints

Intent Analysis

MethodEndpointDescription
POST/v1/intentsSubmit a governance intent for analysis
GET/v1/intents/:idRetrieve intent analysis result

Enforcement

MethodEndpointDescription
POST/v1/enforceEnforce policy on an intent
POST/v1/enforce/batchBatch enforcement for multiple intents

Proof Chain

MethodEndpointDescription
GET/v1/proofs/:idRetrieve a specific proof receipt
GET/v1/proofs/latestGet most recent proof for an agent
GET/v1/proofs/chain/:agentIdRetrieve full proof chain
POST/v1/proofs/verifyVerify proof chain integrity

Trust

MethodEndpointDescription
GET/v1/trust/:agentIdGet current trust score and tier
GET/v1/trust/:agentId/historyTrust score history over time
POST/v1/trust/signalsSubmit a trust signal

Agents

MethodEndpointDescription
POST/v1/agentsRegister a new agent
GET/v1/agents/:idGet agent details
GET/v1/agentsList all registered agents

Health

MethodEndpointDescription
GET/healthService health check
GET/statusDetailed status with version info

Authentication

All endpoints require an API key. See Authentication for details.

Response Format

All responses are JSON. Successful responses include a data field. Errors include error with a standardized code:

// Success
{
  "data": { ... },
  "meta": { "requestId": "req_abc123", "timestamp": "2026-03-28T..." }
}

// Error
{
  "error": {
    "code": "E1001",
    "message": "API key is missing.",
    "docsUrl": "https://cognigate.dev/docs/authentication"
  }
}