curl --request GET \
--url https://control-plane.kubiya.ai/api/v1/traces/{trace_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"trace_id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"status": "success",
"started_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"service_name": "<string>",
"execution_id": "<string>",
"execution_type": "<string>",
"user_id": "<string>",
"user_email": "<string>",
"user_name": "<string>",
"user_avatar": "<string>",
"ended_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"span_count": 0,
"error_count": 0,
"updated_at": "2023-11-07T05:31:56Z",
"spans": [
{
"id": "<string>",
"trace_id": "<string>",
"span_id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"kind": "INTERNAL",
"status_code": "UNSET",
"start_time_unix_nano": 123,
"created_at": "2023-11-07T05:31:56Z",
"parent_span_id": "<string>",
"status_message": "<string>",
"end_time_unix_nano": 123,
"duration_ns": 123,
"duration_ms": 123,
"attributes": {},
"resource_attributes": {},
"events": [
{}
],
"links": [
{}
],
"children": "<array>"
}
]
}Get detailed trace information with all spans in tree structure
curl --request GET \
--url https://control-plane.kubiya.ai/api/v1/traces/{trace_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"trace_id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"status": "success",
"started_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"service_name": "<string>",
"execution_id": "<string>",
"execution_type": "<string>",
"user_id": "<string>",
"user_email": "<string>",
"user_name": "<string>",
"user_avatar": "<string>",
"ended_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"span_count": 0,
"error_count": 0,
"updated_at": "2023-11-07T05:31:56Z",
"spans": [
{
"id": "<string>",
"trace_id": "<string>",
"span_id": "<string>",
"organization_id": "<string>",
"name": "<string>",
"kind": "INTERNAL",
"status_code": "UNSET",
"start_time_unix_nano": 123,
"created_at": "2023-11-07T05:31:56Z",
"parent_span_id": "<string>",
"status_message": "<string>",
"end_time_unix_nano": 123,
"duration_ns": 123,
"duration_ms": 123,
"attributes": {},
"resource_attributes": {},
"events": [
{}
],
"links": [
{}
],
"children": "<array>"
}
]
}Enter your Kubiya API token (format: Bearer
Return spans as flat list instead of tree
Successful Response
Detailed trace response with spans
Trace status enum
success, error, running Show child attributes
Was this page helpful?