trace
Log Spans
post/v2/projects/{project_id}/spans
Request
- Base URLhttps://api.galileo.ai
- URLhttps://api.galileo.ai/v2/projects/{project_id}/spans
- Auth
- API key in header Galileo-API-Key
- or API key in header Splunk-AO-API-Key
- or OAuth 2PasswordToken URL: https://api.galileo.ai/login
- or HTTP basic
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-20T08:46:30.194309Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2026-07-20T08:46:30.178076Z",
"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
Changes
No recorded changes to this operation across all 1 revision of this API.