Skip to main content
GET
/
api
/
v1
/
traces
List traces
curl --request GET \
  --url https://control-plane.kubiya.ai/api/v1/traces \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "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"
    }
  ],
  "total": 123,
  "page": 123,
  "page_size": 123,
  "total_pages": 123,
  "has_next": true,
  "has_previous": true
}

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Query Parameters

page
integer
default:1

Page number

Required range: x >= 1
page_size
integer
default:20

Items per page

Required range: 1 <= x <= 100
sort
string
default:-started_at

Sort field with - prefix for descending

status
string | null

Filter by status: success, error, running

time_from
string<date-time> | null

Filter traces starting after this time

time_to
string<date-time> | null

Filter traces starting before this time

search
string | null

Search in trace/span names

execution_id
string | null

Filter by linked execution ID

service_name
string | null

Filter by service name

user_id
string | null

Filter by user ID

has_errors
boolean | null

Filter traces with/without errors

Response

Successful Response

Paginated trace list response

items
TraceListItem · object[]
required
total
integer
required
page
integer
required
page_size
integer
required
total_pages
integer
required
has_next
boolean
required
has_previous
boolean
required