Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HTTP API Reference

The Akshi runtime exposes an HTTP API for monitoring, control, and inter-agent communication. The dashboard and SDKs use this API internally.

Base URL

http://127.0.0.1:3210/api/v1/

The port is configured by dashboard.port in runtime.toml.

Authentication

All endpoints require authentication unless the runtime is started in local-only mode. Two methods are supported:

MethodHeader / Cookie
Bearer token (recommended)Authorization: Bearer <token>
Dashboard cookieakshi_dashboard_token=<token>

See Authentication for details on CSRF and CORS.

CSRF protection

Mutating requests (POST, PUT, PATCH, DELETE) that use cookie authentication must include the X-Akshi-Csrf header. Bearer-token requests are exempt.

Rate limiting

Every response includes rate-limit headers:

HeaderDescription
X-RateLimit-LimitMaximum requests per window
X-RateLimit-RemainingRemaining requests in the current window
X-RateLimit-ResetUnix timestamp when the window resets

Error format

All errors return a JSON body:

{"error": "code", "detail": "human-readable message"}

HTTP status codes follow standard semantics: 400 for bad input, 401 for missing auth, 403 for forbidden, 404 for not found, 429 for rate limited.

Endpoint categories

CategoryPagePrefix
Health & Metricshealth-metrics/api/v1/health, /api/v1/metrics
Agent Statusagent-status/api/v1/agents
Logs & Findingslogs-findings/api/v1/logs, /api/v1/findings
Event Streamsevent-streams/api/v1/events (SSE)
A2A Tasksa2a-tasks/api/v1/a2a
Approvalsapprovals/api/v1/approvals
Broker Grantsbroker-grants/api/v1/broker
Sync & Convergencesync-convergence/api/v1/sync
Registryregistry/api/v1/registry
MCP Servermcp-server/api/v1/mcp
Discoverydiscovery/.well-known/