4e064cf81dae

latestOpenAPI 3.1.02026-08-131831,331960.0 KB
spans

List span groups

Group spans by a supported dimension and return one aggregate row per group. trace and thread roll spans up through their dedicated entity views.

get/api/request-logs/groups/

Query parameters

group_by'model' | 'provider_id' | 'organization_key_id' | 'prompt_id' | 'deployment_id' | 'deployment_name' | 'custom_identifier' | 'customer_identifier' | 'trace' | 'thread'

Grouping dimension. trace and thread use entity rollups.

sort_bystring
start_timestring date-time
end_timestring date-time
environmentstring
pageinteger
page_sizeinteger

Headers

Authorizationstring required

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, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

Response

Paginated groups and aggregate metrics.

countinteger required
nextstring nullable
previousstring nullable
total_countinteger
current_filtersobject
filters_dataobject