ℹ️ These docs are for the free version of Galileo. Documentation for current customers can be found here.
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/spans \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"parent_id": "11000011-0000-0000-0000-110000110000",
"spans": [
{
"created_at": "2025-07-17T17:14:54.767941Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2025-07-17T17:14:54.752509Z",
"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"
}'
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"trace_id": "<string>",
"parent_id": "<string>"
}
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/spans \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"parent_id": "11000011-0000-0000-0000-110000110000",
"spans": [
{
"created_at": "2025-07-17T17:14:54.767941Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2025-07-17T17:14:54.752509Z",
"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"
}'
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"trace_id": "<string>",
"parent_id": "<string>"
}
Request model for ingesting spans.
Successful Response
The response is of type object
.
Was this page helpful?