{"openapi":"3.1.0","info":{"title":"InfraSuite API","version":"1.0.0","description":"Add and delete domains, follow their progress, change where a domain redirects, label domains with tags, download mailbox logins, and check email lists with the email verifier.\n\n## Authentication\n\nSend your API key as a bearer token: `Authorization: Bearer <key>`. Every endpoint needs one except this document.\n\nYou create your key in the customer portal, on the AI Agents & API page. The account owner and each team member have their own key, and every key works on the same account. The key is shown once, when it is created, so copy it then. Each person has one active key: creating a new key replaces their old one, and revoking a key removes it. A replaced or revoked key stops working immediately, and so does the key of a team member who is removed from the account.\n\n## Domain ids\n\nA domain is identified by an id of the form `dom_` followed by 32 lowercase hexadecimal characters. Treat it as an opaque string. An id that is malformed, does not exist or belongs to another account gets the same 404.\n\n## Nameservers\n\nA new domain waits for you to point its nameservers, the ones in `nameservers`, at the registrar that holds it. If your domains are spread over several registrars, you can take that work off your hands: put each registrar's API key and your InfraSuite API key together in the `.env` (or `.env.local`) file of a project, and have your AI assistant or script read your domains from this API and set the nameservers at the right registrar. Keep that file out of version control, and don't share it.\n\n## Email verifier\n\nStart a list with your addresses as JSON or as a CSV file, then read the list until `finished_at` is set (its `status` is then `completed` or `failed`), and read the results as JSON pages or download them as a CSV. Each unique address uses one credit, set aside when the list starts. Results the mail server does not answer clearly (`unknown`) and throwaway addresses use none, and those credits come back when the list finishes. Credits are added in the customer portal. Results are kept for 60 days. The email verifier is available to your account when it is available in your customer portal; otherwise its endpoints answer 404.\n\n## Errors\n\nEvery error is `application/problem+json` (RFC 9457) with `type`, `title`, `status` and a stable `code`, and usually a `detail` that says what to fix. Branch on `code`, not on the text. A 429 carries a `Retry-After` header with the number of seconds to wait. If the API is not available, every endpoint answers 404 `not_found`.\n\n## Rate limits\n\nLimits apply per key, per minute, and are shared by the endpoints in each group:\n\n- Reads of your account, your tag list, your email verifier credits and one email verifier list: 120 requests a minute.\n- Domain reads (listing domains and getting one), and listing email verifier lists and reading their results: 30 requests a minute.\n- All changes (adding and deleting domains, redirects and tags, and starting email verifier lists): 20 requests a minute.\n- Credential downloads (one domain or several): 30 requests a minute.\n\nOver the limit, the answer is 429 with `Retry-After`.\n\n## Conventions\n\nRequest and response bodies are JSON, except for downloads. Timestamps are ISO 8601 in UTC. No answer is cached, except this document."},"servers":[{"url":"https://app.infrasuite.io/api"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account","description":"Your domain allowance."},{"name":"Domains","description":"Add domains, list them, read one, change its redirect and delete domains."},{"name":"Tags","description":"Labels you keep for yourself. A tag never changes a domain."},{"name":"Credentials","description":"Download mailbox logins."},{"name":"Email verifier","description":"Check email lists: your credits, your lists and their results."},{"name":"Reference","description":"This document."}],"paths":{"/v1/account":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"Get your domain allowance","description":"How many domains your plan allows, how many are counted against it and how many you can still add. `remaining` is never below 0, and is 0 while the account is suspended. Reads of your account, your tag list, your email verifier credits and one email verifier list share a limit of 120 requests a minute per key.","responses":{"200":{"description":"Your allowance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"},"example":{"allowance":20,"used":7,"remaining":13,"suspended":false}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/domains":{"get":{"operationId":"listDomains","tags":["Domains"],"summary":"List your domains","description":"Returns your domains, newest first, one page at a time. Ask for the next page by sending `next_cursor` back as `cursor`, and stop when `next_cursor` is `null`. Use `fields` to receive only the fields you need. Domain reads (listing domains and getting one), and listing email verifier lists and reading their results share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"A page of domains.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPage"},"example":{"data":[{"id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","domain":"example-one.com","status":"completed","stage":{"label":"Completed","detail":"Your mailbox credentials are ready to download.","action_required":false,"credentials_ready":true},"readiness":"ready","nameservers":["ns1.example.net","ns2.example.net"],"nameserver_deadline":null,"mailbox_count":25,"user_count":25,"redirect_type":"REGULAR","redirect_url":"https://www.example.com","failure_reason":null,"tags":[{"id":"cm2k9x1y40001l5q8h3j7d0ab","name":"Q4 campaign","color":"sky"}],"created_at":"2026-10-14T08:00:00.000Z"}],"next_cursor":null}}}},"400":{"description":"A parameter is not valid: `limit` is not a whole number from 1 to 200, `fields` names an unknown field, or `cursor` is not valid or has expired. If a cursor has expired, start the listing again.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]},"example":{"type":"about:blank","title":"Validation failed","status":400,"code":"validation_failed","detail":"limit must be a whole number from 1 to 200."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"post":{"operationId":"addDomains","tags":["Domains"],"summary":"Add domains","description":"Adds up to 10 domains in one request. The response has one result per domain, in the sequence you sent them, and each domain succeeds or fails on its own. A large request can take up to two minutes. Domains it did not get to in time come back `skipped`; send them again in a new request with a new `Idempotency-Key`.\n\nCheck your allowance first with `GET /v1/account`. A request with more domains than you have room for adds none of them (`over_allowance`): send fewer.\n\nA few problems end the batch early, and every domain after them is `skipped`: an account that isn't active (`account_suspended`) or a temporary problem on our side (`temporarily_unavailable`). A domain that is already set up on an account (`domain_taken`), or one that is refused as invalid (`validation_failed`), fails on its own and the rest carry on.\n\nThe status says how the batch went. 201: every domain was added. 207: some were. 422: none was confirmed as added; read each result. A result with the status `created_unconfirmed` or `internal_error` may still exist, so check your domain list before sending it again. `retryable` is `true` only when nothing was done for that domain, so it is safe to send again in a new request with a new `Idempotency-Key`.\n\n**Idempotency.** Every request needs an `Idempotency-Key` header: a string you choose, 1 to 255 printable characters, such as a UUID. Sending the same key with the same body again within 24 hours returns the first answer unchanged, with `Idempotent-Replayed: true`, and adds nothing. The same key with a different body is refused with 422 `idempotency_conflict`. To retry domains that failed, use a new key.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainsRequest"},"example":{"domains":[{"domain":"example-one.com","names":[{"first_name":"Ann","last_name":"Lee"}],"redirect_type":"REGULAR","redirect_url":"https://www.example.com","user_count":25}]}}}},"responses":{"201":{"description":"Every domain in the request was added.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResults"},"example":{"results":[{"domain":"example-one.com","status":"created","id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f"}]}}}},"207":{"description":"At least one domain was added and not all. Read each result.","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResults"},"example":{"results":[{"domain":"example-one.com","status":"created","id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f"},{"domain":"example-two.com","status":"failed","error":{"code":"domain_taken","detail":"example-two.com is already set up on an account.","retryable":false}}]}}}},"400":{"description":"The request is not valid, and nothing was added. The `Idempotency-Key` header is missing or not valid (`idempotency_key_required`); or (`validation_failed`) the body is not valid JSON or does not match the schema (with an `errors` list; this includes a domain name that is not a valid domain name, and a sender name with nothing left once characters other than letters and numbers are removed), the same domain appears twice, or a domain with `redirect_type` `REGULAR` or `MASKED` has no `redirect_url` or one that can't be used. The `detail` names the first such domain.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ValidationProblem"},{"type":"object","properties":{"code":{"type":"string","enum":["idempotency_key_required","validation_failed"]}}}]},"example":{"type":"about:blank","title":"Validation failed","status":400,"code":"validation_failed","detail":"example-one.com: the redirect address isn't valid. Use a full http:// or https:// address."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"A request with this `Idempotency-Key` is still being processed, or the outcome of an earlier request with it is unknown. Check your domain list before sending these domains again, then use a new key.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["idempotency_conflict"]}}}]},"example":{"type":"about:blank","title":"Idempotency conflict","status":409,"code":"idempotency_conflict","detail":"A request with this Idempotency-Key is still being processed. Retry shortly."}}}},"413":{"description":"The request body is too large.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"422":{"description":"No result has the status `created`, so no domain was confirmed as added (an `application/json` body with the results; read each one). Or the `Idempotency-Key` was already used with a different body (an `application/problem+json` body with code `idempotency_conflict`).","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResults"},"example":{"results":[{"domain":"example-one.com","status":"failed","error":{"code":"over_allowance","detail":"This request is more than your remaining domain allowance.","retryable":false}},{"domain":"example-two.com","status":"skipped","error":{"code":"batch_stopped","detail":"An earlier domain in this request stopped the batch."}}]}},"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["idempotency_conflict"]}}}]},"example":{"type":"about:blank","title":"Idempotency conflict","status":422,"code":"idempotency_conflict","detail":"This Idempotency-Key was already used with a different request body."}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/domains/credentials":{"get":{"operationId":"getDomainsCredentials","tags":["Credentials"],"summary":"Download the logins for several domains","description":"Downloads the mailbox logins for up to 10 domains in one call, as one merged CSV (`format=csv`, the default) or a zip with one CSV per domain (`format=zip`). The CSV has the columns `name`, `email` and `password`. The files hold real mailbox passwords: treat them as secrets.\n\nA domain whose logins can't be returned is left out, and the answer is still 200: the left-out domains are listed in the `X-Failed-Domains` header, and in a file called `_failures.txt` inside a zip. If none can be returned, the answer is an error that lists them in `failures`: 409 when every domain is still being set up, 429 when downloads are busy, 502 otherwise.\n\nLogins become available after a warm-up period. A domain's `stage.credentials_ready` is `true` when they can be downloaded. If any id is not one of your domains, the whole call is a 404 and nothing is downloaded.\n\nCredential downloads (one domain or several) share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/DomainIds"},{"name":"format","in":"query","required":false,"description":"`csv` for one merged CSV, `zip` for one CSV per domain.","schema":{"type":"string","enum":["csv","zip"],"default":"csv"}}],"responses":{"200":{"description":"The logins. When some domains were left out, `X-Failed-Domains` says which and why.","headers":{"Content-Disposition":{"description":"`attachment`, with the file name `all-infrasuite-mailboxes.csv` or `all-infrasuite-mailboxes.zip`.","schema":{"type":"string"}},"X-Failed-Domains":{"$ref":"#/components/headers/FailedDomains"}},"content":{"text/csv":{"schema":{"type":"string"},"example":"name,email,password\nAnn Lee,annlee.a@example-one.com,<password>\n"},"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"`ids` is missing or names more than the limit, or `format` is not `csv` or `zip`.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"At least one id is not one of your domains (or is malformed). Nothing was downloaded.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"409":{"description":"Every domain is still being set up, so no logins can be returned yet. `failures` lists them.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CredentialsProblem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_ready"]}}}]}}}},"429":{"description":"Too many requests, another batch download for this account is still running, or downloads are busy right now. When downloads are busy and none of the logins could be returned, `failures` lists the domains. Wait for the number of seconds in `Retry-After`, then try again.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CredentialsProblem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"]}}}]}}}},"502":{"description":"No logins could be fetched just now. `failures` lists the domains. Contact support if this keeps happening.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CredentialsProblem"},{"type":"object","properties":{"code":{"type":"string","enum":["credentials_unavailable"]}}}]}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/domains/{id}":{"get":{"operationId":"getDomain","tags":["Domains"],"summary":"Get one domain","description":"Returns one domain with its current stage. Use `fields` to receive only the fields you need. Domain reads (listing domains and getting one), and listing email verifier lists and reading their results share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/DomainId"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"The domain.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"},"example":{"id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","domain":"example-one.com","status":"completed","stage":{"label":"Completed","detail":"Your mailbox credentials are ready to download.","action_required":false,"credentials_ready":true},"readiness":"ready","nameservers":["ns1.example.net","ns2.example.net"],"nameserver_deadline":null,"mailbox_count":25,"user_count":25,"redirect_type":"REGULAR","redirect_url":"https://www.example.com","failure_reason":null,"tags":[{"id":"cm2k9x1y40001l5q8h3j7d0ab","name":"Q4 campaign","color":"sky"}],"created_at":"2026-10-14T08:00:00.000Z"}}}},"400":{"description":"`fields` names a field that does not exist.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such domain on your account. An id that is malformed, does not exist or belongs to another account gets this answer.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]},"example":{"type":"about:blank","title":"Not found","status":404,"code":"not_found"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"delete":{"operationId":"removeDomain","tags":["Domains"],"summary":"Delete a domain","description":"Deleting a domain is permanent. Every mailbox on it is removed with its logins and its mail, and adding the domain again does not bring them back. The domain leaves your domain list at once and its mailboxes are removed in the background over the next few minutes; the room it took in your allowance is free again.\n\nA deleted domain can't be added again for at least 90 seconds, and not until its old mailboxes are fully removed if that takes longer (usually a couple of minutes). Adding it sooner fails for that domain with `temporarily_unavailable` and `retryable` `true`.\n\nTo delete several domains in one request, use `POST /v1/domains/delete`.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/DomainId"}],"responses":{"200":{"description":"The domain was deleted. Its mailboxes are being removed in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeleted"},"example":{"id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","domain":"example-one.com","deleted":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"description":"The account can't use the API, the person the key belongs to does not have permission to delete domains, or this domain can't be deleted through the API. Nothing was deleted. The `detail` says which and what to do.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"]}}}]},"example":{"type":"about:blank","title":"Forbidden","status":403,"code":"forbidden","detail":"This domain can't be deleted. Contact support if something is wrong with it."}}}},"404":{"description":"No such domain on your account. An id that is malformed, does not exist, belongs to another account or was already deleted gets this answer.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"The deletion could not be finished or confirmed. The `detail` says whether the domain's mailboxes are already being removed. Do not send the request again; contact support.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["internal_error"]}}}]}}}},"503":{"description":"A temporary problem on our side. Nothing was deleted. Try again shortly.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["temporarily_unavailable"]}}}]}}}}}}},"/v1/domains/delete":{"post":{"operationId":"removeDomains","tags":["Domains"],"summary":"Delete several domains","description":"Deletes up to 25 of your domains in one request, one after another. Each domain is deleted or refused on its own, exactly as `DELETE /v1/domains/{id}` would answer it, and the response has one result per id, in the sequence you sent them. A request that is still running after 90 seconds starts no new deletions: the ids it did not reach come back `skipped` and nothing was done to them.\n\nDeleting a domain is permanent. Every mailbox on it is removed with its logins and its mail, and adding the domain again does not bring them back. The domain leaves your domain list at once and its mailboxes are removed in the background over the next few minutes; the room it took in your allowance is free again.\n\nA deleted domain can't be added again for at least 90 seconds, and not until its old mailboxes are fully removed if that takes longer (usually a couple of minutes). Adding it sooner fails for that domain with `temporarily_unavailable` and `retryable` `true`.\n\nThe status says how the request went. 200: every domain was deleted. 207: at least one was not; read each result. A result's `retryable` is `true` only when nothing was deleted, so it is safe to send that id again.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDomainsRequest"},"example":{"ids":["dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5"]}}}},"responses":{"200":{"description":"Every domain in the request was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResults"},"example":{"results":[{"id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","status":"deleted","domain":"example-one.com"},{"id":"dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5","status":"deleted","domain":"example-two.com"}]}}}},"207":{"description":"At least one domain was not deleted. Read each result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResults"},"example":{"results":[{"id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","status":"deleted","domain":"example-one.com"},{"id":"dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5","status":"failed","error":{"code":"not_found","detail":"No such domain on your account.","retryable":false}}]}}}},"400":{"description":"The body is not valid JSON, does not match the schema (`ids` holds 1 to 25 domain ids and nothing else is accepted), or the same id appears twice. Nothing was deleted.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]},"example":{"type":"about:blank","title":"Validation failed","status":400,"code":"validation_failed","detail":"The same id appears more than once in this request."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"413":{"description":"The request body is too large. Nothing was deleted.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/domains/{id}/redirect":{"patch":{"operationId":"setDomainRedirect","tags":["Domains"],"summary":"Change a domain's redirect","description":"Sets where visitors who type the domain are sent. `NONE` shows a default page and ignores any address. `REGULAR` forwards visitors with a standard 301. `MASKED` loads your site while keeping this domain in the address bar. For `REGULAR` and `MASKED`, `redirect_url` is required and must be a full web address (a bare host such as `example.com` gets `https://` in front). The answer carries the address that was saved.\n\nA 502 means the change may not have been applied: check the domain with `GET /v1/domains/{id}`, then send the same request again.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/DomainId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectRequest"},"example":{"redirect_type":"REGULAR","redirect_url":"https://www.example.com"}}}},"responses":{"200":{"description":"The redirect was changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectResult"},"example":{"id":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","redirect_type":"REGULAR","redirect_url":"https://www.example.com"}}}},"400":{"description":"The body is not valid JSON, does not match the schema, has no `redirect_url` for `REGULAR` or `MASKED`, or the address can't be used as a redirect.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]},"example":{"type":"about:blank","title":"Validation failed","status":400,"code":"validation_failed","detail":"redirect_url is required when redirect_type is REGULAR or MASKED."}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such domain on your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"413":{"description":"The request body is too large.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"This domain's redirect can't be changed because of a fault on our side. Contact support if this keeps happening.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["internal_error"]}}}]}}}},"502":{"description":"The redirect may not have been changed. Check the domain, then try the same request again shortly.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["temporarily_unavailable"]}}}]}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/domains/{id}/credentials.csv":{"get":{"operationId":"getDomainCredentials","tags":["Credentials"],"summary":"Download the logins for one domain","description":"Downloads the mailbox logins for one domain as a CSV with the columns `name`, `email` and `password`. The file holds real mailbox passwords: treat it as a secret.\n\nLogins become available after a warm-up period. Until then the answer is 409 `not_ready`, with `Retry-After` set to an hour. A domain's `stage.credentials_ready` is `true` when they can be downloaded.\n\nCredential downloads (one domain or several) share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/DomainId"}],"responses":{"200":{"description":"The logins.","headers":{"Content-Disposition":{"description":"`attachment`, with a file name made from the domain, such as `example-one-com-mailboxes.csv`.","schema":{"type":"string"}}},"content":{"text/csv":{"schema":{"type":"string"},"example":"name,email,password\nAnn Lee,annlee.a@example-one.com,<password>\n"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such domain on your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"409":{"description":"The domain is still being set up. Logins are available after the warm-up period; try again after the time in `Retry-After`.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_ready"]}}}]},"example":{"type":"about:blank","title":"Not ready","status":409,"code":"not_ready","detail":"example-one.com is still being set up. Credentials are available after the warm-up period."}}}},"429":{"description":"Too many requests, or downloads are busy right now. Wait for the number of seconds in `Retry-After`, then try again.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"]}}}]}}}},"502":{"description":"The logins could not be fetched just now. Contact support if this keeps happening.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["credentials_unavailable"]}}}]}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/domains/{id}/tags":{"put":{"operationId":"setDomainTags","tags":["Tags"],"summary":"Set the tags on a domain","description":"Replaces the tags on one domain with exactly the tags you list. An empty list removes all your tags from the domain. Duplicates are ignored. Every tag must be one of yours, or the whole call is a 404 and nothing changes. To add or remove one tag across many domains, use `POST /v1/tags/assign`.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/DomainId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTagsRequest"},"example":{"tag_ids":["cm2k9x1y40001l5q8h3j7d0ab"]}}}},"responses":{"200":{"description":"The domain's tags after the change, sorted by name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTags"},"example":{"tags":[{"id":"cm2k9x1y40001l5q8h3j7d0ab","name":"Q4 campaign","color":"sky"}]}}}},"400":{"description":"The body is not valid JSON, `tag_ids` is not a list of tag ids, or it lists more than 50 tags.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such domain on your account, or a listed tag is not one of yours.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"413":{"description":"The request body is too large.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/tags":{"get":{"operationId":"listTags","tags":["Tags"],"summary":"List your tags","description":"Returns all your tags, sorted by name, each with the number of your domains that carry it. Reads of your account, your tag list, your email verifier credits and one email verifier list share a limit of 120 requests a minute per key.","responses":{"200":{"description":"Your tags.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagList"},"example":{"data":[{"id":"cm2k9x1y40001l5q8h3j7d0ab","name":"Q4 campaign","color":"sky","domain_count":3}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"post":{"operationId":"createTag","tags":["Tags"],"summary":"Create a tag","description":"Creates a tag. Tag names are not case-sensitive: you can't have both `Q4` and `q4`. You can have up to 50 tags. All changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreateRequest"},"example":{"name":"Q4 campaign","color":"sky"}}}},"responses":{"201":{"description":"The tag was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"},"example":{"id":"cm2k9x1y40001l5q8h3j7d0ab","name":"Q4 campaign","color":"sky","domain_count":0}}}},"400":{"description":"The body is not valid JSON, the name is empty or longer than 24 characters, the colour is not one of the palette, or you already have 50 tags.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"You already have a tag with that name.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["name_taken"]}}}]},"example":{"type":"about:blank","title":"Name already taken","status":409,"code":"name_taken","detail":"You already have a tag with that name."}}}},"413":{"description":"The request body is too large.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/tags/assign":{"post":{"operationId":"assignTag","tags":["Tags"],"summary":"Add or remove a tag across many domains","description":"Adds one tag to, or removes it from, up to 200 domains at once. Adding a tag a domain already has, or removing one it doesn't have, is not an error. If the tag or any domain is not yours, the whole call is a 404 and nothing changes. `count` is the number of distinct domains you named.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagAssignRequest"},"example":{"action":"add","tag_id":"cm2k9x1y40001l5q8h3j7d0ab","domain_ids":["dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f","dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5"]}}}},"responses":{"200":{"description":"The change was made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagAssignResult"},"example":{"count":2}}}},"400":{"description":"The body is not valid JSON, `action` is not `add` or `remove`, `tag_id` is missing, or `domain_ids` is not a non-empty list of strings.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The tag, or at least one domain, is not one of yours. Nothing was changed.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"413":{"description":"The request body is too large, or it names more than 200 domains.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/tags/{id}":{"patch":{"operationId":"updateTag","tags":["Tags"],"summary":"Rename or recolour a tag","description":"Changes a tag's name, its colour or both. Send at least one. All changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/TagId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUpdateRequest"},"example":{"name":"Q4 launch","color":"emerald"}}}},"responses":{"200":{"description":"The tag after the change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRef"},"example":{"id":"cm2k9x1y40001l5q8h3j7d0ab","name":"Q4 launch","color":"emerald"}}}},"400":{"description":"The body is not valid JSON, it changes nothing, the name is empty or too long, or the colour is not one of the palette.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such tag among yours.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"409":{"description":"You already have a tag with that name.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["name_taken"]}}}]}}}},"413":{"description":"The request body is too large.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"delete":{"operationId":"deleteTag","tags":["Tags"],"summary":"Delete a tag","description":"Deletes the tag and removes it from every domain that carried it. This removes a label only: no domain is changed or deleted. All changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/TagId"}],"responses":{"200":{"description":"The tag was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagDeleted"},"example":{"ok":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such tag among yours.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/verifier/credits":{"get":{"operationId":"getVerifierCredits","tags":["Email verifier"],"summary":"Get your email verifier credits","description":"How many email verifier credits your account has left. Each unique address in a list uses one. Credits are added in the customer portal. Reads of your account, your tag list, your email verifier credits and one email verifier list share a limit of 120 requests a minute per key.","responses":{"200":{"description":"Your credits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifierCredits"},"example":{"credits":10396}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The email verifier is not available to your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/verifier/lists":{"get":{"operationId":"listVerifierLists","tags":["Email verifier"],"summary":"List your email verifier lists","description":"Returns your lists, newest first, one page at a time, including lists started in the customer portal. Ask for the next page by sending `next_cursor` back as `cursor`, and stop when `next_cursor` is `null`. Domain reads (listing domains and getting one), and listing email verifier lists and reading their results share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/ListLimit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"One page of lists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifierListPage"},"example":{"data":[{"id":"5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b","name":"Q4 leads","status":"completed","addresses":2500,"checked":2500,"results":{"valid":1840,"catch_all":410,"unknown":95,"invalid":155},"credits_used":2405,"credits_returned":95,"skipped_rows":12,"duplicate_rows":30,"created_at":"2026-11-20T15:00:00.000Z","finished_at":"2026-11-20T15:03:12.000Z","duration_seconds":192,"eta_seconds":null,"results_available":true,"results_available_until":"2027-01-19T15:03:12.000Z"}],"next_cursor":null}}}},"400":{"description":"`limit` or `cursor` is not valid.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The email verifier is not available to your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}},"post":{"operationId":"startVerifierList","tags":["Email verifier"],"summary":"Start a list","description":"Starts checking a list. Send the addresses in one of two ways:\n\n- `Content-Type: application/json`: `{ \"name\": \"...\", \"emails\": [...] }`, from 1 to 50000 addresses.\n- `Content-Type: text/csv`: the file itself, with `name` and, if needed, `email_column` in the query. The email column is found by its name or its contents when you leave it out. Your own columns are kept in the result file.\n\nEither way the body is at most 4 MB. Duplicate addresses and rows without a usable address are skipped and use no credit. Starting a list sets aside one credit per unique address; with too few credits the answer is 402 `insufficient_credits` and nothing is started. Read the list with its `id` until `finished_at` is set (its `status` is then `completed` or `failed`); you are also emailed when it finishes.\n\nAll changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/ListName"},{"$ref":"#/components/parameters/EmailColumn"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartVerifierListRequest"},"example":{"name":"Q4 leads","emails":["ann@example-one.com","bob@example-two.com"]}},"text/csv":{"schema":{"type":"string"},"example":"Name,Email\nAnn Lee,ann@example-one.com\n"}}},"responses":{"202":{"description":"The list was started (or, with the same `Idempotency-Key` again, the list that was started, as it is now).","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifierList"},"example":{"id":"5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b","name":"Q4 leads","status":"queued","addresses":2500,"checked":0,"results":{"valid":0,"catch_all":0,"unknown":0,"invalid":0},"credits_used":0,"credits_returned":0,"skipped_rows":12,"duplicate_rows":30,"created_at":"2026-11-20T15:00:00.000Z","finished_at":null,"duration_seconds":null,"eta_seconds":null,"results_available":false,"results_available_until":null}}}},"400":{"description":"The `Idempotency-Key` header is missing, the body does not match the schema, `email_column` is not a column of the file, or no email addresses were found.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ValidationProblem"},{"type":"object","properties":{"code":{"type":"string","enum":["idempotency_key_required","validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"The account has an overdue payment, or fewer credits than the list needs (`need` and `have` say how many).","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CreditsProblem"},{"type":"object","properties":{"code":{"type":"string","enum":["payment_required","insufficient_credits"]}}}]},"example":{"type":"about:blank","title":"Not enough credits","status":402,"code":"insufficient_credits","detail":"Not enough credits for this list. Add credits in the customer portal.","need":2500,"have":396}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The email verifier is not available to your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"409":{"description":"A request with this `Idempotency-Key` is still running, or an earlier one never reported back: check your lists before sending the list again with a new key.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["idempotency_conflict"]}}}]}}}},"413":{"description":"The body is larger than 4 MB, or the file has more rows, columns or characters than one list can hold.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"415":{"description":"The body is not `application/json` or `text/csv`, or it is not a CSV file.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"422":{"description":"This `Idempotency-Key` was already used with a different list.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["idempotency_conflict"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/verifier/lists/{id}":{"get":{"operationId":"getVerifierList","tags":["Email verifier"],"summary":"Get a list","description":"One list: its status, how far it has got, the counts per result, the credits used and returned, and how long it took. Reads of your account, your tag list, your email verifier credits and one email verifier list share a limit of 120 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/ListId"}],"responses":{"200":{"description":"The list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifierList"},"example":{"id":"5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b","name":"Q4 leads","status":"completed","addresses":2500,"checked":2500,"results":{"valid":1840,"catch_all":410,"unknown":95,"invalid":155},"credits_used":2405,"credits_returned":95,"skipped_rows":12,"duplicate_rows":30,"created_at":"2026-11-20T15:00:00.000Z","finished_at":"2026-11-20T15:03:12.000Z","duration_seconds":192,"eta_seconds":null,"results_available":true,"results_available_until":"2027-01-19T15:03:12.000Z"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such list on your account, or the email verifier is not available to your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/verifier/lists/{id}/results":{"get":{"operationId":"getVerifierResults","tags":["Email verifier"],"summary":"Read a list's results","description":"The results of a list whose `status` is `completed` (or `failed`: what was checked, with the rest `not_checked`), one row per row of the list, in the same sequence as the list. Ask for the next page by sending `next_cursor` back as `cursor`, and stop when `next_cursor` is `null`. Domain reads (listing domains and getting one), and listing email verifier lists and reading their results share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/ListId"},{"$ref":"#/components/parameters/ResultsLimit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"One page of results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifierResultsPage"},"example":{"data":[{"row":1,"email":"ann@example-one.com","status":"valid","domain":"example-one.com","role_address":false,"mx_found":true,"mx_record":"mx.example-one.com","mail_provider":"Google Workspace"}],"next_cursor":null}}}},"400":{"description":"`limit` or `cursor` is not valid.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such list on your account, or the email verifier is not available to your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"409":{"description":"The list is still being checked. Try again once it has finished (`finished_at` is set; `status` is `completed` or `failed`).","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_ready"]}}}]}}}},"410":{"description":"Results are kept for 60 days, and this list's have expired.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["results_expired"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/verifier/lists/{id}/results.csv":{"get":{"operationId":"downloadVerifierResults","tags":["Email verifier"],"summary":"Download a list's results as a CSV","description":"The list as a CSV with the result columns added on the right: `Status`, `Domain`, `Role address`, `MX found`, `MX record` and `Mail provider`. A list sent as a CSV keeps your own columns. Use `result` for one result only. Domain reads (listing domains and getting one), and listing email verifier lists and reading their results share a limit of 30 requests a minute per key.","parameters":[{"$ref":"#/components/parameters/ListId"},{"$ref":"#/components/parameters/CsvResult"}],"responses":{"200":{"description":"The result file.","headers":{"Content-Disposition":{"description":"`attachment`, with a file name made from the list's name, such as `Q4 leads - valid.csv`.","schema":{"type":"string"}}},"content":{"text/csv":{"schema":{"type":"string"},"example":"\"Name\",\"Email\",\"Status\",\"Domain\",\"Role address\",\"MX found\",\"MX record\",\"Mail provider\"\r\n\"Ann Lee\",\"ann@example-one.com\",\"Valid\",\"example-one.com\",\"No\",\"Yes\",\"mx.example-one.com\",\"Google Workspace\"\r\n"}}},"400":{"description":"`result` is not one of the values listed.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"]}}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such list on your account, or the email verifier is not available to your account.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"409":{"description":"The list is still being checked. Try again once it has finished (`finished_at` is set; `status` is `completed` or `failed`).","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_ready"]}}}]}}}},"410":{"description":"Results are kept for 60 days, and this list's have expired.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["results_expired"]}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/openapi.json":{"get":{"operationId":"getOpenApiDocument","tags":["Reference"],"summary":"Get this document","description":"The OpenAPI description of this API. It needs no key and may be cached for five minutes.","security":[],"responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"The API is not available.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"]}}}]}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"An API key, sent as `Authorization: Bearer <key>`. The account owner and each team member create their own in the customer portal, on the AI Agents & API page. It is shown once, when it is created. Each person has one active key, and a replaced or revoked key stops working immediately."}},"parameters":{"DomainId":{"name":"id","in":"path","required":true,"description":"The domain's id.","schema":{"$ref":"#/components/schemas/DomainId"}},"TagId":{"name":"id","in":"path","required":true,"description":"The tag's id, as returned when the tag was created or listed.","schema":{"$ref":"#/components/schemas/TagId"}},"Limit":{"name":"limit","in":"query","required":false,"description":"How many domains to return in one page.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"Cursor":{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, sent back unchanged. It is opaque and can expire: if it is refused with 400, start again from the first page.","schema":{"type":"string","maxLength":300}},"Fields":{"name":"fields","in":"query","required":false,"description":"A comma-separated list of the fields you want, for example `status,nameservers`. Each domain then holds `id` and the fields you listed, and nothing else. Leave it out for every field.","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["id","domain","status","stage","readiness","nameservers","nameserver_deadline","mailbox_count","user_count","redirect_type","redirect_url","failure_reason","tags","created_at"]}}},"DomainIds":{"name":"ids","in":"query","required":true,"description":"A comma-separated list of domain ids, from 1 to 10. Duplicates are ignored.","style":"form","explode":false,"schema":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/DomainId"}}},"ListId":{"name":"id","in":"path","required":true,"description":"The list's id, as returned when the list was started or listed.","schema":{"$ref":"#/components/schemas/VerifierListId"}},"ListLimit":{"name":"limit","in":"query","required":false,"description":"How many lists to return in one page.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"ResultsLimit":{"name":"limit","in":"query","required":false,"description":"How many result rows to return in one page.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":500}},"ListName":{"name":"name","in":"query","required":false,"description":"With a `text/csv` body: the list's name, at most 200 characters. With a JSON body, send `name` in the body instead. Without one the list is named `API list` and the date.","schema":{"type":"string","maxLength":200}},"EmailColumn":{"name":"email_column","in":"query","required":false,"description":"With a `text/csv` body: the header of the column that holds the addresses. Leave it out to have it found for you.","schema":{"type":"string","maxLength":1000}},"CsvResult":{"name":"result","in":"query","required":false,"description":"Which rows to download: every row (`all`), or only one result.","schema":{"type":"string","enum":["all","valid","catch_all","unknown","invalid"],"default":"all"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"A string you choose, 1 to 255 printable characters (no spaces), such as a UUID. Sending the same key and body again returns the first answer instead of doing the work twice.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[!-~]{1,255}$"}}},"headers":{"RetryAfter":{"description":"The number of seconds to wait before sending the request again.","schema":{"type":"integer","minimum":1}},"IdempotentReplayed":{"description":"Present, with the value `true`, when this is the saved answer to an earlier request with the same `Idempotency-Key`. Nothing was added by this request.","schema":{"type":"string","enum":["true"]}},"FailedDomains":{"description":"Present when some of the requested domains were left out. A comma-separated list of `domain=reason`, where the reason is `not_ready` (still being set up), `unavailable` (could not be fetched, try again), `not_found` (no longer on your account) or `busy` (downloads are busy, retry shortly). Domain names are percent-encoded. In `_failures.txt` inside a zip the same domains are listed one per line as `domain: reason`, not encoded.","schema":{"type":"string","pattern":"^[^=,]+=(?:not_ready|unavailable|not_found|busy)(?:,[^=,]+=(?:not_ready|unavailable|not_found|busy))*$"}}},"responses":{"Unauthorized":{"description":"The API key is missing, malformed, replaced or revoked.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"]}}}]},"example":{"type":"about:blank","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Provide a valid API key in the Authorization header."}}}},"PaymentRequired":{"description":"The account has an overdue payment.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["payment_required"]}}}]},"example":{"type":"about:blank","title":"Payment required","status":402,"code":"payment_required","detail":"This account has an overdue payment."}}}},"Forbidden":{"description":"This account can't use the API, or the person the key belongs to does not have permission for this action. Team members' permissions are set in the customer portal.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"]}}}]},"example":{"type":"about:blank","title":"Forbidden","status":403,"code":"forbidden","detail":"This account can't use the API."}}}},"RateLimited":{"description":"Too many requests from your key or your IP address, or another request of the same kind for this account is still running. Wait for the number of seconds in `Retry-After`, then try again.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"]}}}]},"example":{"type":"about:blank","title":"Too many requests","status":429,"code":"rate_limited","detail":"Too many requests. Slow down and retry."}}}},"Unavailable":{"description":"A temporary problem on our side. Try again shortly.","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["temporarily_unavailable"]}}}]},"example":{"type":"about:blank","title":"Temporarily unavailable","status":503,"code":"temporarily_unavailable","detail":"Try again shortly."}}}}},"schemas":{"DomainId":{"type":"string","pattern":"^dom_[0-9a-f]{32}$","description":"A domain's id: `dom_` followed by 32 lowercase hexadecimal characters. Treat it as an opaque string. It does not change for the life of the domain.","example":"dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f"},"TagId":{"type":"string","description":"A tag's id. Treat it as an opaque string.","example":"cm2k9x1y40001l5q8h3j7d0ab"},"TagColor":{"type":"string","enum":["slate","emerald","sky","violet","amber","rose"],"default":"slate","description":"A colour from the fixed palette."},"RedirectType":{"type":"string","enum":["NONE","REGULAR","MASKED"],"description":"`NONE` shows a default page. `REGULAR` forwards visitors with a standard 301. `MASKED` loads your site while keeping this domain in the address bar."},"ErrorCode":{"type":"string","enum":["unauthorized","payment_required","forbidden","not_found","validation_failed","over_allowance","account_suspended","domain_taken","name_taken","not_ready","rate_limited","temporarily_unavailable","idempotency_conflict","idempotency_key_required","created_unconfirmed","batch_stopped","credentials_unavailable","insufficient_credits","results_expired","internal_error"],"description":"- `unauthorized`: The API key is missing, malformed, replaced or revoked (401).\n- `payment_required`: The account has an overdue payment (402).\n- `forbidden`: This account can't use the API, or the person the key belongs to does not have permission for this action (403). When deleting a domain: this domain can't be deleted through the API (403, or per domain).\n- `not_found`: There is no such resource on your account (404, or per domain when deleting domains). An id that is malformed, does not exist or belongs to another account gets the same answer. The same code is sent by every endpoint if the API is not available.\n- `validation_failed`: The request is not valid (400, or 413 when it is too large).\n- `over_allowance`: Per domain, when adding domains: the request is more than your remaining domain allowance.\n- `account_suspended`: Per domain, when adding domains: the account isn't active, so domains can't be added.\n- `domain_taken`: Per domain, when adding domains: the domain is already set up on an account.\n- `name_taken`: You already have a tag with that name (409). Names are not case-sensitive.\n- `not_ready`: Mailbox credentials are not available yet, or an email verifier list is still being checked so its results are not ready (409).\n- `rate_limited`: Too many requests, or another request of the same kind for this account is still running (429).\n- `temporarily_unavailable`: A temporary problem on our side (502, 503). Per domain, when adding domains: the domain could not be added just now, or it was deleted less than 90 seconds ago. Per domain, when deleting domains: nothing was deleted.\n- `idempotency_conflict`: The Idempotency-Key is in use by a request that is still running, was used with a different body, or belongs to an earlier request whose outcome is unknown (409, 422).\n- `idempotency_key_required`: The Idempotency-Key header is missing or not valid (400).\n- `created_unconfirmed`: Per domain, when adding domains: the domain was created but could not be confirmed on your account. Do not add it again; contact support.\n- `batch_stopped`: Per domain, when adding domains: skipped because an earlier domain in the same request stopped the batch, or because the request ran out of time before reaching it. Per domain, when deleting domains: the request ran out of time before reaching it, and nothing was done to it.\n- `credentials_unavailable`: The logins could not be fetched just now (502).\n- `insufficient_credits`: The account has fewer email verifier credits than the list needs (402). The answer carries `need` and `have`; nothing was started. Credits are added in the customer portal.\n- `results_expired`: Email verifier results are kept for 60 days, and these are older (410).\n- `internal_error`: An error on our side (500). Per domain, when adding domains: the result could not be confirmed, so check your domain list before trying again. When deleting a domain: the deletion could not be finished or confirmed; read the detail, and do not delete it again."},"Problem":{"type":"object","description":"An error, as an RFC 9457 problem document.","required":["type","title","status","code"],"properties":{"type":{"type":"string","enum":["about:blank"]},"title":{"type":"string","description":"A short name for the kind of error. Stable for a given `code`."},"status":{"type":"integer","description":"The HTTP status."},"code":{"$ref":"#/components/schemas/ErrorCode"},"detail":{"type":"string","description":"What went wrong and how to fix it. Meant for people: don't parse it."}}},"ValidationProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"errors":{"type":"array","description":"When the body does not match the schema: up to 10 places where it doesn't.","items":{"type":"object","required":["path","message"],"properties":{"path":{"type":"string","description":"Where in the body, for example `domains.0.domain`."},"message":{"type":"string"}}}}}}]},"CredentialsProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"failures":{"type":"array","description":"The domains whose logins could not be returned, and why.","items":{"type":"object","required":["domain","reason"],"properties":{"domain":{"type":"string","description":"The domain name."},"reason":{"type":"string","enum":["not_ready","unavailable","not_found","busy"]}}}}}}]},"CreditsProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"need":{"type":"integer","minimum":1,"description":"With `insufficient_credits`: the credits the list needs."},"have":{"type":"integer","minimum":0,"description":"With `insufficient_credits`: the credits the account has."}}}]},"VerifierCredits":{"type":"object","required":["credits"],"properties":{"credits":{"type":"integer","minimum":0,"description":"Email verifier credits left. Each unique address uses one."}}},"VerifierListId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"A list's id. Treat it as an opaque string.","example":"5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b"},"VerifierCounts":{"type":"object","required":["valid","catch_all","unknown","invalid"],"properties":{"valid":{"type":"integer","minimum":0,"description":"Safe to send."},"catch_all":{"type":"integer","minimum":0,"description":"The domain accepts every address, so this one cannot be confirmed."},"unknown":{"type":"integer","minimum":0,"description":"The mail server gave no clear answer. These use no credit."},"invalid":{"type":"integer","minimum":0,"description":"Will bounce (no such mailbox, or one that is full or disabled)."}}},"VerifierList":{"type":"object","required":["id","name","status","addresses","checked","results","credits_used","credits_returned","skipped_rows","duplicate_rows","created_at","finished_at","duration_seconds","eta_seconds","results_available","results_available_until"],"properties":{"id":{"$ref":"#/components/schemas/VerifierListId"},"name":{"type":"string","description":"The list's name."},"status":{"type":"string","enum":["queued","running","completed","failed"],"description":"`queued` waits its turn, `running` is being checked, `completed` is done, `failed` stopped before every address was checked (what was checked can still be read, and unused credits were returned)."},"addresses":{"type":"integer","minimum":0,"description":"Unique usable addresses in the list: the credits set aside."},"checked":{"type":"integer","minimum":0,"description":"Addresses checked so far."},"results":{"$ref":"#/components/schemas/VerifierCounts"},"credits_used":{"type":"integer","minimum":0,"description":"Credits used so far."},"credits_returned":{"type":"integer","minimum":0,"description":"Credits given back once the list finished (Unknown results and throwaway addresses). 0 until then."},"skipped_rows":{"type":"integer","minimum":0,"description":"Rows without a usable address. They use no credit."},"duplicate_rows":{"type":"integer","minimum":0,"description":"Rows repeating an address already in the list. They use no credit."},"created_at":{"type":"string","format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"duration_seconds":{"type":["integer","null"],"minimum":0,"description":"From start to finish, once finished."},"eta_seconds":{"type":["integer","null"],"minimum":0,"description":"A rough estimate of the time left while the list is running."},"results_available":{"type":"boolean","description":"True when the results can be read now."},"results_available_until":{"type":["string","null"],"format":"date-time","description":"When the results stop being kept (60 days after the list finished)."}}},"VerifierListPage":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VerifierList"}},"next_cursor":{"type":["string","null"],"description":"Send back as `cursor` for the next page. `null` on the last page."}}},"VerifierResultRow":{"type":"object","required":["row","email","status","domain","role_address","mx_found","mx_record","mail_provider"],"properties":{"row":{"type":"integer","minimum":1,"description":"The row's position in the list, from 1."},"email":{"type":["string","null"],"description":"The address as it was in the list."},"status":{"type":"string","enum":["valid","catch_all","unknown","invalid","not_checked"],"description":"The result. `not_checked`: the row had no usable address, or the list stopped before it."},"domain":{"type":["string","null"],"description":"The part after the `@`."},"role_address":{"type":["boolean","null"],"description":"True for a shared mailbox such as `info@` or `sales@`."},"mx_found":{"type":["boolean","null"],"description":"Whether the domain has a mail server. `null` when it could not be told."},"mx_record":{"type":["string","null"],"description":"The domain's main mail server."},"mail_provider":{"type":["string","null"],"description":"Who runs the domain's mail, when it can be told, such as `Google Workspace`."}}},"VerifierResultsPage":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VerifierResultRow"}},"next_cursor":{"type":["string","null"],"description":"Send back as `cursor` for the next page. `null` on the last page."}}},"StartVerifierListRequest":{"type":"object","required":["emails"],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":200,"description":"The list's name. Without one it is named `API list` and the date."},"emails":{"type":"array","minItems":1,"maxItems":50000,"items":{"type":"string","minLength":1,"maxLength":320},"description":"The addresses to check."}}},"Account":{"type":"object","required":["allowance","used","remaining","suspended"],"properties":{"allowance":{"type":"integer","minimum":0,"description":"How many domains your plan allows."},"used":{"type":"integer","minimum":0,"description":"How many domains are counted against it."},"remaining":{"type":"integer","minimum":0,"description":"How many more domains you can add. 0 while the account is suspended."},"suspended":{"type":"boolean","description":"True when the account isn't active, so domains can't be added."},"unlimited":{"type":"boolean","description":"True when the account has no cap on how many domains it may add. False for every customer account."}}},"TagRef":{"type":"object","required":["id","name","color"],"properties":{"id":{"$ref":"#/components/schemas/TagId"},"name":{"type":"string"},"color":{"$ref":"#/components/schemas/TagColor"}}},"Tag":{"type":"object","required":["id","name","color","domain_count"],"properties":{"id":{"$ref":"#/components/schemas/TagId"},"name":{"type":"string"},"color":{"$ref":"#/components/schemas/TagColor"},"domain_count":{"type":"integer","minimum":0,"description":"How many of your domains carry this tag."}}},"TagList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}},"TagCreateRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"The tag's name: 1 to 24 characters once leading and trailing spaces are removed and runs of spaces are collapsed to one. Names are not case-sensitive."},"color":{"$ref":"#/components/schemas/TagColor"}}},"TagUpdateRequest":{"type":"object","description":"At least one of `name` and `color`.","properties":{"name":{"type":"string","description":"The new name, under the same rules as when creating a tag (1 to 24 characters)."},"color":{"$ref":"#/components/schemas/TagColor"}}},"DomainDeleted":{"type":"object","required":["id","domain","deleted"],"properties":{"id":{"$ref":"#/components/schemas/DomainId"},"domain":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"DeleteDomainsRequest":{"type":"object","additionalProperties":false,"required":["ids"],"properties":{"ids":{"type":"array","minItems":1,"maxItems":25,"items":{"$ref":"#/components/schemas/DomainId"},"description":"The domains to delete. Each id may appear once, and each must have the form of a domain id."}}},"DeleteDeleted":{"type":"object","required":["id","status","domain"],"properties":{"id":{"$ref":"#/components/schemas/DomainId"},"status":{"type":"string","enum":["deleted"]},"domain":{"type":"string"}}},"DeleteFailed":{"type":"object","required":["id","status","error"],"properties":{"id":{"$ref":"#/components/schemas/DomainId"},"status":{"type":"string","enum":["failed"]},"error":{"type":"object","required":["code","detail","retryable"],"properties":{"code":{"type":"string","enum":["not_found","forbidden","temporarily_unavailable","internal_error"]},"detail":{"type":"string"},"retryable":{"type":"boolean","description":"True when nothing was deleted and the same id can be sent again."}}}}},"DeleteSkipped":{"type":"object","required":["id","status","error"],"properties":{"id":{"$ref":"#/components/schemas/DomainId"},"status":{"type":"string","enum":["skipped"]},"error":{"type":"object","required":["code","detail"],"properties":{"code":{"type":"string","enum":["batch_stopped"]},"detail":{"type":"string"}}}}},"DeleteResult":{"description":"What happened to one domain. `status` says which of the three it is.","oneOf":[{"$ref":"#/components/schemas/DeleteDeleted"},{"$ref":"#/components/schemas/DeleteFailed"},{"$ref":"#/components/schemas/DeleteSkipped"}],"discriminator":{"propertyName":"status","mapping":{"deleted":"#/components/schemas/DeleteDeleted","failed":"#/components/schemas/DeleteFailed","skipped":"#/components/schemas/DeleteSkipped"}}},"DeleteResults":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/DeleteResult"},"description":"One result per id, in the sequence the ids were sent."}}},"TagDeleted":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean","enum":[true]}}},"TagAssignRequest":{"type":"object","required":["action","tag_id","domain_ids"],"properties":{"action":{"type":"string","enum":["add","remove"],"description":"Add the tag to the domains, or remove it from them."},"tag_id":{"$ref":"#/components/schemas/TagId"},"domain_ids":{"type":"array","minItems":1,"maxItems":200,"items":{"$ref":"#/components/schemas/DomainId"},"description":"The domains. Duplicates are ignored."}}},"TagAssignResult":{"type":"object","required":["count"],"properties":{"count":{"type":"integer","minimum":1,"description":"The number of distinct domains the request named."}}},"DomainTagsRequest":{"type":"object","required":["tag_ids"],"properties":{"tag_ids":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/TagId"},"description":"The complete list of tags the domain should have. Empty for none. Duplicates are ignored."}}},"DomainTags":{"type":"object","required":["tags"],"properties":{"tags":{"type":"array","items":{"$ref":"#/components/schemas/TagRef"}}}},"Domain":{"type":"object","description":"A domain. Every field is present unless you limit the response with `fields`; `id` is always present.","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/DomainId"},"domain":{"type":"string","description":"The domain name."},"status":{"type":"string","enum":["created","dns","nameservers","mailboxes","warmup","completed","failed","removing","expired","unknown"],"description":"Where the domain is in its setup. One of these ten values; treat a value you don't know as `unknown`:\n- `created`: the domain has been created.\n- `dns`: its DNS is being configured.\n- `nameservers`: waiting for you to update the domain's nameservers, at your registrar, to the ones in `nameservers`.\n- `mailboxes`: its mailboxes are being created and confirmed.\n- `warmup`: the mailboxes are built and being tuned for deliverability; the logins can't be downloaded yet.\n- `completed`: done, and the logins are ready to download.\n- `failed`: setting up the domain failed; contact support.\n- `removing`: the domain is being removed.\n- `expired`: the nameserver window passed before the nameservers were updated; add the domain again.\n- `unknown`: a state this API doesn't describe yet."},"stage":{"type":"object","description":"The same step as `status`, in words you can show to a person.","required":["label","detail","action_required","credentials_ready"],"properties":{"label":{"type":"string","description":"A short name for the step, for display. When `status` is `expired` it is `Nameserver window passed`."},"detail":{"type":["string","null"],"description":"A longer explanation of the step. When `status` is `failed` it is the fixed sentence `Setting up this domain failed. Contact support.`; when it is `expired` it is a fixed sentence saying the nameserver window passed and the domain should be added again."},"action_required":{"type":"boolean","description":"True when you have something to do, such as updating the nameservers."},"credentials_ready":{"type":"boolean","description":"True when the mailbox logins can be downloaded."}}},"readiness":{"type":"string","enum":["ready","pending","not_applicable","failed"],"description":"`ready`: the logins can be downloaded. `pending`: the domain is active but the logins are not available yet. `not_applicable`: the domain isn't active. `failed`: setup failed."},"nameservers":{"type":"array","items":{"type":"string"},"description":"The nameservers to set for the domain at your registrar."},"nameserver_deadline":{"type":["string","null"],"format":"date-time","description":"The time by which the nameservers must be updated. Present only while the domain is waiting for that step (and after the time has passed); otherwise `null`."},"mailbox_count":{"type":"integer","minimum":0,"description":"The number of mailboxes the domain has. A fully built current domain has 25; a legacy domain has 49."},"user_count":{"type":"integer","minimum":0,"description":"The number of mailboxes the domain was set up to have. Every domain created now has 25. A legacy domain, created before the move to 25 mailboxes in October 2026, reports 49; that count can no longer be requested."},"redirect_type":{"type":["string","null"],"description":"The redirect type: `NONE`, `REGULAR` or `MASKED`. `null` when none is recorded."},"redirect_url":{"type":["string","null"],"description":"Where visitors are sent, when there is a redirect."},"failure_reason":{"type":["string","null"],"description":"`null` unless setting up the domain failed. If it did, the fixed sentence `Setting up this domain failed. Contact support.`. How the step reads is in `stage.detail`."},"tags":{"type":"array","items":{"$ref":"#/components/schemas/TagRef"},"description":"Your tags on this domain, sorted by name."},"created_at":{"type":"string","format":"date-time","description":"When the domain was added."}}},"DomainPage":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"next_cursor":{"type":["string","null"],"description":"Send this as `cursor` to get the next page. `null` on the last page."}}},"SenderName":{"type":"object","additionalProperties":false,"required":["first_name","last_name"],"properties":{"first_name":{"type":"string","minLength":1,"maxLength":50,"description":"Letters and numbers only: other characters are removed, and a name with nothing left refuses the whole request with 400."},"last_name":{"type":"string","minLength":1,"maxLength":50,"description":"Letters and numbers only: other characters are removed, and a name with nothing left refuses the whole request with 400."},"email_prefix":{"type":"string","maxLength":50,"description":"Optional. Sets the part of this name's mailbox addresses before the `@`."}}},"CreateDomainItem":{"type":"object","additionalProperties":false,"required":["domain","names"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"The domain name to add, for example `example.com`: letters, numbers and hyphens in dot-separated labels, with at least one dot. Surrounding spaces are removed and it is lower-cased. A name that is not a valid domain name refuses the whole request with 400, before any domain is added. A valid name that is already set up on an account fails on its own, with `domain_taken`."},"names":{"type":"array","minItems":1,"maxItems":99,"items":{"$ref":"#/components/schemas/SenderName"},"description":"The names the domain's mailboxes are created for, from 1 to 99. A name with nothing left after other characters are removed refuses the whole request with 400."},"redirect_type":{"$ref":"#/components/schemas/RedirectType"},"redirect_url":{"type":"string","maxLength":2048,"description":"Where visitors are sent: a full http:// or https:// address (a bare host such as `example.com` gets `https://` in front). Needed when `redirect_type` is `REGULAR` or `MASKED`, and ignored unless it is: with `NONE` or no `redirect_type` the address is dropped and not kept. For `REGULAR` and `MASKED`, a missing or unusable address refuses the whole request with 400, before any domain is added."},"user_count":{"type":"integer","enum":[25],"default":25,"description":"How many mailboxes to create on the domain. Every new domain is created with 25, which is also the default, so 25 is the only value accepted: anything else refuses the whole request with 400. Leave it out and you get 25."}}},"CreateDomainsRequest":{"type":"object","additionalProperties":false,"required":["domains"],"properties":{"domains":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/CreateDomainItem"},"description":"The same domain can't appear twice in one request."}}},"CreateCreated":{"type":"object","required":["domain","status","id"],"properties":{"domain":{"type":"string","description":"The domain name as it was used: trimmed and lower-cased."},"status":{"type":"string","enum":["created"]},"id":{"$ref":"#/components/schemas/DomainId"}}},"CreateFailed":{"type":"object","required":["domain","status","error"],"properties":{"domain":{"type":"string"},"status":{"type":"string","enum":["failed"]},"error":{"type":"object","required":["code","detail","retryable"],"properties":{"code":{"type":"string","enum":["validation_failed","over_allowance","account_suspended","domain_taken","temporarily_unavailable","created_unconfirmed","internal_error"]},"detail":{"type":"string"},"retryable":{"type":"boolean","description":"True when the same domain can be sent again, in a new request with a new `Idempotency-Key`."}}}}},"CreateSkipped":{"type":"object","required":["domain","status","error"],"properties":{"domain":{"type":"string"},"status":{"type":"string","enum":["skipped"]},"error":{"type":"object","required":["code","detail"],"properties":{"code":{"type":"string","enum":["batch_stopped"]},"detail":{"type":"string"}}}}},"CreateResult":{"description":"What happened to one domain. `status` says which of the three it is.","oneOf":[{"$ref":"#/components/schemas/CreateCreated"},{"$ref":"#/components/schemas/CreateFailed"},{"$ref":"#/components/schemas/CreateSkipped"}],"discriminator":{"propertyName":"status","mapping":{"created":"#/components/schemas/CreateCreated","failed":"#/components/schemas/CreateFailed","skipped":"#/components/schemas/CreateSkipped"}}},"CreateResults":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/CreateResult"},"description":"One result per domain, in the sequence the domains were sent."}}},"RedirectRequest":{"type":"object","additionalProperties":false,"required":["redirect_type"],"properties":{"redirect_type":{"type":"string","enum":["NONE","REGULAR","MASKED"],"description":"`NONE` shows a default page. `REGULAR` forwards visitors with a standard 301. `MASKED` loads your site while keeping this domain in the address bar."},"redirect_url":{"type":"string","maxLength":2048,"description":"Where visitors are sent. Required for `REGULAR` and `MASKED`; ignored for `NONE`. A bare host such as `example.com` gets `https://` in front."}}},"RedirectResult":{"type":"object","required":["id","redirect_type","redirect_url"],"properties":{"id":{"$ref":"#/components/schemas/DomainId"},"redirect_type":{"type":"string","enum":["NONE","REGULAR","MASKED"]},"redirect_url":{"type":["string","null"],"description":"The address that was saved, with `https://` added if you sent a bare host. `null` for `NONE`."}}}}}}