v4
latestOpenAPI 3.1.02026-08-019681,1012.0 MBtrace
Log Spans
post/projects/{project_id}/spans
Path parameters
project_idstring uuid4 required
Request body
Example request
{
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"parent_id": "11000011-0000-0000-0000-110000110000",
"spans": [
{
"created_at": "2026-07-27T17:31:56.099379Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2026-07-27T17:31:56.084497Z",
"dataset_metadata": {},
"id": "22222222-2222-4222-a222-222222222222",
"input": [
{
"content": "Question: who is a smart LLM?",
"role": "user"
}
],
"metrics": {},
"name": "",
"output": {
"content": "I am!",
"role": "user"
},
"tags": [],
"type": "llm",
"user_metadata": {}
}
],
"tags": [],
"type": "workflow",
"user_metadata": {}
}
],
"trace_id": "11000011-0000-0000-0000-110000110000"
}Response
Successful Response