time_of_generation_minstringобязательный
Start time for the analytics period (ISO8601 format, e.g., '2024-01-01T00:00:00Z')
time_of_generation_maxstringобязательный
End time for the analytics period (ISO8601 format, e.g., '2024-02-01T00:00:00Z')
total_units_minnumber
Minimum number of total tokens to filter by
total_units_maxnumber
Maximum number of total tokens to filter by
cost_minnumber
Minimum cost in cents to filter by
cost_maxnumber
Maximum cost in cents to filter by
prompt_token_minnumber
Minimum number of prompt tokens
prompt_token_maxnumber
Maximum number of prompt tokens
completion_token_minnumber
Minimum number of completion tokens
completion_token_maxnumber
Maximum number of completion tokens
status_codestring
Legacy Portkey query param for HTTP status codes. Comma-separated string; prefer status_codes for structured inputs.
weighted_feedback_minnumber
Minimum weighted feedback score (-10 to 10)
weighted_feedback_maxnumber
Maximum weighted feedback score (-10 to 10)
virtual_keysstring
Legacy Portkey query param for virtual key slugs. Comma-separated string; prefer virtual_key_slugs for structured inputs.
configsstring
Legacy Portkey query param for config slugs. Comma-separated string; prefer config_slugs for structured inputs.
status_codesstring[]
Structured alias for status_code. Use an array of HTTP status codes; normalized to the legacy comma-separated Portkey query param.
virtual_key_slugsstring[]
Structured alias for virtual_keys. Use an array of virtual key slugs; normalized to the legacy comma-separated Portkey query param.
config_slugsstring[]
Structured alias for configs. Use an array of config slugs; normalized to the legacy comma-separated Portkey query param.
workspace_slugstring
Filter by specific workspace
api_key_idsstring
Legacy Portkey query param for API key UUIDs. Comma-separated string; request_analytics also accepts an array and normalizes it to this form.
metadatastring
Legacy Portkey query param for metadata filtering. Stringified JSON object, e.g. '{"env":"prod","app":"myapp"}'; prefer metadata_filter for structured inputs.
ai_org_modelstring
Legacy Portkey query param for provider/model pairs. Format: 'provider__model' with double underscore, e.g. 'openai__gpt-4' or 'anthropic__claude-3-opus'. Comma-separated string; prefer provider_models for structured inputs.
provider_modelsstring[]
Structured alias for ai_org_model. Use provider__model strings in an array; normalized to the legacy comma-separated Portkey query param.
trace_idstring
Legacy Portkey query param for trace IDs. Comma-separated string; prefer trace_ids for structured inputs.
trace_idsstring[]
Structured alias for trace_id. Use an array of trace IDs; normalized to the legacy comma-separated Portkey query param.
span_idstring
Legacy Portkey query param for span IDs. Comma-separated string; prefer span_ids for structured inputs.
span_idsstring[]
Structured alias for span_id. Use an array of span IDs; normalized to the legacy comma-separated Portkey query param.
metadata_filterobject
Structured alias for metadata. Use an object such as { env: 'prod' }; normalized to a JSON string before the request is sent.
prompt_slugstring
Filter by prompt slug
current_pageinteger
Page number for pagination
page_sizeinteger
Results per page (max 100)
metadata_keystringобязательный
The metadata key to group by (e.g., 'env', 'app', 'client_id')