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

EndpointPurpose
GET /api/v1/healthRuntime status, registered agents, scheduler counts, pending approvals.
GET /api/v1/eventsReplayable event history.
GET /api/v1/events/streamGlobal SSE stream of every lifecycle event.
GET /api/v1/metricsPrometheus exposition.
GET /api/v1/monitoringMetrics summary the Monitoring page renders.

Agents and runs

EndpointPurpose
/api/v1/agentsRegistered agents and their tools.
/api/v1/specsAgent Specs — list, create, update.
/api/v1/executionsCreate a run; list; get one; pause, resume, cancel, archive. Per-execution SSE stream.
/api/v1/schedulesRecurring and one-shot runs.
/api/v1/tool-approvalsPending approvals; approve or reject with a note.
/api/v1/outputsArtifacts produced by executions.
/api/v1/swarmSwarm Forge role pipelines.
/api/v1/teamsAgent teams and rooms.
/api/v1/durableDurable workflow runs.
/api/v1/dataData Agent Runtime: governed natural-language queries over connected sources.

Intelligence and knowledge

EndpointPurpose
/api/v1/evalsEval suites and runs.
/api/v1/snapshotsPlatform snapshots; /snapshots/import.
/api/v1/memoryOrganization memory.
/api/v1/knowledgeKnowledge base; /knowledge/search, /knowledge/graph.
/api/v1/evolutionPolicy training; /evolution/dataset, /evolution/cycle, /evolution/health.
/api/v1/studioAI Studio: datasets, jobs, benchmarks, releases.
/api/v1/skillsSkills registered with the runtime.
/api/v1/fabric/skillsThe skills corpus with history, evals, telemetry, rollback, deprecate.

Chat

EndpointPurpose
/api/v1/chat/conversationsThreads; POST …/:id/messages sends a turn (SSE unless stream:false). Body: text, mode, effort, model, attachments.
/api/v1/chat/modelsModel catalog, your default and router; /models/test reaches one.
/api/v1/chat/settingsPer-user settings: default model, router, provider keys, tools, MCP.
/api/v1/chat/skillsSkills the chat can load.
/api/v1/chat/projectsProjects with instructions and files.
/api/v1/chat/searchSearch across your conversations.
/api/v1/chat/exportExport a conversation.
/api/v1/chat/keysSelf-service API keys.

Platform and governance

EndpointPurpose
/api/v1/identity/login · signup · whoami · principalsSessions, accounts, and API-key principals.
/api/v1/usage · /usage/ledger · /usage/budgetMetering snapshot, the durable ledger, budget caps.
/api/v1/secretsOrganization vault.
/api/v1/security/policyTenant security policy: IP allowlist, key lifetimes, retention.
/api/v1/auditAudit trail.
/api/v1/notificationsAlerts; /notifications/read-all.
/api/v1/webhooksEvent fan-out channels.
/api/v1/exchange · /frameworks · /pluginsMarketplace, framework adapters, capability registry.
/api/v1/admin/overviewCross-tenant overview (platform admins).

Examples#

health
curl https://nexora-pi-bridge-976099405307.us-central1.run.app/api/v1/health -H "x-api-key: $NEXORA_API_KEY"
create an execution
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" } }'
stream events
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"}
send a chat turn on a specific model
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

Streams send a comment line every few seconds as a heartbeat, so a proxy never mistakes a long tool call for a dead connection. Aborting the client does not abort the turn: it finishes and is saved.

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.