Errors
All Admin API errors use one envelope:
{
"error": {
"code": "validation_failed",
"message": "The request is invalid.",
"request_id": "req_..."
}
}
Current standard codes include missing_token, invalid_token, expired_token, rotated_token, insufficient_scope, account_membership_revoked (403: the token's user is no longer the owner or a team manager of the account the token was issued for), suspended_application, deleted_application, not_found, validation_failed, member_already_exists, unsupported_media_type, payload_too_large, rate_limited, monthly_quota_exceeded, invalid_token_audience, idempotency_conflict, idempotency_in_progress, and upstream_error.
validation_failed can be returned with 400 for invalid JSON or unsupported Accept headers, and with 422 for semantic validation errors such as invalid cursors or invalid resource attributes.
Space configuration and payment endpoints add domain-specific codes:
upgrade_required (422) — the change is gated to higher account tiers (the response includes required_permission and allowed_account_types).
payment_gate_managed_separately (422) — privacy cannot move to or from "payment" via PATCH /spaces/{space_id}; use PATCH /spaces/{space_id}/payment.
no_active_plans (422) — enabling paid access requires at least one active plan.
stripe_not_connected (422) — enabling paid access requires a charge-ready Stripe account.
live_enrollments (409) — disabling paid access while live enrollments exist requires force: true (the response includes live_enrollments).
mixed_plan_billing (422) — multiple plan selection requires all active plans to share one currency and one billing family; plan writes that would break this are rejected too.
guest_checkout_prerequisites (422) — guest checkout cannot be enabled while an active plan has prerequisites.
image_download_failed (422) — a space image could not be downloaded, validated, or processed from source_url.
image_decode_failed (422) — the uploaded (or imported) image could not be decoded. The bytes are corrupt or truncated. The stored object is deleted and the upload is marked failed; start a new upload.
image_dimensions_exceeded (422) — the image header declares more than 12000px on a side or more than 24 million pixels (6000x4000). Detected from the header before the image is decoded. The stored object is deleted and the upload is marked failed.
image_verification_unavailable (503) — the server could not run the image check (decoder unavailable, the check timed out, or it waited too long for a decode slot under load). This is not a verdict on the bytes: nothing is deleted, the upload session stays usable, and the same completion can be retried.
property_merged (422) — the member property is an alias kept after a merge; the response includes merged_into (the canonical mprop_ id). Read and filter through that id instead.
property_not_available (422) — the member-property key or id exists in the space's account but the definition is not available in this space (the response includes property_id and space_id); widen its availability or query a space it is available in.
account_required (422) — the token is not attached to an account, so the account-level endpoints (/member_properties, /contacts…, /broadcasts, /automations) are unavailable; use the space-scoped ones. The route family is the path's: a space_id in the body never turns an account route into a space route.
audience_invalid (422) — a broadcast audience names a space outside the account, selects no space, uses an unknown mode, or addresses more than the token covers: all / none (the whole account) need a token whose user covers every top-level space of the account (owner, all-scope team manager) with no space narrowing on the token. An audience.space_ids entry that is not a space the token reaches is refused the same way (the token cannot tell an unknown id from an unauthorized one).
space_tags_require_one_space (422) — the broadcast's template uses space merge tags (tags lists them) but its audience is not exactly one space; select one space or remove the tags before sending.
selection_invalid (422) — an automation's space_selection / space_ids is unknown, empty, names a space outside the account, breaks a single-space trigger (participation_threshold, checkout_abandoned), or is all / none from a token that does not cover every top-level space of the account (pass selected with spaces the token reaches instead). A space_ids entry the token does not reach is a validation_failed.
member_cannot_be_deleted (422) — DELETE /contacts/{contact_id} on a person who is still a member of a space in the account; remove the membership first (DELETE /spaces/{space_id}/members/{member_id}).
already_exists (409) — an effective automation for this trigger already covers one of the selected spaces; the response names automation_id and space_id.
contact_limit_reached (422) — the account holds the contact ceiling already (25,000 contacts; members are not counted); contact support to raise it.
upload_session_closed (409) — the upload was already marked failed (by an earlier completion attempt whose verification failed) and its stored object has been deleted. Failed is terminal; start a new upload rather than retrying this one.
Some plan responses also include a non-error warnings array (for example, writing plans while the payment gate is off). Warnings are advisory; the request succeeded.
Quotas and hosted MCP
rate_limited and monthly_quota_exceeded return HTTP 429 with Retry-After. Monthly quota errors include limit, remaining, and reset_at; upgrade is present only when a higher plan actually increases the allowance. Limits follow the selected personal or managed-space usage pool. Defaults are Bronze hosted MCP 1,000/month, 30/minute, 500/hour; Silver 5,000/month, 120/minute, 2,000/hour; Gold 250,000/month, 600/minute, 20,000/hour. Overrides and active numerical downgrade grace can change these values. Monthly resets use the server calendar month. Monthly enforcement is best effort under concurrency and Redis outages.
Hosted authentication is unmetered. Invalid/expired/revoked credentials return 401; entitlement/scope failures return 403; authentication capacity limits return 429; temporary authentication/gateway outages return 503. Only credential failures should prompt a reconnect. Raw hosted MCP credentials used at REST return 401 invalid_token_audience; invalid or replayed gateway proofs return 403 invalid_gateway_proof (repeated invalid proofs can be throttled). MCP tools retain the API error’s code, status, retry, quota, reset, and available upgrade details in an isError result.
New Silver-only feature guards can return 403 upgrade_required; existing space-configuration gates retain their documented 422 response.