Search docs
Find a page, section or endpoint

API reference

Errors

The error shape and what each status code means.

Error shape#

Every non-2xx response has the same shape. The message names the problem.

Error response
{
  "error": "unknown metric 'total_spnd' — define it first (metric-definitions)"
}

Status codes#

StatusMeaning
401Missing or invalid token
403Valid token, wrong scope: another tenant or workspace, or a write with a workspace token
404No such resource (profile, segment, identifier)
409Already exists, and this resource is create-only (metric claims, segments, workspaces)
422The body failed validation; the message says exactly why
503A backing store is temporarily unavailable; retry