Get serverless endpoint worker metrics
Get worker counts by state for a Runpod Serverless endpoint as a time series.
Authorizations
Runpod API key authentication. Generate an API key in the Runpod console and send it in the Authorization header as Bearer <api_key>. Keys are scoped to the permissions granted when created; requests may return 403 when a valid key lacks access to the requested resource or action.
Console sessions (Clerk JWTs) act for the signed-in user. To act for a team instead, also send X-Team-Id: <team_id>; it applies only when the user owns or belongs to that team, otherwise the request runs against the user's own account. API keys created inside a team already act for that team and do not need the header.
Query Parameters
Response
OK
Worker counts by state per bucket for the resolved window. records contains only buckets with activity. Buckets with no activity are omitted, not zero-filled, so records can be shorter than the number of buckets in the window, or empty. Results are paged: see pagination.