Start a new execution trace
curl --request POST \
--url http://localhost:3000/api/v1/executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"agent_name": "<string>",
"trigger": "<string>",
"metadata": {},
"idempotency_key": "<string>",
"started_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "http://localhost:3000/api/v1/executions"
payload = {
"agent_id": "<string>",
"agent_name": "<string>",
"trigger": "<string>",
"metadata": {},
"idempotency_key": "<string>",
"started_at": "2023-11-07T05:31:56Z"
}
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({
agent_id: '<string>',
agent_name: '<string>',
trigger: '<string>',
metadata: {},
idempotency_key: '<string>',
started_at: '2023-11-07T05:31:56Z'
})
};
fetch('http://localhost:3000/api/v1/executions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/executions",
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([
'agent_id' => '<string>',
'agent_name' => '<string>',
'trigger' => '<string>',
'metadata' => [
],
'idempotency_key' => '<string>',
'started_at' => '2023-11-07T05:31:56Z'
]),
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 := "http://localhost:3000/api/v1/executions"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"agent_name\": \"<string>\",\n \"trigger\": \"<string>\",\n \"metadata\": {},\n \"idempotency_key\": \"<string>\",\n \"started_at\": \"2023-11-07T05:31:56Z\"\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("http://localhost:3000/api/v1/executions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"<string>\",\n \"agent_name\": \"<string>\",\n \"trigger\": \"<string>\",\n \"metadata\": {},\n \"idempotency_key\": \"<string>\",\n \"started_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/executions")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": \"<string>\",\n \"agent_name\": \"<string>\",\n \"trigger\": \"<string>\",\n \"metadata\": {},\n \"idempotency_key\": \"<string>\",\n \"started_at\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"agent_id": "<string>",
"agent_name": "<string>",
"status": "RUNNING",
"root_span_id": "<string>",
"trigger": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Ingest
Start a new execution trace
POST
/
api
/
v1
/
executions
Start a new execution trace
curl --request POST \
--url http://localhost:3000/api/v1/executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"agent_name": "<string>",
"trigger": "<string>",
"metadata": {},
"idempotency_key": "<string>",
"started_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "http://localhost:3000/api/v1/executions"
payload = {
"agent_id": "<string>",
"agent_name": "<string>",
"trigger": "<string>",
"metadata": {},
"idempotency_key": "<string>",
"started_at": "2023-11-07T05:31:56Z"
}
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({
agent_id: '<string>',
agent_name: '<string>',
trigger: '<string>',
metadata: {},
idempotency_key: '<string>',
started_at: '2023-11-07T05:31:56Z'
})
};
fetch('http://localhost:3000/api/v1/executions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/executions",
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([
'agent_id' => '<string>',
'agent_name' => '<string>',
'trigger' => '<string>',
'metadata' => [
],
'idempotency_key' => '<string>',
'started_at' => '2023-11-07T05:31:56Z'
]),
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 := "http://localhost:3000/api/v1/executions"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"agent_name\": \"<string>\",\n \"trigger\": \"<string>\",\n \"metadata\": {},\n \"idempotency_key\": \"<string>\",\n \"started_at\": \"2023-11-07T05:31:56Z\"\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("http://localhost:3000/api/v1/executions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"<string>\",\n \"agent_name\": \"<string>\",\n \"trigger\": \"<string>\",\n \"metadata\": {},\n \"idempotency_key\": \"<string>\",\n \"started_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/executions")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": \"<string>\",\n \"agent_name\": \"<string>\",\n \"trigger\": \"<string>\",\n \"metadata\": {},\n \"idempotency_key\": \"<string>\",\n \"started_at\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"agent_id": "<string>",
"agent_name": "<string>",
"status": "RUNNING",
"root_span_id": "<string>",
"trigger": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Show child attributes
Show child attributes
Retries with the same tenant, agent, and key return the stored execution.
Optional captured start time for offline delivery. Defaults to server time. Stored at microsecond precision; explicit retries must use the same time.