v1 is deprecated. Please move to API v2 (recommended). v1 keeps working until March 31, 2027, then it stops. See Moving from v1.

Get started

Errors

A failed call answers with an HTTP status of 400 or higher and a JSON body. Check the status first, then the stable code.

Two error shapes

Most errors (sign-in, payment, rate limit, server errors) use this shape. error is a stable code you can check in your code, message is text for people:

Code in error
{
  "message": "Your card was declined.",
  "isAuthError": false,
  "error": "card_declined",
  "requestId": "8f2c1e9a-4b7d-4e2a-9c3f-1a2b3c4d5e6f"
}

Some input checks keep the shape of our first API: error and message both hold the text, and the stable code, when there is one, is in code:

Text in error
{
  "error": "Invalid input: domains array contains duplicates",
  "message": "Invalid input: domains array contains duplicates",
  "isAuthError": false,
  "code": "invalid_request",
  "requestId": "8f2c1e9a-4b7d-4e2a-9c3f-1a2b3c4d5e6f"
}

In this shape message is usually the same text as error, but not always (for example on "Some domains are not available"). Some of these answers carry extra fields, like unavailableDomains, or success and link on NO_PAYMENT_METHOD.

A few older errors use the first shape but put text in error and have no stable code, for example 404 {"error": "Order not found", "message": "Order not found", ...}. For those, check the HTTP status.

A request with a NUL character (\u0000) in the path, query or body is refused with 400 {"error": "invalid_request", "message": "Text must not contain NUL characters."}, with no requestId in the body (it is still in the x-request-id header).

  • isAuthError is true when the token is the problem.
  • details (only on some errors) holds extra facts, for example the limit on rate_limited.
  • Each endpoint page lists the errors that route can give, with an example of each.

Don't match on message texts: they can change. Use the HTTP status and the code (error in the first shape, code in the second).

requestId

Every error body has a requestId, and every answer, also a good one, sends the same value in the x-request-id header. Save it in your logs. When you ask support about a call, send the requestId and we can find it.

HTTP statuses

StatusMeaningCodes you can get (examples)
400The request is not valid. Fix it before you send it again.invalid_request, organization_required, invalid_idempotency_key, NO_PAYMENT_METHOD, coupon_not_found, invalid_order, domains_required, too_many_domains, tag_too_long
401The token is missing or wrong, or can't use this workspace.missing_token, invalid_token, token_expired, token_revoked, wrong_api_version, organization_not_allowed
402The payment did not go through. Nothing was charged.card_declined, card_requires_action, payment_failed
403The token or its owner may not do this.missing_scope, not_allowed, no_access, account_blocked, test_mode_unavailable, not_available_for_account
404Not found.route_not_found, order_not_found, domain_not_found
409Not possible right now: something else is still running for this order or key, or the subscription is not ready for it (order form not sent, being cancelled). Wait or fix that, then send it again.idempotency_in_progress, busy, order_form_pending, cancelling
429Too many calls, or the server is busy. Wait for Retry-After (when it is sent).rate_limited, too_many_failed_attempts, busy
500Something went wrong on our side.server_error, needs_team, order_form_failed, payment_unclear
501Buying with a saved card is not available right now.not_available
503The server is busy, or payments are off for a moment. Try again in a few seconds (see Retry-After, when it is sent).busy, payments_unavailable

After a purchase error

  • 402: nothing was charged. Fix the card in the portal, then try again with a new Idempotency-Key.
  • 500 needs_team: you may have been charged. Our team has been told and will finish or refund the order. Do not retry with a new Idempotency-Key.
  • 500 order_form_failed: you paid and the order exists (details.order_id), but its domains and mailboxes could not be saved. Our team has been told. You can also finish the order form in the portal.
  • 500 server_error or no answer at all: send the same call again with the same Idempotency-Key. You get the first result, and you are never charged twice.