List top users
Returns the top-N customer identifiers ranked by a chosen LLM metric. Pass a filters body to scope the ranking (for example to a single customer or model). Authenticated; regular users are scoped to their own organization.
Query parameters
Preset time range. Use this OR start_time/end_time.
Optional explicit ISO start. Use with end_time for custom ranges.
Optional explicit ISO end. Use with start_time.
Metric to sort the ranking by.
Headers
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.
Request body
Response
Successful response.
Map of metric name -> ranked array. The keys are the values of the sort_by parameter (default: number_of_requests). Each row contains the dimension value (model name, key id, etc.) and the metric value.