Skip to main content
POST
Query Usage Events

Authorizations

Authorization
string
header
required

Enter your MeshAPI key (rsk_...) or, for the admin-keys endpoints, a dashboard session token — sent as Authorization: Bearer <token>.

Headers

X-Mesh-Version
enum<string>
default:2026-08

Dated version of the API contract to pin this request to. Omit it and the request is served under 2026-08 — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with 400 invalid_api_version rather than falling back silently. The version actually served is echoed as X-Mesh-Version on every response, including errors.

Available options:
2026-08,
2026-09,
2026-11,
2026-11-12

Query Parameters

refresh
boolean
default:false

Body

application/json
org_id
string
required
since
string | null
until
string | null
model
string[] | null
status
string[] | null
key_id
string[] | null
team_id
string | null
member_user_id
string | null
end_user_id
string | null
request_id
string | null
failure_stage
string[] | null
service_tier
string[] | null
model_type
string[] | null
run_id
string | null
tags
Tags · object | null
tag_key
string | null
routing
string[] | null

Narrow to requests routing did not serve on the first attempt: retried, provider_fallback, model_fallback. Any may match.

provider
string[] | null

Narrow to the provider that SERVED, e.g. ['bedrock'].

fault_owner
string[] | null

Narrow to whose failure it was: caller, provider, gateway, or none for a request that did not fail. Derived from the row, not stored.

is_byok
boolean[] | null

Narrow to requests served on the customer's own credential, or not.

stream
boolean[] | null

Narrow to streamed requests, or non-streamed.

traffic_type
string[] | null

Narrow to one class of traffic, e.g. ['external']. Omitted, every class is counted — the analytics API defaults to external instead, so a drill-through states this explicitly.

is_retry_attempt
boolean[] | null

Omitted, only the attempt that SERVED each request is returned. Name [true] for the intermediate retried attempts alone, or [true, false] for both — the analytics API's include_retries population.

limit
integer | null
default:50
Required range: 1 <= x <= 200
offset
integer | null
default:0
Required range: x >= 0

Response

Successful Response

events
UsageEventOut · object[]
required
total
integer
required
limit
integer
required
offset
integer
required