Query spans
Observability
Query spans
Query observability spans filtered by user and other criteria.
POST
Query spans
Returns a list of span summaries matching the provided filters. All filters are optional. If
min_start_datetime is not provided, the query defaults to the last 15 minutes. Start with run_id when investigating a specific agent run. Use limit and offset to paginate results and order to sort by start time.
To retrieve the full record for a specific span, use the retrieve span endpoint.Authorizations
Authorization Bearer Token
Headers
Body
application/json
Object to contain request data for retrieving spans in bulk.
Options for order query param in list endpoints.
Available options:
asc, desc Response
Successful Response
Indicates the type of record for a logfire record.
Available options:
span, pending_span, log, span_event Last modified on June 18, 2026