Docs

Errors

Every error code the API can answer with.

Every error carries a stable code to branch on and a doc_url that leads to its page here. message is for people and can change at any time.

The registry is also available as JSON.

CodeStatusMeaning
accept_required400The request has no Accept header.
already_member409This email address already belongs to a member of the organization.
authentication_required401This operation has no anonymous lane: managing webhook subscriptions needs a key.
bulk_not_found404No bulk export of this type has been generated.
card_not_found404No card has this id.
catalog_not_found404No catalog has this name.
cursor_filter_mismatch400The cursor was issued for a different combination of filters.
cursor_order_mismatch400The cursor was issued for a different order.
daily_quota_exceeded429The daily allowance is spent. With a key it belongs to the organization, not the key.
email_not_verified403The account's email address is not verified, so it cannot manage an organization.
endpoint_not_found404No endpoint exists at this path.
game_not_found404No game has this code.
image_not_available404This card has no image.
internal_error500Something failed on our side.
invalid_api_key401The key is not valid: it was revoked, it expired or it was never issued.
invalid_authorization_header401The Authorization header is not Bearer <key> with a key issued by Rarity. An empty Bearer counts.
invalid_bulk_type400The bulk type starts with something other than a letter or has characters other than lowercase letters, digits and underscores.
invalid_card_id400The card id is longer than an id can be.
invalid_content_type400The request body is not declared as JSON.
invalid_cursor400The cursor is too long, or it cannot be decoded.
invalid_filter_value400A filter has an empty value, a value that is too long, or control characters.
invalid_format400format is neither json nor image.
invalid_invitation400An invitation needs a valid email address and the role owner or member.
invalid_json400The request body is not valid JSON.
invalid_key_name400A key needs a name of 1 to 64 characters.
invalid_limit400limit is not an integer.
invalid_order400order is not one of the published orderings.
invalid_query400q could not be read.
invalid_request_body400The request body does not match the published schema.
invalid_role400A member's role is owner or member.
invalid_since400The since cursor is too long.
invalid_terms_version400This is not the current version of the terms.
invalid_webhook_url400The webhook URL is not an absolute https URL on a public host.
invitation_limit_reached429The organization has sent too many invitations.
invitation_not_found404There is no pending invitation with this id for this email address.
key_limit_reached409The organization already has the maximum number of active live keys.
key_not_found404This organization has no such key.
key_not_rotatable409Only an active live key with no expiry can be rotated.
last_owner409An organization cannot be left without an owner.
member_not_found404This organization has no such member.
method_not_allowed405This endpoint exists but does not serve this method.
missing_parameter400A required query parameter is missing.
not_signed_in401The dashboard needs a session.
organization_disabled403This organization is disabled, so it cannot be changed.
organization_not_found404You are not a member of an organization with this id.
origin_not_allowed403The dashboard accepts writes only from the site.
owner_required403Only an owner can do this.
rate_limit_exceeded429The per-minute allowance is spent.
repeated_parameter400A parameter that takes one value was sent more than once.
terms_not_accepted403The current terms have not been accepted, so keys cannot be managed yet.
too_many_values400A repeatable parameter has more values than the maximum.
unknown_event_type400Rarity does not emit this event.
unknown_parameter400This endpoint does not take this query parameter.
user_agent_not_allowed400The User-Agent is a library's default, such as curl/8.5.0.
user_agent_required400The request has no User-Agent header.
webhook_backend_unavailable503The webhook backend cannot be reached. Nothing was changed.
webhook_limit_reached400The account holds the maximum number of webhook endpoints.
webhook_not_found404This account has no webhook with this id.