Errors

Error envelope

Every error response uses the same shape:

JSON
{
  "success": false,
  "error": { "code": "validation_error", "message": "Validation failed", "fields": { "email": "Enter a valid email" } }
}

fields is only present for validation_error.

Error codes

HTTP statuscodeMeaning
401unauthorizedMissing or invalid bearer token.
403forbiddenThe member's role does not allow this action.
403insufficient_scopeThe token was not granted the required scope.
400no_active_organizationThe user has no active organization context.
404not_foundThe resource does not exist in your organization.
422validation_errorRequest body failed validation; see `error.fields`.
409conflictThe request conflicts with the resource's current state.
429rate_limitedToo many requests — see Rate Limits.
400invalid_requestThe request is malformed.
400invalid_grantOAuth2: the grant (e.g. refresh token) is invalid or expired.
400invalid_clientOAuth2: unknown or unauthorized client.
400unsupported_grant_typeOAuth2: the requested grant_type isn't supported.
500internal_errorAn unexpected server error occurred.