REST API Reference
Base URL
/api/v1/.
Authentication
All requests require a Bearer API key:401, the response is:
Connections
Encrypted credential vaults for MCP and LLM providers.
Connection shape:
serverType is "http", "stdio", or "llm". LLM connections include llmProvider, allowedModels, logFullContent, and bodyRetentionDays.
Policies
Governance rules evaluated at the gateway for every tool call or LLM request.
Policy shape:
connectionSlug is null for global policies (applied to all connections). action is "allow", "deny", or "alert". Rules also support conditions, limit, tokenGuard, and contentGuard fields — see the Policies guide.
Sessions
MCP agent sessions tracked by the governance gateway.
Session shape:
status is "active", "suspended", or "ended".
Audit Events
Complete log of all tool calls, LLM calls, anomaly signals, and policy decisions. Events are retained in Postgres, then archived to S3 and restorable on demand.
Audit event shape:
type is "mcp_tool_call", "llm_call", or "anomaly". LLM call events include provider, model, tokensIn, tokensOut, costCents, latencyMs, and llmEndpoint. Query params: limit, offset, type, connectionSlug, severity, from, to.
Incidents
Security incidents auto-opened by anomaly detection or alert-action policies.
Incident shape:
status is "open", "investigating", or "resolved". Idle incidents auto-resolve after 7 days.
LLM Cost
Cost and token usage for LLM gateway traffic.
Summary shape:
from, to, connectionSlug, provider.
Observe
CISO dashboard metrics for MCP traffic.Webhooks
Outbound HTTP webhooks for real-time event delivery.
Webhook shape:
policy_deny, anomaly. The webhook payload includes type, teamId, serverId, sessionId, toolName, reason, and timestamp. Deliveries are signed with HMAC-SHA256; verify the X-Igris-Signature header.
API Keys
Manage programmatic access keys for the API and gateway.
API keys are shown in full only once on creation. The list endpoint returns metadata only (no raw key values).
Events (SSE)
Real-time event stream over Server-Sent Events.
Each event is a JSON object on the
data: line. The stream is org-scoped — you only receive events for your organization. Keep the connection alive; the server sends a ping comment every 30 seconds.
Pagination
List endpoints use offset pagination:limit is 50; maximum is 200.