error object.
Error response shape
Machine-readable error code. Use this field for programmatic error handling.
Human-readable description of the error. Do not rely on this string in code — it may change. Use
code instead.Unique correlation ID for this request. Include this value when contacting support — it links to logs, audit events, and the outbound
X-Request-Id response header.Optional map of field-level error messages. Present on validation errors to pinpoint which input field failed and why.
HTTP status codes
| Status | Meaning |
|---|---|
400 | Bad request — malformed body, invalid query parameter, or validation error. |
401 | Unauthorized — missing, invalid, or expired Authorization token. |
403 | Forbidden — authenticated but lacking the required scope or permission. |
404 | Not found — the resource does not exist or is not visible to this token. |
409 | Conflict — the operation conflicts with existing state (e.g. duplicate name). |
422 | Unprocessable entity — the request was well-formed but semantically invalid. |
429 | Too many requests — rate limit exceeded. See Rate Limits. |
500 | Internal server error — unexpected error. Retry with exponential backoff. |
Error codes
| Code | Status | Description |
|---|---|---|
validation_error | 400 | Request body or query params failed validation. Check details for field-level messages. |
unauthorized | 401 | Missing or invalid Authorization header, or expired token. |
invalid_grant | 401 | The subject_token passed to /auth/exchange is invalid or could not be verified. |
forbidden | 403 | Valid token but insufficient scope for this operation. |
mfa_required | 403 | MFA enrollment is required by this workspace. |
sso_required | 403 | SSO is enforced for this workspace — use the SSO flow. |
not_found | 404 | The requested resource does not exist. |
conflict | 409 | The operation would create a duplicate (e.g. a service account with the same name). |
rate_limited | 429 | Too many requests from this IP. See the Retry-After header. |
internal_error | 500 | Unexpected server error. |
Validation errors
When request validation fails (status400, code validation_error), the details object maps field names to error messages:
details is the dot-path to the invalid field in the request body (e.g. connector.config.api_key).
Handling errors
5xx errors and retries
500 Internal Server Error responses indicate an unexpected server-side failure. They are safe to retry with exponential backoff. Always include the trace_id from the error body if you report the issue to support.