curl --request PATCH \
--url https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"adapters": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"template": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": [
"<string>"
],
"name": "<string>",
"model": "<string>",
"timezone": "<string>",
"system_prompt": "<string>",
"sleep_until": "2023-11-07T05:31:56Z",
"email_alias": "<string>",
"run_started_at": "2023-11-07T05:31:56Z",
"last_wake_reason": "<string>",
"last_wake_interrupted_sleep_until": "2023-11-07T05:31:56Z",
"max_turns": -1,
"max_sleep_hours": 1073741823,
"harness_git_ref": "<string>",
"debounce_window_seconds": 1073741823,
"vapi_voice_id": "<string>",
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/"
payload = {
"adapters": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"template": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": ["<string>"],
"name": "<string>",
"model": "<string>",
"timezone": "<string>",
"system_prompt": "<string>",
"sleep_until": "2023-11-07T05:31:56Z",
"email_alias": "<string>",
"run_started_at": "2023-11-07T05:31:56Z",
"last_wake_reason": "<string>",
"last_wake_interrupted_sleep_until": "2023-11-07T05:31:56Z",
"max_turns": -1,
"max_sleep_hours": 1073741823,
"harness_git_ref": "<string>",
"debounce_window_seconds": 1073741823,
"vapi_voice_id": "<string>",
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adapters: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
template: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
tags: ['<string>'],
name: '<string>',
model: '<string>',
timezone: '<string>',
system_prompt: '<string>',
sleep_until: '2023-11-07T05:31:56Z',
email_alias: '<string>',
run_started_at: '2023-11-07T05:31:56Z',
last_wake_reason: '<string>',
last_wake_interrupted_sleep_until: '2023-11-07T05:31:56Z',
max_turns: -1,
max_sleep_hours: 1073741823,
harness_git_ref: '<string>',
debounce_window_seconds: 1073741823,
vapi_voice_id: '<string>',
parent: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'adapters' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'template' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'tags' => [
'<string>'
],
'name' => '<string>',
'model' => '<string>',
'timezone' => '<string>',
'system_prompt' => '<string>',
'sleep_until' => '2023-11-07T05:31:56Z',
'email_alias' => '<string>',
'run_started_at' => '2023-11-07T05:31:56Z',
'last_wake_reason' => '<string>',
'last_wake_interrupted_sleep_until' => '2023-11-07T05:31:56Z',
'max_turns' => -1,
'max_sleep_hours' => 1073741823,
'harness_git_ref' => '<string>',
'debounce_window_seconds' => 1073741823,
'vapi_voice_id' => '<string>',
'parent' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/"
payload := strings.NewReader("{\n \"adapters\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"template\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tags\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"model\": \"<string>\",\n \"timezone\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"sleep_until\": \"2023-11-07T05:31:56Z\",\n \"email_alias\": \"<string>\",\n \"run_started_at\": \"2023-11-07T05:31:56Z\",\n \"last_wake_reason\": \"<string>\",\n \"last_wake_interrupted_sleep_until\": \"2023-11-07T05:31:56Z\",\n \"max_turns\": -1,\n \"max_sleep_hours\": 1073741823,\n \"harness_git_ref\": \"<string>\",\n \"debounce_window_seconds\": 1073741823,\n \"vapi_voice_id\": \"<string>\",\n \"parent\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"adapters\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"template\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tags\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"model\": \"<string>\",\n \"timezone\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"sleep_until\": \"2023-11-07T05:31:56Z\",\n \"email_alias\": \"<string>\",\n \"run_started_at\": \"2023-11-07T05:31:56Z\",\n \"last_wake_reason\": \"<string>\",\n \"last_wake_interrupted_sleep_until\": \"2023-11-07T05:31:56Z\",\n \"max_turns\": -1,\n \"max_sleep_hours\": 1073741823,\n \"harness_git_ref\": \"<string>\",\n \"debounce_window_seconds\": 1073741823,\n \"vapi_voice_id\": \"<string>\",\n \"parent\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"adapters\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"template\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tags\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"model\": \"<string>\",\n \"timezone\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"sleep_until\": \"2023-11-07T05:31:56Z\",\n \"email_alias\": \"<string>\",\n \"run_started_at\": \"2023-11-07T05:31:56Z\",\n \"last_wake_reason\": \"<string>\",\n \"last_wake_interrupted_sleep_until\": \"2023-11-07T05:31:56Z\",\n \"max_turns\": -1,\n \"max_sleep_hours\": 1073741823,\n \"harness_git_ref\": \"<string>\",\n \"debounce_window_seconds\": 1073741823,\n \"vapi_voice_id\": \"<string>\",\n \"parent\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_name": "<string>",
"template_name": "<string>",
"name": "<string>",
"model": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"adapters": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"template": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": [
"<string>"
],
"timezone": "<string>",
"system_prompt": "<string>",
"sleep_until": "2023-11-07T05:31:56Z",
"email_alias": "<string>",
"status": "running",
"run_started_at": "2023-11-07T05:31:56Z",
"last_wake_reason": "<string>",
"last_wake_interrupted_sleep_until": "2023-11-07T05:31:56Z",
"max_turns": -1,
"max_sleep_hours": 1073741823,
"harness_git_ref": "<string>",
"reasoning_effort": "none",
"debounce_window_seconds": 1073741823,
"vapi_voice_id": "<string>",
"purpose": "production",
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Update Agent
curl --request PATCH \
--url https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"adapters": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"template": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": [
"<string>"
],
"name": "<string>",
"model": "<string>",
"timezone": "<string>",
"system_prompt": "<string>",
"sleep_until": "2023-11-07T05:31:56Z",
"email_alias": "<string>",
"run_started_at": "2023-11-07T05:31:56Z",
"last_wake_reason": "<string>",
"last_wake_interrupted_sleep_until": "2023-11-07T05:31:56Z",
"max_turns": -1,
"max_sleep_hours": 1073741823,
"harness_git_ref": "<string>",
"debounce_window_seconds": 1073741823,
"vapi_voice_id": "<string>",
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/"
payload = {
"adapters": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"template": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": ["<string>"],
"name": "<string>",
"model": "<string>",
"timezone": "<string>",
"system_prompt": "<string>",
"sleep_until": "2023-11-07T05:31:56Z",
"email_alias": "<string>",
"run_started_at": "2023-11-07T05:31:56Z",
"last_wake_reason": "<string>",
"last_wake_interrupted_sleep_until": "2023-11-07T05:31:56Z",
"max_turns": -1,
"max_sleep_hours": 1073741823,
"harness_git_ref": "<string>",
"debounce_window_seconds": 1073741823,
"vapi_voice_id": "<string>",
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adapters: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
template: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
tags: ['<string>'],
name: '<string>',
model: '<string>',
timezone: '<string>',
system_prompt: '<string>',
sleep_until: '2023-11-07T05:31:56Z',
email_alias: '<string>',
run_started_at: '2023-11-07T05:31:56Z',
last_wake_reason: '<string>',
last_wake_interrupted_sleep_until: '2023-11-07T05:31:56Z',
max_turns: -1,
max_sleep_hours: 1073741823,
harness_git_ref: '<string>',
debounce_window_seconds: 1073741823,
vapi_voice_id: '<string>',
parent: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'adapters' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'template' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'tags' => [
'<string>'
],
'name' => '<string>',
'model' => '<string>',
'timezone' => '<string>',
'system_prompt' => '<string>',
'sleep_until' => '2023-11-07T05:31:56Z',
'email_alias' => '<string>',
'run_started_at' => '2023-11-07T05:31:56Z',
'last_wake_reason' => '<string>',
'last_wake_interrupted_sleep_until' => '2023-11-07T05:31:56Z',
'max_turns' => -1,
'max_sleep_hours' => 1073741823,
'harness_git_ref' => '<string>',
'debounce_window_seconds' => 1073741823,
'vapi_voice_id' => '<string>',
'parent' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/"
payload := strings.NewReader("{\n \"adapters\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"template\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tags\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"model\": \"<string>\",\n \"timezone\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"sleep_until\": \"2023-11-07T05:31:56Z\",\n \"email_alias\": \"<string>\",\n \"run_started_at\": \"2023-11-07T05:31:56Z\",\n \"last_wake_reason\": \"<string>\",\n \"last_wake_interrupted_sleep_until\": \"2023-11-07T05:31:56Z\",\n \"max_turns\": -1,\n \"max_sleep_hours\": 1073741823,\n \"harness_git_ref\": \"<string>\",\n \"debounce_window_seconds\": 1073741823,\n \"vapi_voice_id\": \"<string>\",\n \"parent\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"adapters\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"template\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tags\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"model\": \"<string>\",\n \"timezone\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"sleep_until\": \"2023-11-07T05:31:56Z\",\n \"email_alias\": \"<string>\",\n \"run_started_at\": \"2023-11-07T05:31:56Z\",\n \"last_wake_reason\": \"<string>\",\n \"last_wake_interrupted_sleep_until\": \"2023-11-07T05:31:56Z\",\n \"max_turns\": -1,\n \"max_sleep_hours\": 1073741823,\n \"harness_git_ref\": \"<string>\",\n \"debounce_window_seconds\": 1073741823,\n \"vapi_voice_id\": \"<string>\",\n \"parent\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"adapters\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"template\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tags\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"model\": \"<string>\",\n \"timezone\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"sleep_until\": \"2023-11-07T05:31:56Z\",\n \"email_alias\": \"<string>\",\n \"run_started_at\": \"2023-11-07T05:31:56Z\",\n \"last_wake_reason\": \"<string>\",\n \"last_wake_interrupted_sleep_until\": \"2023-11-07T05:31:56Z\",\n \"max_turns\": -1,\n \"max_sleep_hours\": 1073741823,\n \"harness_git_ref\": \"<string>\",\n \"debounce_window_seconds\": 1073741823,\n \"vapi_voice_id\": \"<string>\",\n \"parent\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_name": "<string>",
"template_name": "<string>",
"name": "<string>",
"model": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"adapters": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"template": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": [
"<string>"
],
"timezone": "<string>",
"system_prompt": "<string>",
"sleep_until": "2023-11-07T05:31:56Z",
"email_alias": "<string>",
"status": "running",
"run_started_at": "2023-11-07T05:31:56Z",
"last_wake_reason": "<string>",
"last_wake_interrupted_sleep_until": "2023-11-07T05:31:56Z",
"max_turns": -1,
"max_sleep_hours": 1073741823,
"harness_git_ref": "<string>",
"reasoning_effort": "none",
"debounce_window_seconds": 1073741823,
"vapi_voice_id": "<string>",
"purpose": "production",
"parent": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Token-based authentication with required prefix "Token"
Path Parameters
A UUID string identifying this Agent.
Body
1 - 2551 - 2551 - 2551 - 255Custom email alias for the agent's AgentMail inbox (e.g. 'support' becomes support@domain)
255running- Runningsleeping- Sleepingarchived- Archived
running, sleeping, archived 64-2147483648 <= x <= 2147483647Optional cap on how long the agent may sleep, in hours. When set, each harness run is started with --max-utc-sleep = now + this many hours, and sleep requests past that moment are clamped.
0 <= x <= 2147483647Optional git ref (branch/tag/commit) for harness runs. Null = latest main at dispatch time.
255none- Noneminimal- Minimallow- Lowmedium- Mediumhigh- Highxhigh- Extra high
none, minimal, low, medium, high, xhigh Per-agent override for the turn-boundary debounce window (seconds). Leave blank to inherit from the template.
0 <= x <= 2147483647Unused: VAPI calls now use the gpt-realtime-2 model, which only supports a fixed set of OpenAI voices and doesn't support per-agent voice overrides. This field has no effect on call behavior.
255production- Productioneval- Evaldev- Dev
production, eval, dev Response
255255255255Custom email alias for the agent's AgentMail inbox (e.g. 'support' becomes support@domain)
255running- Runningsleeping- Sleepingarchived- Archived
running, sleeping, archived 64-2147483648 <= x <= 2147483647Optional cap on how long the agent may sleep, in hours. When set, each harness run is started with --max-utc-sleep = now + this many hours, and sleep requests past that moment are clamped.
0 <= x <= 2147483647Optional git ref (branch/tag/commit) for harness runs. Null = latest main at dispatch time.
255none- Noneminimal- Minimallow- Lowmedium- Mediumhigh- Highxhigh- Extra high
none, minimal, low, medium, high, xhigh Per-agent override for the turn-boundary debounce window (seconds). Leave blank to inherit from the template.
0 <= x <= 2147483647Unused: VAPI calls now use the gpt-realtime-2 model, which only supports a fixed set of OpenAI voices and doesn't support per-agent voice overrides. This field has no effect on call behavior.
255production- Productioneval- Evaldev- Dev
production, eval, dev