List spans
Retrieve spans matching the specified filters with pagination. Supports filtering by any span field, URL-based quick filters, and sorting by evaluator scores. See Filters API Reference for full filter syntax.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Query parameters
page
Page number.
page_size
Results per page (max 1000).
sort_by
Field to sort by. Prefix - for descending.
start_time
Start of time range (ISO 8601).
end_time
End of time range (ISO 8601).
environment
Filter by environment.
is_test
Filter by test/production spans.
Allowed values:
all_envs
Include spans from all environments.
Allowed values:
fetch_filters
Return available filter options in the response. May slow response.
Allowed values:
include_fields
Comma-separated list of fields to include in each span. Reduces response size.
Request
This endpoint expects an object.
operator
Logical operator to combine filters.
Allowed values:
Response
Successful response for List spans
count
Total number of results
results
Array of results for the current page
next
URL for the next page of results
previous
URL for the previous page of results
Errors
400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error
500
Internal Server Error