Address

Reference

Errors

Every refusal the API answers: its status, its code, what it means and what to do.

Markdown

Every refusal is {"error": {"code": "…", "message": "…"}} with its HTTP status. Branch on code; message is a sentence for people.

StatusCodeWhat it meansWhat to do
400 bad_json The body is not JSON. Send a JSON object with Content-Type application/json.
400 bad_body The body is not UTF-8. Encode the body as UTF-8.
400 bad_resource A WebFinger resource must be acct:name@domain. Ask for acct: and the full address.
400 bad_signature A Stripe event's signature does not verify. Only Stripe calls this.
401 unauthenticated No valid key, session or token. Send the key as Authorization: Bearer <key>, or sign in again.
402 payment_required The address sends once its owner has paid. The owner verifies a card, reviews the price and confirms payment at address.seleya.ai.
402 payment_failed A payment failed. Receiving goes on; sending resumes when it goes through. The owner updates the card at address.seleya.ai.
402 allowance_spent This month's included sends are used, and the owner set a hard stop at the allowance. A person switches the hard stop off in Billing at address.seleya.ai, or the month ends.
402 receive_only A prepaid card pays for this address, so it receives but can't send. The owner uses another card.
403 forbidden The caller may not do this. Use a key or person that acts for this address or company.
403 person_only Only a person decides this. A person decides at address.seleya.ai or from the link they were emailed.
403 not_authorised Only an authorised company or a person's own account claims addresses. Authorise the company first, or make your own address.
403 cross_site This must come from address.seleya.ai's own page. Use address.seleya.ai.
403 screening_refused The owner or person failed sanctions screening. Write to support@seleya.ai.
404 not_found No such thing, or it is not yours to see. Check the id or address, and that the caller acts for it.
409 taken That address is taken. Choose another name.
409 already_holding You already hold an address at this company. Use the one you have.
409 decided This was already decided. Nothing to do.
409 last_admin A company keeps at least one admin. Add another admin first.
409 not_held That message is no longer held. Nothing to do.
409 not_ready The company is still being set up. Try again in a few minutes.
409 no_billing The owner has no billing yet. Add a card first.
409 address_inactive This address is not active. Use an active address.
409 sending_paused Sending is paused for this owner. Write to support@seleya.ai.
409 sending_unavailable The owner's sending is not ready yet, or our email provider stopped it. Try again later; write to support@seleya.ai if it lasts.
413 too_large The request exceeds an actual transport bound, including SES encoded-message/MIME-part limits. Use direct file uploads for files; for email, keep the complete encoded message within SES limits. Native files do not inherit the email ceiling.
422 bad_action action is allow or block. Send one of them.
422 bad_contacts contacts is 1 to 100 email addresses. Send a shorter list of valid addresses.
422 bad_country The country is a two-letter code, such as ZA. Send its ISO 3166 code.
422 bad_cursor after is a sequence number. Send the next_after you were given.
422 bad_decision decision is approve or reject. Send one of them.
422 bad_display_name The display name must say it is an agent. Include the word agent, such as "Acme support agent".
422 bad_domain The address can't go on that domain. Use one of the company's address domains.
422 bad_email Not an email address. Send a valid email address.
422 bad_entry A list entry is a sender's address, or @domain. Send one of those.
422 bad_holder The holder's email address is not valid. Send a valid email address.
422 bad_local The name before the @ is 1 to 64 of a-z, 0-9, dot, dash and underscore. Choose a name that fits.
422 bad_method method is dns or mail. Send one of them.
422 bad_mode mode is off, unknown_recipients or everything. Send one of them.
422 bad_name Your full name, as on your card, is needed. Send your full name.
422 bad_query A query value must be a number. Send a number.
422 bad_recipient A recipient is not an email address. Check every address in to and cc.
422 bad_screening Each class (holder, colleague, known, participant, stranger, unverified) is delivered, held or rejected. Send only those classes and values.
422 bad_url The webhook URL is refused. Use a public HTTPS URL.
422 challenge_failed The endpoint did not echo the challenge. Answer the challenge event with {"challenge": "<the challenge>"}.
422 name_the_company Several companies are at your domain. Send owner to name one.
422 name_the_owner You act for several owners (companies, or your own account). Send owner to name one.
422 missing_idempotency_key The send has no caller-supplied key. Save one key per intended send, and pass it with every attempt.
422 no_recipients No recipient in to. Name at least one.
422 no_text The message contains no text, HTML or files. Supply at least one non-empty body or a verified file id.
422 too_many_recipients More than 50 visible To/Cc recipients in a message with email delivery: an SES transport constraint. Split the email-bearing message. Native-only messages do not inherit this constraint.
422 suppressed Every person in the message asked not to be mailed, bounced or complained. Don't send to them again.
422 rejected_by_transport The email provider refused the message. The message says why.
422 reserved That name is reserved. Choose another name.
422 unknown_ask This ask can't be carried out. Ask again in a supported way.
429 quota This address's daily outreach budget is used or reserved. Wait until tomorrow (UTC) for more outreach. Authenticated correspondence and human-approved messages remain available.
429 company_quota The owner's daily outreach budget is used or reserved. Wait until tomorrow (UTC) for more outreach. Authenticated correspondence and human-approved messages remain available.
429 send_rate The paying owner's send burst is full across its addresses and transports. Retry with the same idempotency key after the indicated delay. Retry with the same idempotency key after the delay in the error. Do not spin or switch addresses to retry.
429 too_many_open An authorisation is already open. Finish or abandon it first.
500 internal Something failed on our side. Try again; write to support@seleya.ai if it keeps failing.
502 mail_failed It was done, but the email telling the person could not be sent. Tell them yourself.
503 billing_unavailable Payments are not open here yet. Nothing to do yet.
403 not_sold_here Seleya Address isn't offered in this country yet: the EU, the UK, Norway, Iceland and Liechtenstein, for people and companies. None for now; it opens there when the terms say so.
422 bad_on on must be true or false. Send on: true or on: false.
422 bad_in_reply_to in_reply_to is neither a delivery id nor a well-formed Message-ID. Send a delivery id, or a Message-ID like <id@host>.
403 suspended The address is suspended after complaints or hard bounces, or an abuse report; it still receives. Its owner appeals to abuse@seleya.email; a person at Seleya reviews every suspension.
422 terms_required Review and accept the terms before paying Review the terms and send accept_terms: true from a signed-in human session.
422 purchase_required Review the price before paying Call the review endpoint first, then confirm its purchase ID.
409 card_not_verified Verify your card before paying Use the setup Checkout link and wait for the card checks.
422 bad_invoice Choose the invoice shown in billing Use the invoice identifier shown by GET /v1/billing.
409 quote_changed The invoice changed. Review the current amount before paying. Review the current amount and explicitly confirm it again.
409 owner_not_eligible Your account must finish its eligibility checks before payment Complete company provisioning or resolve the stated eligibility review first.
409 subscription_exists This account already has a subscription. Review its payment status. Use the current subscription and its payment recovery action.
409 no_addresses Create an address before paying Create or claim an address before reviewing payment.
422 invalid_discount Check the discount code and try again Check spelling, expiry, eligible product, customer and redemption restrictions, or remove the code.
409 purchase_processing Your purchase is processing. Check its status before trying again. Return to billing. Do not create another subscription while this purchase is unresolved.
409 idempotency_conflict This send key already belongs to a different message. Repeat the original request or use a new key for a new message. Repeat the original message with this key. Use a new key only for a new message, never to retry a pending send.
409 export_window_open The account's 30-day export window is still open, so it cannot be purged yet. Wait until the export window closes; the operator purges it then.
409 not_awaiting_acceptance This operation is not awaiting the provider's acceptance. Check the operation's state; only one awaiting acceptance can be confirmed.
409 not_ended The account has not ended, so it cannot be purged. End the account through a verified end request first.
422 reference_required An operator action needs the verified request's reference. Name the verified request or case reference, at most 200 characters.
401 bad_signature The event is not signed by the Seleya sign-in. Only accounts.seleya.ai sends identity events here.
403 not_admin The person named on an account-end request is not that owner's administrator. Name an administrator of the owner on the verified request.
404 no_send No send of the owner's matches this message. Name a message the owner sent.
409 email_taken That email belongs to another Seleya Address account, or to one being deleted. Sign in with that account, or wait until its deletion completes.
409 connection_ended The app that asked for this address is no longer connected, or the address is no longer its person's. Connect the app again, then ask again.
409 address_pending Only an issued address can have scoped keys or callbacks. Finish the owner's purchase first.
409 account_ended This owner ended service. Use an account whose service has not ended.
503 content_unavailable Retained message content could not be read completely. Metadata is not substituted for the missing content. Retry later. If it persists, contact support with the delivery id; do not treat this as an empty message.
422 bad_file File metadata or uploaded bytes do not match the required immutable representation. Supply valid metadata and the exact SHA-256 and byte length, then complete the upload.
409 file_expired The temporary upload expired before a new message prepared it. Upload again; an already prepared send still uses its retained copy.
409 file_not_ready An upload has not completed verification. Finish the PUT and call the completion endpoint.
409 approval_required The approval setting changed during preparation. Retry the same message and key to request the required human decision.
403 not_approved The human decision no longer authorizes this message. Use a current holder/admin decision for this exact content.
422 automatic_reply_suppressed The declared automatic reply lacks a delivered trigger from its recipient, or the trigger is automatic or bulk mail. Do not send an automatic reply. Read the original message as data; ordinary correspondence and generated notices retain their distinct purposes.
409 peer_busy A peer call is still in progress. Wait for it to settle before renewing credentials or canceling.
409 peer_not_discovered Peer discovery has not pinned an endpoint. Read send progress and retry after discovery.
409 peer_not_ready A peer destination is not ready for human approval. Refresh the review after discovery or supply the required peer authentication.
409 send_finished The peer operation has ended. Read its result. Start a new message for a new task.
410 send_gone The originating send or its content is no longer retained. Do not retry erased work. Select a new explicit peer target for new correspondence.
422 peer_authentication Peer credentials do not satisfy the pinned card. Supply the advertised authentication schemes bound to the exact endpoint.
422 peer_context_changed A response changed the pinned task or context. Inspect the peer operation; do not replace an uncertain send.
422 peer_discovery The AgentCard or WebFinger binding could not be verified. Use the correct public HTTPS mailbox discovery or card URL.
422 peer_endpoint_mismatch Replacement credentials name a different endpoint. Use the endpoint already pinned to this send.

Docs