v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Logging

Get request count histogram

Returns time-bucketed request counts. Bucket size is auto-calculated from the time range.

get/api/logs/histogram

Query parameters

providersstring

Comma-separated list of providers to filter by

modelsstring

Comma-separated list of models to filter by

aliasesstring

Comma-separated list of model aliases to filter by

statusstring

Comma-separated list of statuses to filter by

objectsstring

Comma-separated list of object types to filter by

selected_key_idsstring

Comma-separated list of selected key IDs to filter by

virtual_key_idsstring

Comma-separated list of virtual key IDs to filter by

team_idsstring

Comma-separated list of team IDs to filter by

customer_idsstring

Comma-separated list of customer IDs to filter by

user_idsstring

Comma-separated list of user IDs to filter by

business_unit_idsstring

Comma-separated list of business unit IDs to filter by

routing_rule_idsstring

Comma-separated list of routing rule IDs to filter by

routing_engine_usedstring

Comma-separated list of routing engines to filter by

start_timestring date-time

Start time filter (RFC3339 format)

end_timestring date-time

End time filter (RFC3339 format)

periodstring

Relative time period filter

min_latencynumber

Minimum latency filter

max_latencynumber

Maximum latency filter

min_tokensinteger

Minimum tokens filter

max_tokensinteger

Maximum tokens filter

min_costnumber

Minimum cost filter

max_costnumber

Maximum cost filter

missing_cost_onlyboolean

Only show logs with missing cost

stop_reasonsstring

Comma-separated list of stop reasons to filter by

cache_hit_typesstring

Comma-separated list of cache hit types to filter by

parent_request_idstring

Parent request ID to filter by

metadata_<key>string

Metadata filter where <key> is the metadata key to match

content_searchstring

Search in request/response content

Response

Successful response

bucket_size_secondsinteger