curl --request POST \
--url https://api.recursion.labelbox.com/managed-agents/v1/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"agentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"agentVersionId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"displayName": "example",
"environmentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"initialPrompt": {
"text": "example",
"type": "literal"
},
"runDefaults": {
"credentialRefs": [
{
"credentialId": "example",
"vaultId": "example"
}
],
"memoryStores": [
{
"access": "read_only",
"instructions": "example",
"memoryStoreId": "example"
}
],
"metadata": {
"key": "example"
},
"resources": [
{
"fileId": "example",
"mountPath": "example"
}
],
"vaultIds": [
"example"
]
},
"triggers": [
{
"enabled": true,
"schedule": {
"catchupWindowSeconds": 10,
"cron": "example",
"endAt": "2026-02-18T09:30:00.000Z",
"jitterSeconds": 1,
"overlapPolicy": "skip",
"startAt": "2026-02-18T09:30:00.000Z",
"timezone": "example"
},
"triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"type": "schedule"
}
]
}
'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/automations"
payload = {
"agentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"agentVersionId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"displayName": "example",
"environmentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"initialPrompt": {
"text": "example",
"type": "literal"
},
"runDefaults": {
"credentialRefs": [
{
"credentialId": "example",
"vaultId": "example"
}
],
"memoryStores": [
{
"access": "read_only",
"instructions": "example",
"memoryStoreId": "example"
}
],
"metadata": { "key": "example" },
"resources": [
{
"fileId": "example",
"mountPath": "example"
}
],
"vaultIds": ["example"]
},
"triggers": [
{
"enabled": True,
"schedule": {
"catchupWindowSeconds": 10,
"cron": "example",
"endAt": "2026-02-18T09:30:00.000Z",
"jitterSeconds": 1,
"overlapPolicy": "skip",
"startAt": "2026-02-18T09:30:00.000Z",
"timezone": "example"
},
"triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"type": "schedule"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agentId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
agentVersionId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
displayName: 'example',
environmentId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
initialPrompt: {text: 'example', type: 'literal'},
runDefaults: {
credentialRefs: [{credentialId: 'example', vaultId: 'example'}],
memoryStores: [{access: 'read_only', instructions: 'example', memoryStoreId: 'example'}],
metadata: {key: 'example'},
resources: [{fileId: 'example', mountPath: 'example'}],
vaultIds: ['example']
},
triggers: [
{
enabled: true,
schedule: {
catchupWindowSeconds: 10,
cron: 'example',
endAt: '2026-02-18T09:30:00.000Z',
jitterSeconds: 1,
overlapPolicy: 'skip',
startAt: '2026-02-18T09:30:00.000Z',
timezone: 'example'
},
triggerId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
type: 'schedule'
}
]
})
};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/automations', 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.recursion.labelbox.com/managed-agents/v1/automations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agentId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'agentVersionId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'displayName' => 'example',
'environmentId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'initialPrompt' => [
'text' => 'example',
'type' => 'literal'
],
'runDefaults' => [
'credentialRefs' => [
[
'credentialId' => 'example',
'vaultId' => 'example'
]
],
'memoryStores' => [
[
'access' => 'read_only',
'instructions' => 'example',
'memoryStoreId' => 'example'
]
],
'metadata' => [
'key' => 'example'
],
'resources' => [
[
'fileId' => 'example',
'mountPath' => 'example'
]
],
'vaultIds' => [
'example'
]
],
'triggers' => [
[
'enabled' => true,
'schedule' => [
'catchupWindowSeconds' => 10,
'cron' => 'example',
'endAt' => '2026-02-18T09:30:00.000Z',
'jitterSeconds' => 1,
'overlapPolicy' => 'skip',
'startAt' => '2026-02-18T09:30:00.000Z',
'timezone' => 'example'
],
'triggerId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'type' => 'schedule'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.recursion.labelbox.com/managed-agents/v1/automations"
payload := strings.NewReader("{\n \"agentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"agentVersionId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"displayName\": \"example\",\n \"environmentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"initialPrompt\": {\n \"text\": \"example\",\n \"type\": \"literal\"\n },\n \"runDefaults\": {\n \"credentialRefs\": [\n {\n \"credentialId\": \"example\",\n \"vaultId\": \"example\"\n }\n ],\n \"memoryStores\": [\n {\n \"access\": \"read_only\",\n \"instructions\": \"example\",\n \"memoryStoreId\": \"example\"\n }\n ],\n \"metadata\": {\n \"key\": \"example\"\n },\n \"resources\": [\n {\n \"fileId\": \"example\",\n \"mountPath\": \"example\"\n }\n ],\n \"vaultIds\": [\n \"example\"\n ]\n },\n \"triggers\": [\n {\n \"enabled\": true,\n \"schedule\": {\n \"catchupWindowSeconds\": 10,\n \"cron\": \"example\",\n \"endAt\": \"2026-02-18T09:30:00.000Z\",\n \"jitterSeconds\": 1,\n \"overlapPolicy\": \"skip\",\n \"startAt\": \"2026-02-18T09:30:00.000Z\",\n \"timezone\": \"example\"\n },\n \"triggerId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"type\": \"schedule\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.recursion.labelbox.com/managed-agents/v1/automations")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"agentVersionId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"displayName\": \"example\",\n \"environmentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"initialPrompt\": {\n \"text\": \"example\",\n \"type\": \"literal\"\n },\n \"runDefaults\": {\n \"credentialRefs\": [\n {\n \"credentialId\": \"example\",\n \"vaultId\": \"example\"\n }\n ],\n \"memoryStores\": [\n {\n \"access\": \"read_only\",\n \"instructions\": \"example\",\n \"memoryStoreId\": \"example\"\n }\n ],\n \"metadata\": {\n \"key\": \"example\"\n },\n \"resources\": [\n {\n \"fileId\": \"example\",\n \"mountPath\": \"example\"\n }\n ],\n \"vaultIds\": [\n \"example\"\n ]\n },\n \"triggers\": [\n {\n \"enabled\": true,\n \"schedule\": {\n \"catchupWindowSeconds\": 10,\n \"cron\": \"example\",\n \"endAt\": \"2026-02-18T09:30:00.000Z\",\n \"jitterSeconds\": 1,\n \"overlapPolicy\": \"skip\",\n \"startAt\": \"2026-02-18T09:30:00.000Z\",\n \"timezone\": \"example\"\n },\n \"triggerId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"type\": \"schedule\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/automations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"agentVersionId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"displayName\": \"example\",\n \"environmentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"initialPrompt\": {\n \"text\": \"example\",\n \"type\": \"literal\"\n },\n \"runDefaults\": {\n \"credentialRefs\": [\n {\n \"credentialId\": \"example\",\n \"vaultId\": \"example\"\n }\n ],\n \"memoryStores\": [\n {\n \"access\": \"read_only\",\n \"instructions\": \"example\",\n \"memoryStoreId\": \"example\"\n }\n ],\n \"metadata\": {\n \"key\": \"example\"\n },\n \"resources\": [\n {\n \"fileId\": \"example\",\n \"mountPath\": \"example\"\n }\n ],\n \"vaultIds\": [\n \"example\"\n ]\n },\n \"triggers\": [\n {\n \"enabled\": true,\n \"schedule\": {\n \"catchupWindowSeconds\": 10,\n \"cron\": \"example\",\n \"endAt\": \"2026-02-18T09:30:00.000Z\",\n \"jitterSeconds\": 1,\n \"overlapPolicy\": \"skip\",\n \"startAt\": \"2026-02-18T09:30:00.000Z\",\n \"timezone\": \"example\"\n },\n \"triggerId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"type\": \"schedule\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"agentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"agentVersionId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"automationId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"createdAt": "2026-02-18T09:30:00.000Z",
"displayName": "example",
"environmentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"initialPrompt": {
"text": "example",
"type": "literal"
},
"revision": 1,
"runDefaults": {
"credentialRefs": [
{
"credentialId": "example",
"vaultId": "example"
}
],
"memoryStores": [
{
"access": "read_only",
"instructions": "example",
"memoryStoreId": "example"
}
],
"metadata": {
"key": "example"
},
"resources": [
{
"fileId": "example",
"mountPath": "example"
}
],
"vaultIds": [
"example"
]
},
"status": "paused",
"triggers": [
{
"enabled": true,
"schedule": {
"catchupWindowSeconds": 10,
"cron": "example",
"endAt": "2026-02-18T09:30:00.000Z",
"jitterSeconds": 1,
"overlapPolicy": "skip",
"startAt": "2026-02-18T09:30:00.000Z",
"timezone": "example"
},
"triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"type": "schedule"
}
],
"updatedAt": "2026-02-18T09:30:00.000Z"
}{
"code": "invalid_request",
"message": "<string>",
"details": {}
}{
"code": "unauthorized",
"message": "<string>",
"details": {}
}{
"code": "forbidden",
"message": "<string>",
"details": {}
}{
"code": "conflict",
"message": "<string>",
"details": {}
}{
"code": "payload_too_large",
"message": "<string>",
"details": {}
}{
"code": "unsupported_media_type",
"message": "<string>",
"details": {}
}{
"code": "semantic_validation_failed",
"message": "<string>",
"details": {}
}{
"code": "rate_limit_exceeded",
"message": "<string>",
"details": {}
}{
"code": "internal_error",
"message": "<string>",
"details": {}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {}
}{
"code": "idempotency_unavailable",
"message": "<string>",
"details": {}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {}
}Create a paused canonical automation
Creates a complete automation aggregate in the paused state after validating the pinned agent version, environment, and every trigger source.
curl --request POST \
--url https://api.recursion.labelbox.com/managed-agents/v1/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"agentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"agentVersionId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"displayName": "example",
"environmentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"initialPrompt": {
"text": "example",
"type": "literal"
},
"runDefaults": {
"credentialRefs": [
{
"credentialId": "example",
"vaultId": "example"
}
],
"memoryStores": [
{
"access": "read_only",
"instructions": "example",
"memoryStoreId": "example"
}
],
"metadata": {
"key": "example"
},
"resources": [
{
"fileId": "example",
"mountPath": "example"
}
],
"vaultIds": [
"example"
]
},
"triggers": [
{
"enabled": true,
"schedule": {
"catchupWindowSeconds": 10,
"cron": "example",
"endAt": "2026-02-18T09:30:00.000Z",
"jitterSeconds": 1,
"overlapPolicy": "skip",
"startAt": "2026-02-18T09:30:00.000Z",
"timezone": "example"
},
"triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"type": "schedule"
}
]
}
'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/automations"
payload = {
"agentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"agentVersionId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"displayName": "example",
"environmentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"initialPrompt": {
"text": "example",
"type": "literal"
},
"runDefaults": {
"credentialRefs": [
{
"credentialId": "example",
"vaultId": "example"
}
],
"memoryStores": [
{
"access": "read_only",
"instructions": "example",
"memoryStoreId": "example"
}
],
"metadata": { "key": "example" },
"resources": [
{
"fileId": "example",
"mountPath": "example"
}
],
"vaultIds": ["example"]
},
"triggers": [
{
"enabled": True,
"schedule": {
"catchupWindowSeconds": 10,
"cron": "example",
"endAt": "2026-02-18T09:30:00.000Z",
"jitterSeconds": 1,
"overlapPolicy": "skip",
"startAt": "2026-02-18T09:30:00.000Z",
"timezone": "example"
},
"triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"type": "schedule"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agentId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
agentVersionId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
displayName: 'example',
environmentId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
initialPrompt: {text: 'example', type: 'literal'},
runDefaults: {
credentialRefs: [{credentialId: 'example', vaultId: 'example'}],
memoryStores: [{access: 'read_only', instructions: 'example', memoryStoreId: 'example'}],
metadata: {key: 'example'},
resources: [{fileId: 'example', mountPath: 'example'}],
vaultIds: ['example']
},
triggers: [
{
enabled: true,
schedule: {
catchupWindowSeconds: 10,
cron: 'example',
endAt: '2026-02-18T09:30:00.000Z',
jitterSeconds: 1,
overlapPolicy: 'skip',
startAt: '2026-02-18T09:30:00.000Z',
timezone: 'example'
},
triggerId: '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
type: 'schedule'
}
]
})
};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/automations', 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.recursion.labelbox.com/managed-agents/v1/automations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agentId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'agentVersionId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'displayName' => 'example',
'environmentId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'initialPrompt' => [
'text' => 'example',
'type' => 'literal'
],
'runDefaults' => [
'credentialRefs' => [
[
'credentialId' => 'example',
'vaultId' => 'example'
]
],
'memoryStores' => [
[
'access' => 'read_only',
'instructions' => 'example',
'memoryStoreId' => 'example'
]
],
'metadata' => [
'key' => 'example'
],
'resources' => [
[
'fileId' => 'example',
'mountPath' => 'example'
]
],
'vaultIds' => [
'example'
]
],
'triggers' => [
[
'enabled' => true,
'schedule' => [
'catchupWindowSeconds' => 10,
'cron' => 'example',
'endAt' => '2026-02-18T09:30:00.000Z',
'jitterSeconds' => 1,
'overlapPolicy' => 'skip',
'startAt' => '2026-02-18T09:30:00.000Z',
'timezone' => 'example'
],
'triggerId' => '9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d',
'type' => 'schedule'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.recursion.labelbox.com/managed-agents/v1/automations"
payload := strings.NewReader("{\n \"agentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"agentVersionId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"displayName\": \"example\",\n \"environmentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"initialPrompt\": {\n \"text\": \"example\",\n \"type\": \"literal\"\n },\n \"runDefaults\": {\n \"credentialRefs\": [\n {\n \"credentialId\": \"example\",\n \"vaultId\": \"example\"\n }\n ],\n \"memoryStores\": [\n {\n \"access\": \"read_only\",\n \"instructions\": \"example\",\n \"memoryStoreId\": \"example\"\n }\n ],\n \"metadata\": {\n \"key\": \"example\"\n },\n \"resources\": [\n {\n \"fileId\": \"example\",\n \"mountPath\": \"example\"\n }\n ],\n \"vaultIds\": [\n \"example\"\n ]\n },\n \"triggers\": [\n {\n \"enabled\": true,\n \"schedule\": {\n \"catchupWindowSeconds\": 10,\n \"cron\": \"example\",\n \"endAt\": \"2026-02-18T09:30:00.000Z\",\n \"jitterSeconds\": 1,\n \"overlapPolicy\": \"skip\",\n \"startAt\": \"2026-02-18T09:30:00.000Z\",\n \"timezone\": \"example\"\n },\n \"triggerId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"type\": \"schedule\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.recursion.labelbox.com/managed-agents/v1/automations")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"agentVersionId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"displayName\": \"example\",\n \"environmentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"initialPrompt\": {\n \"text\": \"example\",\n \"type\": \"literal\"\n },\n \"runDefaults\": {\n \"credentialRefs\": [\n {\n \"credentialId\": \"example\",\n \"vaultId\": \"example\"\n }\n ],\n \"memoryStores\": [\n {\n \"access\": \"read_only\",\n \"instructions\": \"example\",\n \"memoryStoreId\": \"example\"\n }\n ],\n \"metadata\": {\n \"key\": \"example\"\n },\n \"resources\": [\n {\n \"fileId\": \"example\",\n \"mountPath\": \"example\"\n }\n ],\n \"vaultIds\": [\n \"example\"\n ]\n },\n \"triggers\": [\n {\n \"enabled\": true,\n \"schedule\": {\n \"catchupWindowSeconds\": 10,\n \"cron\": \"example\",\n \"endAt\": \"2026-02-18T09:30:00.000Z\",\n \"jitterSeconds\": 1,\n \"overlapPolicy\": \"skip\",\n \"startAt\": \"2026-02-18T09:30:00.000Z\",\n \"timezone\": \"example\"\n },\n \"triggerId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"type\": \"schedule\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/automations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"agentVersionId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"displayName\": \"example\",\n \"environmentId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"initialPrompt\": {\n \"text\": \"example\",\n \"type\": \"literal\"\n },\n \"runDefaults\": {\n \"credentialRefs\": [\n {\n \"credentialId\": \"example\",\n \"vaultId\": \"example\"\n }\n ],\n \"memoryStores\": [\n {\n \"access\": \"read_only\",\n \"instructions\": \"example\",\n \"memoryStoreId\": \"example\"\n }\n ],\n \"metadata\": {\n \"key\": \"example\"\n },\n \"resources\": [\n {\n \"fileId\": \"example\",\n \"mountPath\": \"example\"\n }\n ],\n \"vaultIds\": [\n \"example\"\n ]\n },\n \"triggers\": [\n {\n \"enabled\": true,\n \"schedule\": {\n \"catchupWindowSeconds\": 10,\n \"cron\": \"example\",\n \"endAt\": \"2026-02-18T09:30:00.000Z\",\n \"jitterSeconds\": 1,\n \"overlapPolicy\": \"skip\",\n \"startAt\": \"2026-02-18T09:30:00.000Z\",\n \"timezone\": \"example\"\n },\n \"triggerId\": \"9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d\",\n \"type\": \"schedule\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"agentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"agentVersionId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"automationId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"createdAt": "2026-02-18T09:30:00.000Z",
"displayName": "example",
"environmentId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"initialPrompt": {
"text": "example",
"type": "literal"
},
"revision": 1,
"runDefaults": {
"credentialRefs": [
{
"credentialId": "example",
"vaultId": "example"
}
],
"memoryStores": [
{
"access": "read_only",
"instructions": "example",
"memoryStoreId": "example"
}
],
"metadata": {
"key": "example"
},
"resources": [
{
"fileId": "example",
"mountPath": "example"
}
],
"vaultIds": [
"example"
]
},
"status": "paused",
"triggers": [
{
"enabled": true,
"schedule": {
"catchupWindowSeconds": 10,
"cron": "example",
"endAt": "2026-02-18T09:30:00.000Z",
"jitterSeconds": 1,
"overlapPolicy": "skip",
"startAt": "2026-02-18T09:30:00.000Z",
"timezone": "example"
},
"triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"type": "schedule"
}
],
"updatedAt": "2026-02-18T09:30:00.000Z"
}{
"code": "invalid_request",
"message": "<string>",
"details": {}
}{
"code": "unauthorized",
"message": "<string>",
"details": {}
}{
"code": "forbidden",
"message": "<string>",
"details": {}
}{
"code": "conflict",
"message": "<string>",
"details": {}
}{
"code": "payload_too_large",
"message": "<string>",
"details": {}
}{
"code": "unsupported_media_type",
"message": "<string>",
"details": {}
}{
"code": "semantic_validation_failed",
"message": "<string>",
"details": {}
}{
"code": "rate_limit_exceeded",
"message": "<string>",
"details": {}
}{
"code": "internal_error",
"message": "<string>",
"details": {}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {}
}{
"code": "idempotency_unavailable",
"message": "<string>",
"details": {}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {}
}Authorizations
A Recursion API key, created in the console under API keys.
Headers
Replay-protection key in an organization-wide namespace shared by keyed mutations. It must contain 1 to 256 visible ASCII characters and be sent as exactly one header value. Request identity is the exact HTTP method, escaped path, raw query, and raw body bytes. The same request replays the original successful response; any different request returns 409 idempotency_conflict, and an active matching request returns 409 idempotency_in_progress. Completed receipts are retained for approximately 24 hours, pending claims may be reclaimed after approximately 1 hour, and no deduplication is guaranteed after expiry.
1 - 256^[!-~]+$Body
Complete writable shape for creating or replacing a canonical automation.
Managed agent selected by this automation.
Immutable agent version pinned for all admitted runs.
Human-readable automation name.
1 - 256Execution environment selected for admitted sessions.
Prompt definition frozen onto admitted runs.
Show child attributes
Show child attributes
{ "text": "example", "type": "literal" }
Run defaults frozen onto admitted runs.
Show child attributes
Show child attributes
{ "credentialRefs": [ { "credentialId": "example", "vaultId": "example" } ], "memoryStores": [ { "access": "read_only", "instructions": "example", "memoryStoreId": "example" } ], "metadata": { "key": "example" }, "resources": [ { "fileId": "example", "mountPath": "example" } ], "vaultIds": ["example"] }
Complete trigger set for this automation aggregate.
20Closed schedule-trigger configuration.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
{ "enabled": true, "schedule": { "catchupWindowSeconds": 10, "cron": "example", "endAt": "2026-02-18T09:30:00.000Z", "jitterSeconds": 1, "overlapPolicy": "skip", "startAt": "2026-02-18T09:30:00.000Z", "timezone": "example" }, "triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d", "type": "schedule" }
Response
Full round-trippable canonical automation aggregate.
Full round-trippable canonical automation aggregate.
Managed agent selected by this automation.
Immutable agent version pinned for all admitted runs.
Stable canonical automation identifier.
Time the automation was created.
Human-readable automation name.
Execution environment selected for admitted sessions.
Prompt definition frozen onto admitted runs.
Show child attributes
Show child attributes
{ "text": "example", "type": "literal" }
Monotonic aggregate revision represented by the response ETag.
x >= 1Run defaults frozen onto admitted runs.
Show child attributes
Show child attributes
{ "credentialRefs": [ { "credentialId": "example", "vaultId": "example" } ], "memoryStores": [ { "access": "read_only", "instructions": "example", "memoryStoreId": "example" } ], "metadata": { "key": "example" }, "resources": [ { "fileId": "example", "mountPath": "example" } ], "vaultIds": ["example"] }
Lifecycle state. New automations start paused.
paused, active Complete ordered trigger set.
Closed schedule-trigger configuration.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
{ "enabled": true, "schedule": { "catchupWindowSeconds": 10, "cron": "example", "endAt": "2026-02-18T09:30:00.000Z", "jitterSeconds": 1, "overlapPolicy": "skip", "startAt": "2026-02-18T09:30:00.000Z", "timezone": "example" }, "triggerId": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d", "type": "schedule" }
Time the aggregate was last changed.