List top API keys
Returns the top-N API keys 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.
Authentication
AuthorizationBearer
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
summary_type
Preset time range. Use this OR start_time/end_time.
start_time
Optional explicit ISO start. Use with end_time for custom ranges.
end_time
Optional explicit ISO end. Use with start_time.
sort_by
Metric to sort the ranking by.
Request
This endpoint expects an object.
filters
Filter criteria. See Filters API Reference for operator syntax.
Response
Successful response.