Skip to content
Live demo

Errors

Every failure returns the same envelope, so one handler covers all of them.

{
"error": {
"code": "invalid_argument",
"message": "Some parameters are missing or the wrong type.",
"issues": [{ "field": "limit", "message": "expected number, received string" }]
}
}
StatusCodeMeaning
400invalid_argumentA parameter is missing or the wrong type. issues names the field.
401Missing or invalid API key.
403forbiddenThe key lacks the scope, named in required_scope.
404not_foundNo such endpoint, or the resource is not in this workspace.
405method_not_allowedThe path exists under a different verb; see Allow.
429rate_limitedSlow down; see retry_after_ms.
500internal_errorOur fault. The message is deliberately generic.

A 404 does not distinguish “deleted” from “belongs to another workspace” — telling those apart would confirm which ids exist.