Skip to main content
GET
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Query Parameters

model
string

Exact, case-sensitive model ID recorded on the request: the requested model string for responses, the resolved catalog ID for chat completions. An empty value applies no filter.

Maximum string length: 255
created_from
string<date-time>
required

Required inclusive lower bound on when the request was made (ISO 8601 with an offset, at most millisecond precision).

created_to
string<date-time>
required

Required exclusive upper bound on when the request was made (ISO 8601 with an offset, at most millisecond precision), at most 92 days after created_from.

agent_id
string

Exact match on the agent the request ran for (its guardrail_agent_id). An empty value applies no filter. Response feedback only: a chat completion route answers 400 when a non-empty value is sent.

Maximum string length: 255
group_by
enum<string>

Count per model or per agent over the whole window instead of per UTC day. agent_id applies to response feedback only: the chat completion route answers 400 when it is sent.

Available options:
model,
agent_id

Response

200 - application/json

OK

Counts of rated feedback entries visible to the caller in the requested window.

object
any
required

The object type, always 'feedback.stats'.

data
(FeedbackStatsDay · object | FeedbackStatsGroup · object)[]
required

Without group_by: one entry per UTC day that has ratings, oldest first. With group_by: one entry per group, the 50 largest by thumbs_up + thumbs_down, largest first.