ℹ️ These docs are for the v2.0 version of Galileo. Documentation for v1.0 version can be found here.
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/traces \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"session_id": "00000000-0000-0000-0000-000000000000",
"traces": [
{
"created_at": "2025-08-14T18:21:22.354463Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2025-08-14T18:21:22.354424Z",
"dataset_metadata": {},
"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": "trace",
"user_metadata": {}
}
]
}'
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"traces_count": 123
}
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/traces \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"session_id": "00000000-0000-0000-0000-000000000000",
"traces": [
{
"created_at": "2025-08-14T18:21:22.354463Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2025-08-14T18:21:22.354424Z",
"dataset_metadata": {},
"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": "trace",
"user_metadata": {}
}
]
}'
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"traces_count": 123
}
Request model for ingesting traces.
Successful Response
The response is of type object
.
Was this page helpful?