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.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Query parameters
Results per page (max 1000).
Field to sort by. Prefix - for descending.
Start of time range (ISO 8601).
End of time range (ISO 8601).
Filter by environment (prod or test).
Filter by span/log type. Use values like chat, completion, or response to focus on model-inference spans; omitting this can also return non-chat span/log rows such as legacy text logs.
Comma-separated list of fields to include in each span. Reduces response size.