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/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
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/');
echo json_encode($result);
{
"data": [
{
"id": "agt_3f6a81c2d4e5471a9b0c2d5e",
"name": "After-hours support",
"status": "active",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"active_conversations": 3,
"conversation_count": 137,
"total_tokens": 84129,
"last_active_at": "2026-08-01T12:00:00.000Z",
"created_at": "2026-07-20T09:30:00.000Z",
"updated_at": "2026-08-01T11:45:00.000Z"
}
],
"meta": {
"request_id": "req_agt_list",
"timestamp": "2026-08-01T12:00:00.000Z",
"pagination": {
"cursor": "2026-07-20T09:30:00.000Z|agt_3f6a81c2d4e5471a9b0c2d5e",
"has_more": true,
"total": 24
}
}
}
Get one agent
GET /api/v1/agents/{id}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
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/{id}" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/{id}');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/{id}")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/{id}", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/{id}')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/{id}');
echo json_encode($result);
{
"data": {
"id": "agt_7e3b9c1f",
"name": "After-hours support",
"status": "active",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"system_prompt": "Answer from the knowledge base; escalate billing questions.",
"temperature": 0.3,
"max_tokens": 1024,
"knowledge_base_ids": ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"]
},
"meta": {
"request_id": "req_agt_get",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Create an agent
POST /api/v1/agents/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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "After-hours support",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"system_prompt": "Answer from the knowledge base; escalate billing questions.",
"knowledge_base_ids": [
"kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"
]
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/', {
"name": "After-hours support",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"system_prompt": "Answer from the knowledge base; escalate billing questions.",
"knowledge_base_ids": [
"kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"
]
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "name": "After-hours support", "type": "chatbot", "model": "claude-sonnet-4-6", "system_prompt": "Answer from the knowledge base; escalate billing questions.", "knowledge_base_ids": ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"] }
result = client.request("POST", "/agents/", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"name": "After-hours support","type": "chatbot","model": "claude-sonnet-4-6","system_prompt": "Answer from the knowledge base; escalate billing questions.","knowledge_base_ids": []any{"kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"}}
if err := client.Request(ctx, "POST", "/agents/", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "name" => "After-hours support", "type" => "chatbot", "model" => "claude-sonnet-4-6", "system_prompt" => "Answer from the knowledge base; escalate billing questions.", "knowledge_base_ids" => ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"] }
result = client.request('POST', '/agents/', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["name" => "After-hours support", "type" => "chatbot", "model" => "claude-sonnet-4-6", "system_prompt" => "Answer from the knowledge base; escalate billing questions.", "knowledge_base_ids" => ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"]];
$result = $client->request('POST', '/agents/', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "agt_3f6a81c2d4e5471a9b0c2d5e81c2d4a5",
"name": "After-hours support",
"type": "chatbot",
"status": "draft",
"model": "claude-sonnet-4-6",
"knowledge_base_ids": ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"]
},
"meta": {
"request_id": "req_agt_create",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Deploy the agent
POST /api/v1/agents/{id}/deploydraft 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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/{id}/deploy" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"channel": "webhook",
"webhook_url": "https://hooks.yourapp.example/agents/support"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/{id}/deploy', {
"channel": "webhook",
"webhook_url": "https://hooks.yourapp.example/agents/support"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "channel": "webhook", "webhook_url": "https://hooks.yourapp.example/agents/support" }
result = client.request("POST", "/agents/{id}/deploy", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"channel": "webhook","webhook_url": "https://hooks.yourapp.example/agents/support"}
if err := client.Request(ctx, "POST", "/agents/{id}/deploy", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "channel" => "webhook", "webhook_url" => "https://hooks.yourapp.example/agents/support" }
result = client.request('POST', '/agents/{id}/deploy', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["channel" => "webhook", "webhook_url" => "https://hooks.yourapp.example/agents/support"];
$result = $client->request('POST', '/agents/{id}/deploy', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "agt_3f6a81c2d4e5471a9b0c2d5e81c2d4a5",
"status": "active",
"channel": "webhook"
},
"meta": {
"request_id": "req_agt_deploy",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Define an eval dataset
POST /api/v1/agents/{agentId}/evals/datasetsname 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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/{agentId}/evals/datasets" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Launch regression",
"description": "Golden answers covering password reset and billing",
"rows": [
{
"input": "How do I reset my password?",
"expected_output": "Open Settings > Security, then choose Reset password.",
"metadata": {
"priority": "high"
}
},
{
"input": "What is my billing period?",
"expected_output": "Your billing period is the first of each month.",
"metadata": {
"priority": "medium"
}
}
]
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/{agentId}/evals/datasets', {
"name": "Launch regression",
"description": "Golden answers covering password reset and billing",
"rows": [
{
"input": "How do I reset my password?",
"expected_output": "Open Settings > Security, then choose Reset password.",
"metadata": {
"priority": "high"
}
},
{
"input": "What is my billing period?",
"expected_output": "Your billing period is the first of each month.",
"metadata": {
"priority": "medium"
}
}
]
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "name": "Launch regression", "description": "Golden answers covering password reset and billing", "rows": [{ "input": "How do I reset my password?", "expected_output": "Open Settings > Security, then choose Reset password.", "metadata": { "priority": "high" } }, { "input": "What is my billing period?", "expected_output": "Your billing period is the first of each month.", "metadata": { "priority": "medium" } }] }
result = client.request("POST", "/agents/{agentId}/evals/datasets", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"name": "Launch regression","description": "Golden answers covering password reset and billing","rows": []any{map[string]any{"input": "How do I reset my password?","expected_output": "Open Settings > Security, then choose Reset password.","metadata": map[string]any{"priority": "high"}},map[string]any{"input": "What is my billing period?","expected_output": "Your billing period is the first of each month.","metadata": map[string]any{"priority": "medium"}}}}
if err := client.Request(ctx, "POST", "/agents/{agentId}/evals/datasets", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "name" => "Launch regression", "description" => "Golden answers covering password reset and billing", "rows" => [{ "input" => "How do I reset my password?", "expected_output" => "Open Settings > Security, then choose Reset password.", "metadata" => { "priority" => "high" } }, { "input" => "What is my billing period?", "expected_output" => "Your billing period is the first of each month.", "metadata" => { "priority" => "medium" } }] }
result = client.request('POST', '/agents/{agentId}/evals/datasets', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["name" => "Launch regression", "description" => "Golden answers covering password reset and billing", "rows" => [["input" => "How do I reset my password?", "expected_output" => "Open Settings > Security, then choose Reset password.", "metadata" => ["priority" => "high"]], ["input" => "What is my billing period?", "expected_output" => "Your billing period is the first of each month.", "metadata" => ["priority" => "medium"]]]];
$result = $client->request('POST', '/agents/{agentId}/evals/datasets', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "evalDs_e4f2a1",
"name": "Launch regression",
"row_count": 2,
"created_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_ds_create",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Run the eval
POST /api/v1/agents/{agentId}/evals/runsstatus: "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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/{agentId}/evals/runs" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"dataset_id": "evalDs_e4f2a1",
"rubric_name": "answer_quality",
"threshold": 80
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/{agentId}/evals/runs', {
"dataset_id": "evalDs_e4f2a1",
"rubric_name": "answer_quality",
"threshold": 80
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "dataset_id": "evalDs_e4f2a1", "rubric_name": "answer_quality", "threshold": 80 }
result = client.request("POST", "/agents/{agentId}/evals/runs", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"dataset_id": "evalDs_e4f2a1","rubric_name": "answer_quality","threshold": 80}
if err := client.Request(ctx, "POST", "/agents/{agentId}/evals/runs", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "dataset_id" => "evalDs_e4f2a1", "rubric_name" => "answer_quality", "threshold" => 80 }
result = client.request('POST', '/agents/{agentId}/evals/runs', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["dataset_id" => "evalDs_e4f2a1", "rubric_name" => "answer_quality", "threshold" => 80];
$result = $client->request('POST', '/agents/{agentId}/evals/runs', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "run_n5x301zt",
"dataset_id": "evalDs_e4f2a1",
"rubric_name": "answer_quality",
"status": "pending",
"created_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_run_launch",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Converse with the agent
POST /api/v1/agents/{id}/chatmessage 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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/{id}/chat" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"message": "How do I reset my password?",
"conversationId": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/{id}/chat', {
"message": "How do I reset my password?",
"conversationId": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "message": "How do I reset my password?", "conversationId": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d" }
result = client.request("POST", "/agents/{id}/chat", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"message": "How do I reset my password?","conversationId": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d"}
if err := client.Request(ctx, "POST", "/agents/{id}/chat", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "message" => "How do I reset my password?", "conversationId" => "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d" }
result = client.request('POST', '/agents/{id}/chat', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["message" => "How do I reset my password?", "conversationId" => "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d"];
$result = $client->request('POST', '/agents/{id}/chat', jsonBody: $body);
echo json_encode($result);
{
"conversationId": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d",
"response": "Open Settings > Security, then choose Reset password.",
"tokens_used": 412,
"prompt_tokens": 301,
"completion_tokens": 111,
"citations": [
{
"document_id": "doc_9a1c3e5b7d2f4a6c8e0b1d3f5a7c9e2b",
"document_name": "Account security FAQ"
}
],
"conversation_persisted": true
}
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/cardversion changes.
Request
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/card" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/agt_7e3b9c1f/a2a/card');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/agt_7e3b9c1f/a2a/card")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/agt_7e3b9c1f/a2a/card", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/agt_7e3b9c1f/a2a/card')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/agt_7e3b9c1f/a2a/card');
echo json_encode($result);
{
"data": {
"agent_id": "agt_7e3b9c1f",
"name": "After-hours support",
"version": "1.4",
"url": "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/card",
"capabilities": {
"streaming": true,
"push_notifications": true
},
"skills": [
{
"id": "skill_account_support",
"name": "Account support",
"description": "Password resets, billing questions, and plan changes.",
"tags": ["support", "billing"]
}
]
},
"meta": {
"request_id": "req_a2a_card",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
List A2A peers
GET /api/v1/agents/{id}/a2a/peerscURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/peers" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/agt_7e3b9c1f/a2a/peers');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/agt_7e3b9c1f/a2a/peers")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/agt_7e3b9c1f/a2a/peers", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/agt_7e3b9c1f/a2a/peers')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/agt_7e3b9c1f/a2a/peers');
echo json_encode($result);
{
"data": [
{
"peer_id": "peer_5d8a1c3e",
"name": "Billing specialist",
"card_url": "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card",
"status": "verified",
"added_at": "2026-07-28T10:15:00.000Z"
}
],
"meta": {
"request_id": "req_a2a_peers",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Add an A2A peer
POST /api/v1/agents/{id}/a2a/peers422 and nothing is stored.
Request
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/peers" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Billing specialist",
"card_url": "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/agt_7e3b9c1f/a2a/peers', {
"name": "Billing specialist",
"card_url": "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "name": "Billing specialist", "card_url": "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card" }
result = client.request("POST", "/agents/agt_7e3b9c1f/a2a/peers", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"name": "Billing specialist","card_url": "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card"}
if err := client.Request(ctx, "POST", "/agents/agt_7e3b9c1f/a2a/peers", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "name" => "Billing specialist", "card_url" => "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card" }
result = client.request('POST', '/agents/agt_7e3b9c1f/a2a/peers', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["name" => "Billing specialist", "card_url" => "https://api.orbit.devotel.io/api/v1/agents/agt_9c4d2e7b/a2a/card"];
$result = $client->request('POST', '/agents/agt_7e3b9c1f/a2a/peers', jsonBody: $body);
echo json_encode($result);
{
"data": {
"peer_id": "peer_5d8a1c3e",
"name": "Billing specialist",
"status": "verified",
"card_fetched_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_a2a_peer_add",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Remove an A2A peer
DELETE /api/v1/agents/{id}/a2a/peers/{peerId}cURL
curl -X DELETE "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/peers/peer_5d8a1c3e" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('DELETE', '/agents/agt_7e3b9c1f/a2a/peers/peer_5d8a1c3e', {});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = {}
result = client.request("DELETE", "/agents/agt_7e3b9c1f/a2a/peers/peer_5d8a1c3e", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{{}}
if err := client.Request(ctx, "DELETE", "/agents/agt_7e3b9c1f/a2a/peers/peer_5d8a1c3e", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = {}
result = client.request('DELETE', '/agents/agt_7e3b9c1f/a2a/peers/peer_5d8a1c3e', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = [];
$result = $client->request('DELETE', '/agents/agt_7e3b9c1f/a2a/peers/peer_5d8a1c3e', jsonBody: $body);
echo json_encode($result);
{
"data": {
"peer_id": "peer_5d8a1c3e",
"deleted": true
},
"meta": {
"request_id": "req_a2a_peer_del",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Accept an inbound A2A task
POST /api/v1/agents/{id}/a2a/tasksX-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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/tasks" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"input": "Summarize the open tickets for account 8842.",
"push_notification_url": "https://peer.example/a2a/notifications"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/agt_7e3b9c1f/a2a/tasks', {
"input": "Summarize the open tickets for account 8842.",
"push_notification_url": "https://peer.example/a2a/notifications"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "input": "Summarize the open tickets for account 8842.", "push_notification_url": "https://peer.example/a2a/notifications" }
result = client.request("POST", "/agents/agt_7e3b9c1f/a2a/tasks", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"input": "Summarize the open tickets for account 8842.","push_notification_url": "https://peer.example/a2a/notifications"}
if err := client.Request(ctx, "POST", "/agents/agt_7e3b9c1f/a2a/tasks", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "input" => "Summarize the open tickets for account 8842.", "push_notification_url" => "https://peer.example/a2a/notifications" }
result = client.request('POST', '/agents/agt_7e3b9c1f/a2a/tasks', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["input" => "Summarize the open tickets for account 8842.", "push_notification_url" => "https://peer.example/a2a/notifications"];
$result = $client->request('POST', '/agents/agt_7e3b9c1f/a2a/tasks', jsonBody: $body);
echo json_encode($result);
{
"data": {
"task_id": "task_7b1e9d3f",
"status": "submitted",
"push_notifications": true
},
"meta": {
"request_id": "req_a2a_task_in",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Delegate a task to a peer
POST /api/v1/agents/{id}/a2a/tasks/outboundcURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/tasks/outbound" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"peer_id": "peer_5d8a1c3e",
"input": "Apply the payment-plan policy to invoice INV-2041 and return the decision."
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/agt_7e3b9c1f/a2a/tasks/outbound', {
"peer_id": "peer_5d8a1c3e",
"input": "Apply the payment-plan policy to invoice INV-2041 and return the decision."
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "peer_id": "peer_5d8a1c3e", "input": "Apply the payment-plan policy to invoice INV-2041 and return the decision." }
result = client.request("POST", "/agents/agt_7e3b9c1f/a2a/tasks/outbound", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"peer_id": "peer_5d8a1c3e","input": "Apply the payment-plan policy to invoice INV-2041 and return the decision."}
if err := client.Request(ctx, "POST", "/agents/agt_7e3b9c1f/a2a/tasks/outbound", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "peer_id" => "peer_5d8a1c3e", "input" => "Apply the payment-plan policy to invoice INV-2041 and return the decision." }
result = client.request('POST', '/agents/agt_7e3b9c1f/a2a/tasks/outbound', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["peer_id" => "peer_5d8a1c3e", "input" => "Apply the payment-plan policy to invoice INV-2041 and return the decision."];
$result = $client->request('POST', '/agents/agt_7e3b9c1f/a2a/tasks/outbound', jsonBody: $body);
echo json_encode($result);
{
"data": {
"task_id": "task_c4a8e2d6",
"peer_id": "peer_5d8a1c3e",
"status": "working"
},
"meta": {
"request_id": "req_a2a_task_out",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
List A2A task history
GET /api/v1/agents/{id}/a2a/taskscURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/tasks" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/agt_7e3b9c1f/a2a/tasks');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/agt_7e3b9c1f/a2a/tasks")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/agt_7e3b9c1f/a2a/tasks", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/agt_7e3b9c1f/a2a/tasks')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/agt_7e3b9c1f/a2a/tasks');
echo json_encode($result);
{
"data": [
{
"task_id": "task_c4a8e2d6",
"direction": "outbound",
"peer_name": "Billing specialist",
"status": "completed",
"created_at": "2026-08-01T11:58:00.000Z"
},
{
"task_id": "task_7b1e9d3f",
"direction": "inbound",
"peer_name": "Tier-1 triage",
"status": "working",
"created_at": "2026-08-01T11:55:00.000Z"
}
],
"meta": {
"request_id": "req_a2a_tasks",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Fetch one A2A task
GET /api/v1/agents/{id}/a2a/tasks/{taskId}X-A2A-Signature header; the signature is computed over an empty body for GET requests.
Request
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/a2a/tasks/task_c4a8e2d6" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/agt_7e3b9c1f/a2a/tasks/task_c4a8e2d6');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/agt_7e3b9c1f/a2a/tasks/task_c4a8e2d6")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/agt_7e3b9c1f/a2a/tasks/task_c4a8e2d6", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/agt_7e3b9c1f/a2a/tasks/task_c4a8e2d6')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/agt_7e3b9c1f/a2a/tasks/task_c4a8e2d6');
echo json_encode($result);
{
"data": {
"task_id": "task_c4a8e2d6",
"status": "completed",
"input": "Apply the payment-plan policy to invoice INV-2041 and return the decision.",
"output": "Approved a 3-month plan; monthly amount 340.00 USD.",
"history": [
{ "status": "submitted", "at": "2026-08-01T11:58:00.000Z" },
{ "status": "working", "at": "2026-08-01T11:58:02.000Z" },
{ "status": "completed", "at": "2026-08-01T11:58:09.000Z" }
]
},
"meta": {
"request_id": "req_a2a_task_get",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
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/livecURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/conversations/live" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/conversations/live');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/conversations/live")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/conversations/live", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/conversations/live')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/conversations/live');
echo json_encode($result);
{
"data": [
{
"conversation_id": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d",
"agent_id": "agt_7e3b9c1f",
"channel": "voice",
"status": "active",
"turns": 6,
"started_at": "2026-08-01T11:56:00.000Z",
"last_activity_at": "2026-08-01T11:59:40.000Z"
}
],
"meta": {
"request_id": "req_conv_live",
"timestamp": "2026-08-01T12:00:00.000Z",
"window_minutes": 5
}
}
Fork a conversation
POST /api/v1/agents/conversations/{conversationId}/forkfork_from_turn turns are copied into a fresh conversation and the branch lineage is recorded. Requires the owner, admin, or developer role.
Request
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/fork" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"fork_from_turn": 4,
"label": "Try stricter escalation prompt"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/fork', {
"fork_from_turn": 4,
"label": "Try stricter escalation prompt"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "fork_from_turn": 4, "label": "Try stricter escalation prompt" }
result = client.request("POST", "/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/fork", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"fork_from_turn": 4,"label": "Try stricter escalation prompt"}
if err := client.Request(ctx, "POST", "/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/fork", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "fork_from_turn" => 4, "label" => "Try stricter escalation prompt" }
result = client.request('POST', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/fork', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["fork_from_turn" => 4, "label" => "Try stricter escalation prompt"];
$result = $client->request('POST', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/fork', jsonBody: $body);
echo json_encode($result);
{
"data": {
"conversation_id": "conv_f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5",
"parent_conversation_id": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d",
"fork_from_turn": 4,
"label": "Try stricter escalation prompt",
"created_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_conv_fork",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
List fork variants
GET /api/v1/agents/conversations/{conversationId}/variantscURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/variants" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/variants');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/variants")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/variants", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/variants')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/variants');
echo json_encode($result);
{
"data": [
{
"conversation_id": "conv_f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5",
"label": "Try stricter escalation prompt",
"fork_from_turn": 4,
"created_at": "2026-08-01T12:00:00.000Z"
}
],
"meta": {
"request_id": "req_conv_variants",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Record a satisfaction rating
POST /api/v1/agents/conversations/{conversationId}/satisfactioncURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/satisfaction" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"rating": 5
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/satisfaction', {
"rating": 5
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "rating": 5 }
result = client.request("POST", "/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/satisfaction", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"rating": 5}
if err := client.Request(ctx, "POST", "/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/satisfaction", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "rating" => 5 }
result = client.request('POST', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/satisfaction', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["rating" => 5];
$result = $client->request('POST', '/agents/conversations/conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d/satisfaction', jsonBody: $body);
echo json_encode($result);
{
"data": {
"conversation_id": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d",
"rating": 5,
"recorded_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_conv_csat",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Custom tools — worked samples
The platform tool catalog is whattools 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/toolsfields=id,name,description for a lightweight projection when you only populate a picker.
Request
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/tools" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/tools');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/tools")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/tools", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/tools')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/tools');
echo json_encode($result);
{
"data": [
{
"id": "search_knowledge_base",
"name": "Search knowledge base",
"description": "Query the agent's bound knowledge bases.",
"source": "platform"
},
{
"id": "ct_4e7a9c2b",
"name": "get_order_status",
"description": "Look up an order by id from the store API.",
"source": "custom"
}
],
"meta": {
"request_id": "req_tools_list",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Register a custom tool
POST /api/v1/agents/custom-toolspending_approval.
Request
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/custom-tools" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "get_order_status",
"description": "Look up an order by id from the store API.",
"url": "https://api.yourstore.example/orders/{order_id}",
"method": "GET",
"parameters": {
"order_id": {
"type": "string",
"description": "Store order id",
"required": true
}
}
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/custom-tools', {
"name": "get_order_status",
"description": "Look up an order by id from the store API.",
"url": "https://api.yourstore.example/orders/{order_id}",
"method": "GET",
"parameters": {
"order_id": {
"type": "string",
"description": "Store order id",
"required": true
}
}
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "name": "get_order_status", "description": "Look up an order by id from the store API.", "url": "https://api.yourstore.example/orders/{order_id}", "method": "GET", "parameters": { "order_id": { "type": "string", "description": "Store order id", "required": True } } }
result = client.request("POST", "/agents/custom-tools", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"name": "get_order_status","description": "Look up an order by id from the store API.","url": "https://api.yourstore.example/orders/{order_id}","method": "GET","parameters": map[string]any{"order_id": map[string]any{"type": "string","description": "Store order id","required": true}}}
if err := client.Request(ctx, "POST", "/agents/custom-tools", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "name" => "get_order_status", "description" => "Look up an order by id from the store API.", "url" => "https://api.yourstore.example/orders/{order_id}", "method" => "GET", "parameters" => { "order_id" => { "type" => "string", "description" => "Store order id", "required" => true } } }
result = client.request('POST', '/agents/custom-tools', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["name" => "get_order_status", "description" => "Look up an order by id from the store API.", "url" => "https://api.yourstore.example/orders/{order_id}", "method" => "GET", "parameters" => ["order_id" => ["type" => "string", "description" => "Store order id", "required" => true]]];
$result = $client->request('POST', '/agents/custom-tools', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "ct_4e7a9c2b",
"name": "get_order_status",
"status": "pending_approval",
"created_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_ctool_create",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Import tools from an OpenAPI spec
POST /api/v1/agents/custom-tools/importdry_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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/custom-tools/import" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"spec_url": "https://api.yourstore.example/openapi.json",
"dry_run": true
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/custom-tools/import', {
"spec_url": "https://api.yourstore.example/openapi.json",
"dry_run": true
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "spec_url": "https://api.yourstore.example/openapi.json", "dry_run": True }
result = client.request("POST", "/agents/custom-tools/import", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"spec_url": "https://api.yourstore.example/openapi.json","dry_run": true}
if err := client.Request(ctx, "POST", "/agents/custom-tools/import", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "spec_url" => "https://api.yourstore.example/openapi.json", "dry_run" => true }
result = client.request('POST', '/agents/custom-tools/import', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["spec_url" => "https://api.yourstore.example/openapi.json", "dry_run" => true];
$result = $client->request('POST', '/agents/custom-tools/import', jsonBody: $body);
echo json_encode($result);
{
"data": {
"dry_run": true,
"imported": 0,
"candidates": [
{ "name": "get_order_status", "importable": true, "reason": null },
{ "name": "send_sms", "importable": false, "reason": "reserved_name" },
{ "name": "list_orders", "importable": true, "reason": null }
]
},
"meta": {
"request_id": "req_ctool_import",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
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-policycURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/guardrail-policy" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/agt_7e3b9c1f/guardrail-policy');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/agt_7e3b9c1f/guardrail-policy")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/agt_7e3b9c1f/guardrail-policy", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/agt_7e3b9c1f/guardrail-policy')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/agt_7e3b9c1f/guardrail-policy');
echo json_encode($result);
{
"data": {
"agent_id": "agt_7e3b9c1f",
"safety_config": {
"pii_redaction": true,
"off_topic_blocking": true,
"max_cost_per_conversation_usd": 0.5
},
"applied_policy": {
"id": "pol_2c5e8a1d",
"name": "Support baseline",
"version": 3,
"applied_at": "2026-07-22T08:30:00.000Z"
}
},
"meta": {
"request_id": "req_guard_policy",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Audit grounding citations
GET /api/v1/agents/grounding-citations-auditcURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/grounding-citations-audit" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/grounding-citations-audit');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/grounding-citations-audit")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/grounding-citations-audit", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/grounding-citations-audit')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/grounding-citations-audit');
echo json_encode($result);
{
"data": [
{
"conversation_id": "conv_8b2c4d6e1f3a5b7c9d0e2f4a5b6c7d",
"turn_id": "turn_0006",
"channel": "voice",
"document_id": "doc_9a1c3e5b7d2f4a6c8e0b1d3f5a7c9e2b",
"document_name": "Account security FAQ",
"cited_at": "2026-08-01T11:59:40.000Z"
}
],
"meta": {
"request_id": "req_citations_audit",
"timestamp": "2026-08-01T12:00:00.000Z",
"pagination": { "cursor": null, "has_more": false, "total": 1 }
}
}
Guardrail effectiveness analytics
GET /api/v1/agents/guardrail-analyticscURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/guardrail-analytics" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/guardrail-analytics');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/guardrail-analytics")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/guardrail-analytics", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/guardrail-analytics')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/guardrail-analytics');
echo json_encode($result);
{
"data": {
"period_days": 30,
"turns_evaluated": 4120,
"blocked": 97,
"blocked_by_rule": [
{ "rule": "pii_redaction", "count": 61 },
{ "rule": "off_topic", "count": 36 }
]
},
"meta": {
"request_id": "req_guard_analytics",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
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}/activatedraft 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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/activate" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/agt_7e3b9c1f/activate', {});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = {}
result = client.request("POST", "/agents/agt_7e3b9c1f/activate", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{{}}
if err := client.Request(ctx, "POST", "/agents/agt_7e3b9c1f/activate", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = {}
result = client.request('POST', '/agents/agt_7e3b9c1f/activate', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = [];
$result = $client->request('POST', '/agents/agt_7e3b9c1f/activate', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "agt_7e3b9c1f",
"status": "active",
"activated_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_agt_activate",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Update an agent
PATCH /api/v1/agents/{id}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
cURL
curl -X PATCH "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"system_prompt": "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.",
"temperature": 0.2
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('PATCH', '/agents/agt_7e3b9c1f', {
"system_prompt": "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.",
"temperature": 0.2
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "system_prompt": "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.", "temperature": 0.2 }
result = client.request("PATCH", "/agents/agt_7e3b9c1f", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"system_prompt": "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.","temperature": 0.2}
if err := client.Request(ctx, "PATCH", "/agents/agt_7e3b9c1f", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "system_prompt" => "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.", "temperature" => 0.2 }
result = client.request('PATCH', '/agents/agt_7e3b9c1f', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["system_prompt" => "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.", "temperature" => 0.2];
$result = $client->request('PATCH', '/agents/agt_7e3b9c1f', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "agt_7e3b9c1f",
"system_prompt": "Answer from the knowledge base. Escalate billing questions to the billing specialist peer.",
"temperature": 0.2,
"version": 15,
"changed_fields": ["system_prompt", "temperature"],
"updated_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_agt_patch",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Set the pre-promotion regression gate
PATCH /api/v1/agents/{id}/promotion-gate/settingsenabled: true, a promotion whose eval run misses the threshold is refused.
Request
cURL
curl -X PATCH "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/promotion-gate/settings" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"min_pass_rate": 80,
"required_dataset_ids": [
"evalDs_e4f2a1"
]
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('PATCH', '/agents/agt_7e3b9c1f/promotion-gate/settings', {
"enabled": true,
"min_pass_rate": 80,
"required_dataset_ids": [
"evalDs_e4f2a1"
]
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "enabled": True, "min_pass_rate": 80, "required_dataset_ids": ["evalDs_e4f2a1"] }
result = client.request("PATCH", "/agents/agt_7e3b9c1f/promotion-gate/settings", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"enabled": true,"min_pass_rate": 80,"required_dataset_ids": []any{"evalDs_e4f2a1"}}
if err := client.Request(ctx, "PATCH", "/agents/agt_7e3b9c1f/promotion-gate/settings", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "enabled" => true, "min_pass_rate" => 80, "required_dataset_ids" => ["evalDs_e4f2a1"] }
result = client.request('PATCH', '/agents/agt_7e3b9c1f/promotion-gate/settings', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["enabled" => true, "min_pass_rate" => 80, "required_dataset_ids" => ["evalDs_e4f2a1"]];
$result = $client->request('PATCH', '/agents/agt_7e3b9c1f/promotion-gate/settings', jsonBody: $body);
echo json_encode($result);
{
"data": {
"agent_id": "agt_7e3b9c1f",
"promotion_gate": {
"enabled": true,
"min_pass_rate": 80,
"required_dataset_ids": ["evalDs_e4f2a1"]
},
"updated_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_gate_promo",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Set the red-team gate
PATCH /api/v1/agents/{id}/red-team/gate-settingscURL
curl -X PATCH "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/red-team/gate-settings" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"blocking_severities": [
"critical",
"high"
]
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('PATCH', '/agents/agt_7e3b9c1f/red-team/gate-settings', {
"enabled": true,
"blocking_severities": [
"critical",
"high"
]
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "enabled": True, "blocking_severities": ["critical", "high"] }
result = client.request("PATCH", "/agents/agt_7e3b9c1f/red-team/gate-settings", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"enabled": true,"blocking_severities": []any{"critical","high"}}
if err := client.Request(ctx, "PATCH", "/agents/agt_7e3b9c1f/red-team/gate-settings", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "enabled" => true, "blocking_severities" => ["critical", "high"] }
result = client.request('PATCH', '/agents/agt_7e3b9c1f/red-team/gate-settings', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["enabled" => true, "blocking_severities" => ["critical", "high"]];
$result = $client->request('PATCH', '/agents/agt_7e3b9c1f/red-team/gate-settings', jsonBody: $body);
echo json_encode($result);
{
"data": {
"agent_id": "agt_7e3b9c1f",
"red_team_gate": {
"enabled": true,
"blocking_severities": ["critical", "high"]
},
"updated_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_gate_redteam",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Download the red-team pack
GET /api/v1/agents/{id}/red-team/packcURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/red-team/pack" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/agt_7e3b9c1f/red-team/pack');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/agt_7e3b9c1f/red-team/pack")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/agt_7e3b9c1f/red-team/pack", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/agt_7e3b9c1f/red-team/pack')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/agt_7e3b9c1f/red-team/pack');
echo json_encode($result);
{
"data": {
"pack_id": "rtp_6f1d4b8a",
"attack_categories": ["prompt_injection", "pii_probing", "scope_escape"],
"prompt_count": 48,
"generated_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_redteam_pack",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Run the red-team gate
POST /api/v1/agents/{id}/red-team/runstatus: "pending"; when the run completes, its findings are matched against the gate settings above and recorded for the next promotion decision.
Request
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/red-team/run" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/agt_7e3b9c1f/red-team/run', {});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = {}
result = client.request("POST", "/agents/agt_7e3b9c1f/red-team/run", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{{}}
if err := client.Request(ctx, "POST", "/agents/agt_7e3b9c1f/red-team/run", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = {}
result = client.request('POST', '/agents/agt_7e3b9c1f/red-team/run', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = [];
$result = $client->request('POST', '/agents/agt_7e3b9c1f/red-team/run', jsonBody: $body);
echo json_encode($result);
{
"data": {
"run_id": "rtr_3a9c7e2d",
"status": "pending",
"created_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_redteam_run",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Voice — worked samples
Originate a call from a voice agent
POST /api/v1/agents/{id}/callsPATCH /api/v1/agents/{id}/outbound-calling) and the destination is checked against your suppression lists.
Request
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/agt_7e3b9c1f/calls" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "+14155550142",
"caller_id": "+14155550100"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/agt_7e3b9c1f/calls', {
"to": "+14155550142",
"caller_id": "+14155550100"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "to": "+14155550142", "caller_id": "+14155550100" }
result = client.request("POST", "/agents/agt_7e3b9c1f/calls", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"to": "+14155550142","caller_id": "+14155550100"}
if err := client.Request(ctx, "POST", "/agents/agt_7e3b9c1f/calls", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "to" => "+14155550142", "caller_id" => "+14155550100" }
result = client.request('POST', '/agents/agt_7e3b9c1f/calls', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["to" => "+14155550142", "caller_id" => "+14155550100"];
$result = $client->request('POST', '/agents/agt_7e3b9c1f/calls', jsonBody: $body);
echo json_encode($result);
{
"data": {
"call_id": "call_d8e2f4a6",
"agent_id": "agt_7e3b9c1f",
"to": "+14155550142",
"status": "initiating",
"created_at": "2026-08-01T12:00:00.000Z"
},
"meta": {
"request_id": "req_agt_call",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
Error envelope
Most write failures return422 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
{
"error": {
"code": "INVALID_KNOWLEDGE_BASE_IDS",
"status": 422,
"message": "knowledge_base_ids reference rows that do not exist in this tenant: kb_1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e"
},
"meta": {
"request_id": "req_...",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
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/
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "After-hours support",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"system_prompt": "Answer from the knowledge base; escalate billing questions.",
"knowledge_base_ids": [
"kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"
]
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/', {
"name": "After-hours support",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"system_prompt": "Answer from the knowledge base; escalate billing questions.",
"knowledge_base_ids": [
"kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"
]
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "name": "After-hours support", "type": "chatbot", "model": "claude-sonnet-4-6", "system_prompt": "Answer from the knowledge base; escalate billing questions.", "knowledge_base_ids": ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"] }
result = client.request("POST", "/agents/", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"name": "After-hours support","type": "chatbot","model": "claude-sonnet-4-6","system_prompt": "Answer from the knowledge base; escalate billing questions.","knowledge_base_ids": []any{"kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"}}
if err := client.Request(ctx, "POST", "/agents/", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "name" => "After-hours support", "type" => "chatbot", "model" => "claude-sonnet-4-6", "system_prompt" => "Answer from the knowledge base; escalate billing questions.", "knowledge_base_ids" => ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"] }
result = client.request('POST', '/agents/', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["name" => "After-hours support", "type" => "chatbot", "model" => "claude-sonnet-4-6", "system_prompt" => "Answer from the knowledge base; escalate billing questions.", "knowledge_base_ids" => ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"]];
$result = $client->request('POST', '/agents/', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "agt_3f6a81c2d4e5471a9b0c2d5e81c2d4a5",
"name": "After-hours support",
"type": "chatbot",
"status": "draft",
"model": "claude-sonnet-4-6",
"knowledge_base_ids": ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"]
},
"meta": {
"request_id": "req_agt_create",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
GET /api/v1/agents/
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/');
echo json_encode($result);
{
"data": [
{
"id": "agt_3f6a81c2d4e5471a9b0c2d5e",
"name": "After-hours support",
"status": "active",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"active_conversations": 3,
"conversation_count": 137,
"total_tokens": 84129,
"last_active_at": "2026-08-01T12:00:00.000Z",
"created_at": "2026-07-20T09:30:00.000Z",
"updated_at": "2026-08-01T11:45:00.000Z"
}
],
"meta": {
"request_id": "req_agt_list",
"timestamp": "2026-08-01T12:00:00.000Z",
"pagination": {
"cursor": "2026-07-20T09:30:00.000Z|agt_3f6a81c2d4e5471a9b0c2d5e",
"has_more": true,
"total": 24
}
}
}
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
cURL
curl -X POST "https://api.orbit.devotel.io/api/v1/agents/custom-tools" \
-H "X-API-Key: dv_live_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"description": "string"
}'
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('POST', '/agents/custom-tools', {
"name": "string",
"description": "string"
});
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
body = { "name": "string", "description": "string" }
result = client.request("POST", "/agents/custom-tools", json_body=body)
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
body := map[string]any{"name": "string","description": "string"}
if err := client.Request(ctx, "POST", "/agents/custom-tools", nil, body, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
body = { "name" => "string", "description" => "string" }
result = client.request('POST', '/agents/custom-tools', json_body: body)
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$body = ["name" => "string", "description" => "string"];
$result = $client->request('POST', '/agents/custom-tools', jsonBody: $body);
echo json_encode($result);
{
"data": {
"id": "agt_3f6a81c2d4e5471a9b0c2d5e81c2d4a5",
"name": "After-hours support",
"type": "chatbot",
"status": "draft",
"model": "claude-sonnet-4-6",
"knowledge_base_ids": ["kb_7c1f2a9d4b8e4f1a9c3d5e7b0a2c4e6f"]
},
"meta": {
"request_id": "req_agt_create",
"timestamp": "2026-08-01T12:00:00.000Z"
}
}
GET /api/v1/agents/custom-tools
cURL
curl -X GET "https://api.orbit.devotel.io/api/v1/agents/custom-tools" \
-H "X-API-Key: dv_live_sk_your_key_here"
Node.js
import { Orbit } from '@devotel-orbit/node'
const orbit = new Orbit({
apiKey: process.env.ORBIT_API_KEY!,
})
// orbit.request() handles auth, retry, and idempotency automatically
const data = await orbit.request('GET', '/agents/custom-tools');
console.log(data)
Python
from orbit_sdk import OrbitClient
client = OrbitClient.from_env("ORBIT_API_KEY")
result = client.request("GET", "/agents/custom-tools")
print(result)
Go
package main
import (
"context"
"fmt"
"os"
"time"
orbit "github.com/devotel/orbit-go/orbit"
)
func main() {
client, err := orbit.NewClient(os.Getenv("ORBIT_API_KEY"))
if err != nil {
panic(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var result map[string]any
if err := client.Request(ctx, "GET", "/agents/custom-tools", nil, nil, &result, ""); err != nil {
fmt.Fprintf(os.Stderr, "orbit: %v\n", err)
os.Exit(1)
}
fmt.Println(result)
}
Ruby
require 'orbit_sdk'
client = OrbitSdk::Client.from_env('ORBIT_API_KEY')
result = client.request('GET', '/agents/custom-tools')
puts result
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Devotel\Orbit\OrbitClient;
$client = OrbitClient::fromEnv('ORBIT_API_KEY');
$result = $client->request('GET', '/agents/custom-tools');
echo json_encode($result);
{
"data": [
{
"id": "agt_3f6a81c2d4e5471a9b0c2d5e",
"name": "After-hours support",
"status": "active",
"type": "chatbot",
"model": "claude-sonnet-4-6",
"active_conversations": 3,
"conversation_count": 137,
"total_tokens": 84129,
"last_active_at": "2026-08-01T12:00:00.000Z",
"created_at": "2026-07-20T09:30:00.000Z",
"updated_at": "2026-08-01T11:45:00.000Z"
}
],
"meta": {
"request_id": "req_agt_list",
"timestamp": "2026-08-01T12:00:00.000Z",
"pagination": {
"cursor": "2026-07-20T09:30:00.000Z|agt_3f6a81c2d4e5471a9b0c2d5e",
"has_more": true,
"total": 24
}
}
}