GET
/
analytics
/
graphs
/
feedbacks
/
scores

Authorizations

x-portkey-api-key
string
headerrequired

Query Parameters

time_of_generation_min
string
required

Minimum time of generation (ISO8601 format)

time_of_generation_max
string
required

Maximum time of generation (ISO8601 format)

total_units_min
integer

Minimum total units (tokens)

Required range: x > 0
total_units_max
integer

Maximum total units (tokens)

Required range: x > 0
cost_min
number

Minimum cost (in cents)

Required range: x > 0
cost_max
number

Maximum cost (in cents)

Required range: x > 0
prompt_token_min
integer

Minimum number of prompt tokens

Required range: x > 0
prompt_token_max
integer

Maximum number of prompt tokens

Required range: x > 0
completion_token_min
integer

Minimum number of completion tokens

Required range: x > 0
completion_token_max
integer

Maximum number of completion tokens

Required range: x > 0
status_code
string

Comma separated response status codes

weighted_feedback_min
number

Minimum weighted feedback score

Required range: -10 < x < 10
weighted_feedback_max
number

Maximum weighted feedback score

Required range: -10 < x < 10
virtual_keys
string

Comma separated virtual key slugs

configs
string

Comma separated config slugs

workspace_slug
string

Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used.

api_key_ids
string

Comma separated API key UUIDs

metadata
string

Stringifed json object with key value metadata pairs

ai_org_model
string

Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination

trace_id
string

Comma separated trace IDs

span_id
string

Comma separated span IDs

Response

200 - application/json
summary
object
required
data_points
object[]
required

An array of data points, each with a timestamp and metrics

object
enum<string>
required

The type of object being returned

Available options:
analytics-graph