Skip to main content

Worked request and response samples

Copy a request body as written, substitute your own ids, and compare the response envelope. Successful writes return { data, meta }; failures return Devotel Orbit’s { error, meta } envelope, shown once below under Error envelope. Every sample on this page uses the same agent id, agt_7e3b9c1f.

List agents

GET /api/v1/agents/
Returns one page of agents, newest first. Pass status=active to hide drafts, or search to match on name. The meta.pagination.cursor value on the response feeds the next page’s cursor query parameter. Request

Get one agent

GET /api/v1/agents/{id}
Returns the full agent row, including generation settings (temperature, max_tokens), tools, and the bound knowledge_base_ids. The sample id below is the same one this page uses in every call. Request

Create an agent

POST /api/v1/agents/
Only name is required. Everything else — type, model, system_prompt, generation settings, tools, knowledge_base_ids — falls back to tenant defaults. Bind the agent to one or more knowledge bases with knowledge_base_ids and it grounds its answers on that content; every id is checked against your workspace at create time. Request

Deploy the agent

POST /api/v1/agents/{id}/deploy
Moves an agent out of draft onto one channel. channel is required — one of webhook, sms, whatsapp, voice, rcs. webhook_url is required when channel is webhook; phone_number is required for SMS / WhatsApp / voice deployments. Deploying flips status to active; there is also a matching POST /api/v1/agents/{id}/undeploy. Request

Define an eval dataset

POST /api/v1/agents/{agentId}/evals/datasets
Eval datasets are golden answer sets you score the agent against. name plus at least one rows entry are required; each row carries an input (the user turn) and expected_output (the answer you grade). row_count updates as rows come and go. Request

Run the eval

POST /api/v1/agents/{agentId}/evals/runs
Kicks off an asynchronous run; the response returns immediately with status: "pending" and the worker processes each row against the agent. dataset_id and rubric_name are required. Check the run state with GET /api/v1/agents/{agentId}/evals/runs/{runId}. Request

Converse with the agent

POST /api/v1/agents/{id}/chat
Send a user turn. Only message is required. Pass the conversationId from a previous reply to keep the thread going — omit it and a new conversation is created for you, its id returned on the response. When the agent grounds an answer on a bound knowledge base, the reply carries matching citations naming the documents it quoted. Request

A2A federation — worked samples

Agent-to-agent federation lets one agent discover another agent’s public card, register it as a peer, and exchange signed tasks. The card and its task endpoints are reachable with the federation signature headers rather than a dashboard session; peer management stays on your API key.

Read your agent’s public A2A card

GET /api/v1/agents/{id}/a2a/card
Returns the published agent-card document peers use for discovery: capabilities, skills, and the card URL. The card is published when A2A is enabled for the agent and is safe to cache; peers refetch it when the version changes. Request

List A2A peers

GET /api/v1/agents/{id}/a2a/peers
Lists the peer agents this agent knows about, with the verification state of each fetched card. Request

Add an A2A peer

POST /api/v1/agents/{id}/a2a/peers
Registers a peer by card URL. Orbit fetches the remote card at registration time and verifies it before the peer becomes usable; a card that fails validation returns 422 and nothing is stored. Request

Remove an A2A peer

DELETE /api/v1/agents/{id}/a2a/peers/{peerId}
Deletes a peer. In-flight tasks from that peer finish, but new tasks from it are rejected. Request

Accept an inbound A2A task

POST /api/v1/agents/{id}/a2a/tasks
A peer sends a signed task to your agent. Every request must carry the X-A2A-Signature header (t=<unix_seconds>,v1=<hmac> over the request body); unsigned or mismatched requests are rejected with 401. State changes are pushed back to the peer’s notification URL when one is supplied. Request

Delegate a task to a peer

POST /api/v1/agents/{id}/a2a/tasks/outbound
Sends a signed task from your agent to one of its registered peers and records the exchange in task history. The call spends LLM tokens on both sides, so it requires the owner, admin, or developer role. Request

List A2A task history

GET /api/v1/agents/{id}/a2a/tasks
Returns the operator view of inbound and outbound tasks for this agent, newest first. Request

Fetch one A2A task

GET /api/v1/agents/{id}/a2a/tasks/{taskId}
Returns a task’s input, current status, and output once complete. Like the inbound endpoint, it requires the X-A2A-Signature header; the signature is computed over an empty body for GET requests. Request

Conversation operations — worked samples

The supervisor-facing conversation surfaces: what is live right now, how to branch a conversation for what-if testing, and how satisfaction ratings are recorded.

Watch live conversations

GET /api/v1/agents/conversations/live
Returns conversations with activity in the last five minutes, across chat and voice. Requires the owner or admin role. If a workspace’s conversation storage is still being provisioned, the endpoint degrades to an empty page rather than an error, so polling clients can keep running. Request

Fork a conversation

POST /api/v1/agents/conversations/{conversationId}/fork
Branches a conversation into a new variant without touching the original: the first fork_from_turn turns are copied into a fresh conversation and the branch lineage is recorded. Requires the owner, admin, or developer role. Request

List fork variants

GET /api/v1/agents/conversations/{conversationId}/variants
Lists the forks created from one source conversation, with each variant’s label and fork point. Request

Record a satisfaction rating

POST /api/v1/agents/conversations/{conversationId}/satisfaction
Records a 1-5 star rating on the conversation. The rating feeds the Satisfaction KPI, the Quality Index, and the quality scorecard, so writing it from your own post-interaction survey keeps those numbers complete. Request

Custom tools — worked samples

The platform tool catalog is what tools on an agent row draws from; custom tools add your own HTTP endpoints, one at a time or in bulk from an OpenAPI document.

List available tools

GET /api/v1/agents/tools
Returns the tools an agent can be configured with: the built-in platform catalog plus any MCP servers you registered. Pass fields=id,name,description for a lightweight projection when you only populate a picker. Request

Register a custom tool

POST /api/v1/agents/custom-tools
Registers one HTTP endpoint as a callable tool. The URL is validated against internal addresses and the name is checked against reserved platform tool names. Tools that spend credits require approval before any agent can call them; until approved the tool stays in pending_approval. Request

Import tools from an OpenAPI spec

POST /api/v1/agents/custom-tools/import
Converts an OpenAPI document into tool candidates. The default dry_run: true parses the spec and scores every operation (importable, reserved_name, duplicate, invalid_url, schema_too_large) without persisting anything; a non-dry-run call creates every importable candidate, optionally narrowed with only. The same URL and reserved-name checks as the single-register endpoint apply. Request

Guardrails and governance — worked samples

Read-only surfaces for what your agents are actually allowed to do: the effective guardrail configuration per agent, the citation audit for grounded voice answers, and the guardrail effectiveness rollup.

Read the effective guardrail policy

GET /api/v1/agents/{id}/guardrail-policy
Returns the agent’s effective safety configuration, the guardrail-policy library entry applied to it (if any), and its per-conversation cost cap. Request

Audit grounding citations

GET /api/v1/agents/grounding-citations-audit
Lists the documents your voice agents cited when answering from knowledge bases, per conversation turn. Use it to audit what grounded answers actually quoted. Request

Guardrail effectiveness analytics

GET /api/v1/agents/guardrail-analytics
Rolls up guardrail decisions over the trailing 30 days: how many turns were evaluated, how many were blocked, and which rules did the blocking. Request

Activation and promotion gates — worked samples

The path from draft to production: activate an agent, update its config, and configure the two gates that decide whether a change is allowed to promote: the pre-promotion regression gate and the red-team gate.

Activate a draft agent

POST /api/v1/agents/{id}/activate
Moves a draft agent to active without a channel deployment. When the pre-promotion regression gate is enabled for the agent, activation re-checks the gate first and returns 409 with the failing datasets if the latest eval run does not pass. Request

Update an agent

PATCH /api/v1/agents/{id}
Updates any subset of the mutable config: name, system_prompt, model, generation settings, tools, knowledge_base_ids. Every change mints a new config version and records the changed fields for the audit trail, so you can diff and roll back from the version history. Request

Set the pre-promotion regression gate

PATCH /api/v1/agents/{id}/promotion-gate/settings
Configures the regression gate that activation and promotion must pass: which eval datasets are required and the pass rate each must reach. With enabled: true, a promotion whose eval run misses the threshold is refused. Request

Set the red-team gate

PATCH /api/v1/agents/{id}/red-team/gate-settings
Configures the red-team gate: whether promotion requires a clean red-team run and which finding severities block it. Request

Download the red-team pack

GET /api/v1/agents/{id}/red-team/pack
Returns the generated probe pack for this agent: the attack categories covered and the prompts to run against it, so your own red-team tooling can exercise the same surface the gate checks. Request

Run the red-team gate

POST /api/v1/agents/{id}/red-team/run
Kicks off an asynchronous red-team run against the agent. The response returns immediately with status: "pending"; when the run completes, its findings are matched against the gate settings above and recorded for the next promotion decision. Request

Voice — worked samples

Originate a call from a voice agent

POST /api/v1/agents/{id}/calls
Places an outbound call and hands the answered call to the voice agent. Origination uses the same voice path as dashboard click-to-call, so the call exits through your configured voice routing; the agent must have outbound calling enabled (PATCH /api/v1/agents/{id}/outbound-calling) and the destination is checked against your suppression lists. Request

Error envelope

Most write failures return 422 with the offending field named in message. Creating or updating an agent re-checks every knowledge_base_ids entry against your workspace, so a detached id — one that was deleted, or copied from another tenant — fails fast here instead of silently weakening the agent’s answers.
422

Worked sequences

The catalogue above trims every operation past the fifteenth to cURL plus Node.js (TypeScript). The two flows below re-run the agent surface’s starting points in the full six-language group; request bodies and response envelopes are the ones the catalogue publishes for each operation.

Create an agent, then read it back

Create takes the agent’s configuration and returns its id; the detail read returns the stored record you branch on while the agent moves through its lifecycle. Create the agent — POST /api/v1/agents/
List agents — GET /api/v1/agents/

Register a custom tool, then read it back

Custom tools extend an agent with your own HTTP handlers. Register the tool, then fetch it to confirm the stored schema. Register the tool — POST /api/v1/agents/custom-tools
Read the tool back — GET /api/v1/agents/custom-tools