Platform reference
API
Everything the Console does, the API does. One REST surface under /api/v1, Server-Sent Events for anything live, and MCP and A2A for agents talking to agents.
Base URL and authentication#
The production runtime is https://nexora-pi-bridge-976099405307.us-central1.run.app. A self-hosted runtime listens on port 8787 by default. The Console reaches the runtime through its own proxy at /api/nx/*, which injects the key server-side and streams SSE unbuffered — so the browser never sees the runtime origin.
Authenticate with an API key from Settings, as either header:
x-api-key: <key>
Authorization: Bearer <key>The key is a principal with a role — viewer, operator or admin — and an organization scope. Requests outside the role return 403; an organization budget that is exhausted returns 402 on model calls.
Endpoint groups#
Health and events
| Endpoint | Purpose |
|---|---|
GET /api/v1/health | Runtime status, registered agents, scheduler counts, pending approvals. |
GET /api/v1/events | Replayable event history. |
GET /api/v1/events/stream | Global SSE stream of every lifecycle event. |
GET /api/v1/metrics | Prometheus exposition. |
GET /api/v1/monitoring | Metrics summary the Monitoring page renders. |
Agents and runs
| Endpoint | Purpose |
|---|---|
/api/v1/agents | Registered agents and their tools. |
/api/v1/specs | Agent Specs — list, create, update. |
/api/v1/executions | Create a run; list; get one; pause, resume, cancel, archive. Per-execution SSE stream. |
/api/v1/schedules | Recurring and one-shot runs. |
/api/v1/tool-approvals | Pending approvals; approve or reject with a note. |
/api/v1/outputs | Artifacts produced by executions. |
/api/v1/swarm | Swarm Forge role pipelines. |
/api/v1/teams | Agent teams and rooms. |
/api/v1/durable | Durable workflow runs. |
/api/v1/data | Data Agent Runtime: governed natural-language queries over connected sources. |
Intelligence and knowledge
| Endpoint | Purpose |
|---|---|
/api/v1/evals | Eval suites and runs. |
/api/v1/snapshots | Platform snapshots; /snapshots/import. |
/api/v1/memory | Organization memory. |
/api/v1/knowledge | Knowledge base; /knowledge/search, /knowledge/graph. |
/api/v1/evolution | Policy training; /evolution/dataset, /evolution/cycle, /evolution/health. |
/api/v1/studio | AI Studio: datasets, jobs, benchmarks, releases. |
/api/v1/skills | Skills registered with the runtime. |
/api/v1/fabric/skills | The skills corpus with history, evals, telemetry, rollback, deprecate. |
Chat
| Endpoint | Purpose |
|---|---|
/api/v1/chat/conversations | Threads; POST …/:id/messages sends a turn (SSE unless stream:false). Body: text, mode, effort, model, attachments. |
/api/v1/chat/models | Model catalog, your default and router; /models/test reaches one. |
/api/v1/chat/settings | Per-user settings: default model, router, provider keys, tools, MCP. |
/api/v1/chat/skills | Skills the chat can load. |
/api/v1/chat/projects | Projects with instructions and files. |
/api/v1/chat/search | Search across your conversations. |
/api/v1/chat/export | Export a conversation. |
/api/v1/chat/keys | Self-service API keys. |
Platform and governance
| Endpoint | Purpose |
|---|---|
/api/v1/identity/login · signup · whoami · principals | Sessions, accounts, and API-key principals. |
/api/v1/usage · /usage/ledger · /usage/budget | Metering snapshot, the durable ledger, budget caps. |
/api/v1/secrets | Organization vault. |
/api/v1/security/policy | Tenant security policy: IP allowlist, key lifetimes, retention. |
/api/v1/audit | Audit trail. |
/api/v1/notifications | Alerts; /notifications/read-all. |
/api/v1/webhooks | Event fan-out channels. |
/api/v1/exchange · /frameworks · /plugins | Marketplace, framework adapters, capability registry. |
/api/v1/admin/overview | Cross-tenant overview (platform admins). |
Examples#
curl https://nexora-pi-bridge-976099405307.us-central1.run.app/api/v1/health -H "x-api-key: $NEXORA_API_KEY"curl https://nexora-pi-bridge-976099405307.us-central1.run.app/api/v1/executions \
-H "x-api-key: $NEXORA_API_KEY" -H "content-type: application/json" \
-d '{ "agent": "invoice-reconciler", "input": { "mission": "Reconcile last night\u2019s supplier invoices" } }'curl -N https://nexora-pi-bridge-976099405307.us-central1.run.app/api/v1/events/stream -H "x-api-key: $NEXORA_API_KEY"
data: {"type":"execution_started","executionId":"exec-…","agent":"invoice-reconciler"}
data: {"type":"checkpoint_saved","executionId":"exec-…","step":2}
data: {"type":"approval_requested","executionId":"exec-…","tool":"release_payment"}curl -N https://nexora-pi-bridge-976099405307.us-central1.run.app/api/v1/chat/conversations/$CONVERSATION/messages \
-H "x-api-key: $NEXORA_API_KEY" -H "content-type: application/json" \
-d '{ "text": "What did the reconciler do last night?", "mode": "chat", "model": "vertex:claude-opus-5" }'Note
MCP and A2A#
- MCP. Every registered agent is exposed as an MCP tool over streamable HTTP at
/mcp. Point Claude Desktop, an IDE or another agent at it and the whole fleet is callable. - A2A. Agents are reachable over the A2A JSON-RPC protocol for agent-to-agent delegation across runtimes.
- Webhooks. Register a channel and choose event types; the runtime fans out with retries.