Overview
Get Started
How-to Guides
- Overview
- Logging Basics
- Agentic AI
- Conversational AI
- Luna 2
- Metrics
- Retrieval-Augmented Generation
Cookbooks
- Overview
- Agents
- RAG
Integrations
Concepts
- Metrics
- Luna 2
- Projects
- Logging
- Datasets
- Annotations
- Experiments
- Playground
SDK/API Reference
- Python SDK
- TypeScript SDK
- API
- health
- auth
- system_users
- annotation
- api_keys
- datasets
- experiment
- feedback
- groups
- log_stream
- projects
- protect
- data
- trace
- users
trace
Log Traces
POST
/
v2
/
projects
/
{project_id}
/
traces
Copy
Ask AI
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-06-27T16:49:18.902850Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2025-06-27T16:49:18.902815Z",
"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": {}
}
]
}'
Copy
Ask AI
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"traces_count": 123
}
Authorizations
Path Parameters
Body
application/json
Request model for ingesting traces.
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
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-06-27T16:49:18.902850Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2025-06-27T16:49:18.902815Z",
"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": {}
}
]
}'
Copy
Ask AI
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"traces_count": 123
}
Assistant
Responses are generated using AI and may contain mistakes.