List traces

Retrieve a paginated list of traces matching your filters. Supports the filter payload documented in the Filters API.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

pageintegerOptionalDefaults to 1
Page number.
page_sizeintegerOptional<=1000Defaults to 50

Results per page (max 1000).

sort_bystringOptionalDefaults to -timestamp

Field to sort by. Prefix - for descending. Common values include -timestamp, -total_cost, -duration, -total_tokens, and -error_count.

start_timedatetimeOptional

Start of time range (ISO 8601). Defaults to one hour before end_time when omitted.

end_timedatetimeOptional

End of time range (ISO 8601). Defaults to now when omitted.

environmentstringOptional
Filter by environment.

Request

This endpoint expects an object.
filtersobjectOptional

Filter criteria. See Filters API Reference for operator syntax.

operatorenumOptionalDefaults to AND
Logical operator for combining filters when supported by the client payload.
Allowed values:

Response

Paginated list of traces.
countinteger
Total number of matching traces.
resultslist of objects
Current page of traces.
nextstring or null
URL for the next page of results.
previousstring or null
URL for the previous page of results.

Errors

400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error
500
Internal Server Error