Skip to main content
POST
Query raw trace events from engineering data sources

Authorizations

Authorization
string
header
required

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body

application/json
attributes
string[]
required

List of attribute names to include in results. Empty returns all attributes.

List of attribute names to include in results. Empty returns all attributes.

endDate
string<date-time>
required

End of the time range to query

filters
object[]
required

Filters to apply to the query

limit
integer<int32>
required

Maximum number of results to return (max 500)

orderBy
object[]
required

Ordering specification for results

source
string
required

Data source to query (e.g., 'pull_requests', 'deployments')

startDate
string<date-time>
required

Start of the time range to query

daysOfWeek
integer<int32>[]

Optional day-of-week restriction (ISO: Monday=1..Sunday=7). When set, only events whose time attribute falls on one of these days are returned (e.g. [1,2,3,4,5] excludes weekends).

Optional day-of-week restriction (ISO: Monday=1..Sunday=7). When set, only events whose time attribute falls on one of these days are returned (e.g. [1,2,3,4,5] excludes weekends).

nextPage
string

Pagination cursor from a previous response

timeAttribute
string

Override the default time attribute for time-based filtering

Response

Successfully executed trace query

metadata
object
required

Query metadata describing the structure of returned columns

rows
object[][]
required

Result rows, one array per event. Cells are positional: the value at index i corresponds to metadata.columns[i], and its JSON type follows that column's type (string, number, boolean, or null). Rows are not keyed by column name.

Result rows, one array per event. Cells are positional: the value at index i corresponds to metadata.columns[i], and its JSON type follows that column's type (string, number, boolean, or null). Rows are not keyed by column name.

Example:
Example:
Last modified on September 29, 2026