Skip to main content
GET
Analyze Bottlenecks

Authorizations

Authorization
string
header
required

Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.

X-Namespace
string
header
required

Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.

Query Parameters

hours
integer
default:24

Hours of history

Required range: 1 <= x <= 168
limit
integer
default:10

Number of bottlenecks to return

Required range: 1 <= x <= 50

Response

Successful Response

Response for bottleneck analysis.

time_range
TimeRange · object
required

Time range of the analysis

bottlenecks
BottleneckAnalysis · object[]
required

Ranked list of bottlenecks

total_time_ms
number
required

Total execution time across all components