List spans (legacy)

List spans via the legacy endpoint. This path supports basic pagination and filtering, but for advanced filtering, annotations, and evaluator score sorting, use /api/request-logs/list/ instead.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

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

Results per page (max 1000).

sort_bystringOptionalDefaults to -timestamp

Field to sort by. Prefix - for descending.

start_timedatetimeOptional

Start of time range (ISO 8601).

end_timedatetimeOptional

End of time range (ISO 8601).

customer_identifierstringOptional

Filter by end-user/customer identifier.

include_fieldsstringOptional

Comma-separated list of fields to include in each span. Reduces response size.

Response

Paginated legacy span list
countinteger
Total number of matching spans.
resultslist of objects
Array of span objects for the current page.
nextstring or null
URL for the next page of results.
previousstring or null
URL for the previous page of results.

Errors

401
Unauthorized Error