Skip to main content
Read aggregated statistics for a deploy with the Public API (V2). The endpoint authenticates with your personal API token.

Get deploy statistics

POST /api/v2/deploys/stats

Request body

FieldTypeRequiredDescription
site_idstringYesSite to query.
revisionstringYesGit revision or deploy identifier.
namespacestringNoNamespace to filter by, such as web or api.
{
  "site_id": "YOUR-SITE-ID",
  "revision": "abc123",
  "namespace": "web"
}

Response

Returns the deploy’s throughput (total request count), mean (average response time in milliseconds), and error_rate (a percentage from 0 to 100).