Ensure an idempotent child agent run
curl --request POST \
--url https://api.veryfront.com/runs/{run_id}/children \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool_call_id": "<string>",
"request": {
"prompt": "<string>",
"task_id": "<string>",
"idempotency_scope": "durable_task",
"context": {},
"evidence_refs": [
{
"id": "<string>",
"run_id": "<string>",
"message_id": "<string>",
"tool_call_id": "<string>",
"result_path": "<string>",
"label": "<string>",
"summary": "<string>"
}
],
"description": "<string>",
"agent_id": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_delegation": true,
"tools": [
"<string>"
],
"model": "<string>",
"thinking": false,
"max_steps": 1
}
}
'import requests
url = "https://api.veryfront.com/runs/{run_id}/children"
payload = {
"tool_call_id": "<string>",
"request": {
"prompt": "<string>",
"task_id": "<string>",
"idempotency_scope": "durable_task",
"context": {},
"evidence_refs": [
{
"id": "<string>",
"run_id": "<string>",
"message_id": "<string>",
"tool_call_id": "<string>",
"result_path": "<string>",
"label": "<string>",
"summary": "<string>"
}
],
"description": "<string>",
"agent_id": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_delegation": True,
"tools": ["<string>"],
"model": "<string>",
"thinking": False,
"max_steps": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tool_call_id: '<string>',
request: {
prompt: '<string>',
task_id: '<string>',
idempotency_scope: 'durable_task',
context: {},
evidence_refs: [
{
id: '<string>',
run_id: '<string>',
message_id: '<string>',
tool_call_id: '<string>',
result_path: '<string>',
label: '<string>',
summary: '<string>'
}
],
description: '<string>',
agent_id: '<string>',
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_environment_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_branch_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
allow_delegation: true,
tools: ['<string>'],
model: '<string>',
thinking: false,
max_steps: 1
}
})
};
fetch('https://api.veryfront.com/runs/{run_id}/children', 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.veryfront.com/runs/{run_id}/children",
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([
'tool_call_id' => '<string>',
'request' => [
'prompt' => '<string>',
'task_id' => '<string>',
'idempotency_scope' => 'durable_task',
'context' => [
],
'evidence_refs' => [
[
'id' => '<string>',
'run_id' => '<string>',
'message_id' => '<string>',
'tool_call_id' => '<string>',
'result_path' => '<string>',
'label' => '<string>',
'summary' => '<string>'
]
],
'description' => '<string>',
'agent_id' => '<string>',
'project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'target_environment_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'target_branch_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'allow_delegation' => true,
'tools' => [
'<string>'
],
'model' => '<string>',
'thinking' => false,
'max_steps' => 1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.veryfront.com/runs/{run_id}/children"
payload := strings.NewReader("{\n \"tool_call_id\": \"<string>\",\n \"request\": {\n \"prompt\": \"<string>\",\n \"task_id\": \"<string>\",\n \"idempotency_scope\": \"durable_task\",\n \"context\": {},\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"run_id\": \"<string>\",\n \"message_id\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"result_path\": \"<string>\",\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_environment_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"allow_delegation\": true,\n \"tools\": [\n \"<string>\"\n ],\n \"model\": \"<string>\",\n \"thinking\": false,\n \"max_steps\": 1\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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.veryfront.com/runs/{run_id}/children")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool_call_id\": \"<string>\",\n \"request\": {\n \"prompt\": \"<string>\",\n \"task_id\": \"<string>\",\n \"idempotency_scope\": \"durable_task\",\n \"context\": {},\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"run_id\": \"<string>\",\n \"message_id\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"result_path\": \"<string>\",\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_environment_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"allow_delegation\": true,\n \"tools\": [\n \"<string>\"\n ],\n \"model\": \"<string>\",\n \"thinking\": false,\n \"max_steps\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.veryfront.com/runs/{run_id}/children")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tool_call_id\": \"<string>\",\n \"request\": {\n \"prompt\": \"<string>\",\n \"task_id\": \"<string>\",\n \"idempotency_scope\": \"durable_task\",\n \"context\": {},\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"run_id\": \"<string>\",\n \"message_id\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"result_path\": \"<string>\",\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_environment_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"allow_delegation\": true,\n \"tools\": [\n \"<string>\"\n ],\n \"model\": \"<string>\",\n \"thinking\": false,\n \"max_steps\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"child_conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"child_run_id": "<string>",
"child_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"duplicate": true
}Creates one child agent run per parent run and tool-call identity. Exact retries return the existing child, while later parent retry runs reuse the task conversation. When request.idempotency_scope is durable_task, the same durable task and tool-call identity replays the original child run across parent runs.
POST
/
runs
/
{run_id}
/
children
Ensure an idempotent child agent run
curl --request POST \
--url https://api.veryfront.com/runs/{run_id}/children \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool_call_id": "<string>",
"request": {
"prompt": "<string>",
"task_id": "<string>",
"idempotency_scope": "durable_task",
"context": {},
"evidence_refs": [
{
"id": "<string>",
"run_id": "<string>",
"message_id": "<string>",
"tool_call_id": "<string>",
"result_path": "<string>",
"label": "<string>",
"summary": "<string>"
}
],
"description": "<string>",
"agent_id": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_delegation": true,
"tools": [
"<string>"
],
"model": "<string>",
"thinking": false,
"max_steps": 1
}
}
'import requests
url = "https://api.veryfront.com/runs/{run_id}/children"
payload = {
"tool_call_id": "<string>",
"request": {
"prompt": "<string>",
"task_id": "<string>",
"idempotency_scope": "durable_task",
"context": {},
"evidence_refs": [
{
"id": "<string>",
"run_id": "<string>",
"message_id": "<string>",
"tool_call_id": "<string>",
"result_path": "<string>",
"label": "<string>",
"summary": "<string>"
}
],
"description": "<string>",
"agent_id": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_delegation": True,
"tools": ["<string>"],
"model": "<string>",
"thinking": False,
"max_steps": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tool_call_id: '<string>',
request: {
prompt: '<string>',
task_id: '<string>',
idempotency_scope: 'durable_task',
context: {},
evidence_refs: [
{
id: '<string>',
run_id: '<string>',
message_id: '<string>',
tool_call_id: '<string>',
result_path: '<string>',
label: '<string>',
summary: '<string>'
}
],
description: '<string>',
agent_id: '<string>',
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_environment_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_branch_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
allow_delegation: true,
tools: ['<string>'],
model: '<string>',
thinking: false,
max_steps: 1
}
})
};
fetch('https://api.veryfront.com/runs/{run_id}/children', 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.veryfront.com/runs/{run_id}/children",
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([
'tool_call_id' => '<string>',
'request' => [
'prompt' => '<string>',
'task_id' => '<string>',
'idempotency_scope' => 'durable_task',
'context' => [
],
'evidence_refs' => [
[
'id' => '<string>',
'run_id' => '<string>',
'message_id' => '<string>',
'tool_call_id' => '<string>',
'result_path' => '<string>',
'label' => '<string>',
'summary' => '<string>'
]
],
'description' => '<string>',
'agent_id' => '<string>',
'project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'target_environment_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'target_branch_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'allow_delegation' => true,
'tools' => [
'<string>'
],
'model' => '<string>',
'thinking' => false,
'max_steps' => 1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.veryfront.com/runs/{run_id}/children"
payload := strings.NewReader("{\n \"tool_call_id\": \"<string>\",\n \"request\": {\n \"prompt\": \"<string>\",\n \"task_id\": \"<string>\",\n \"idempotency_scope\": \"durable_task\",\n \"context\": {},\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"run_id\": \"<string>\",\n \"message_id\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"result_path\": \"<string>\",\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_environment_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"allow_delegation\": true,\n \"tools\": [\n \"<string>\"\n ],\n \"model\": \"<string>\",\n \"thinking\": false,\n \"max_steps\": 1\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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.veryfront.com/runs/{run_id}/children")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool_call_id\": \"<string>\",\n \"request\": {\n \"prompt\": \"<string>\",\n \"task_id\": \"<string>\",\n \"idempotency_scope\": \"durable_task\",\n \"context\": {},\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"run_id\": \"<string>\",\n \"message_id\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"result_path\": \"<string>\",\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_environment_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"allow_delegation\": true,\n \"tools\": [\n \"<string>\"\n ],\n \"model\": \"<string>\",\n \"thinking\": false,\n \"max_steps\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.veryfront.com/runs/{run_id}/children")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tool_call_id\": \"<string>\",\n \"request\": {\n \"prompt\": \"<string>\",\n \"task_id\": \"<string>\",\n \"idempotency_scope\": \"durable_task\",\n \"context\": {},\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"run_id\": \"<string>\",\n \"message_id\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"result_path\": \"<string>\",\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_environment_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"target_branch_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"allow_delegation\": true,\n \"tools\": [\n \"<string>\"\n ],\n \"model\": \"<string>\",\n \"thinking\": false,\n \"max_steps\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"child_conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"child_run_id": "<string>",
"child_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"duplicate": true
}Authorizations
bearerAuthapiKeyAuth
Use a JWT bearer token or a Veryfront API key in the Authorization header.
Path Parameters
Minimum string length:
1Body
application/json
⌘I