Skip to main content
POST
/
traces
Get Traces
curl --request POST \
  --url https://engine-api.unomiq.com/traces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Unomiq-App-Id: <x-unomiq-app-id>' \
  --data '
{
  "filter": {
    "field": "<string>",
    "value": "<string>"
  }
}
'
{
  "data": [
    {
      "trace_id": "<string>",
      "span_name": "<string>",
      "duration_ms": 123,
      "spans_count": 123,
      "total_cost": 123,
      "min_start_time_unix_nano": 123,
      "service_name": "<string>",
      "unit": "<string>",
      "parent_unit": "<string>"
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Unomiq-App-Id
string
required

Query Parameters

start_time
string<date-time>
required

Start datetime (inclusive)

Example:

"2025-01-15T00:00:00Z"

end_time
string<date-time>
required

End datetime (exclusive)

Example:

"2025-01-16T00:00:00Z"

page
integer
default:1

Page number for pagination (1-indexed)

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

Number of items per page

Required range: 1 <= x <= 100
search_child_spans
boolean
default:false

When true, apply filters to all spans including child spans. When false, apply filters only to root spans.

Body

application/json

Request model for query filter.

filter
Condition · object

A single filter condition.

Response

Successful Response

Paginated response for root traces.

data
RootTrace · object[]
required
pagination
PaginationInfo · object
required

Pagination metadata.