API reference

Use a Bearer API key from the portal’s AI Agents & API page to check domain allowance, provision domains, manage tags or redirects, download credential CSVs and run InfraVerifier jobs.

For saved Mailbox Import connections and warmup, use the portal or customer MCP with OAuth.

Base URL
https://app.infrasuite.io/api
Authentication
Authorization: Bearer <key>
Format
JSON in and out, except downloads
Version
1.0.0
Request
curl https://app.infrasuite.io/api/v1/account \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "allowance": 20,
  "used": 7,
  "remaining": 13,
  "suspended": false
}
On this page

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.

Authentication

Send your API key as a bearer token: Authorization: Bearer <key>. Every endpoint needs one except this document.

You 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.

Domain ids

A 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.

Nameservers

A 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.

Email verifier

Start 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.

Errors

Every 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.

Rate limits

Limits apply per key, per minute, and are shared by the endpoints in each group:

EndpointsLimit per key
Reads of your account, your tag list, your email verifier credits and one email verifier list120 requests a minute
Domain reads (listing domains and getting one), and listing email verifier lists and reading their results30 requests a minute
All changes (adding and deleting domains, redirects and tags, and starting email verifier lists)20 requests a minute
Credential downloads (one domain or several)30 requests a minute

Over the limit, the answer is 429 with Retry-After.

Conventions

Request and response bodies are JSON, except for downloads. Timestamps are ISO 8601 in UTC. No answer is cached, except this document.

Account

Your domain allowance.

GET/v1/account

Get your domain allowance

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

Your allowance.

Errors 401, 402, 403, 429, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/account \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "allowance": 20,
  "used": 7,
  "remaining": 13,
  "suspended": false
}

Domains

Add domains, list them, read one, change its redirect and delete domains.

GET/v1/domains

List your domains

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

limitquery, integer

How many domains to return in one page.

1 to 200. Default 50

cursorquery, string

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.

fieldsquery, array of enum

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.

One of id, domain, status, stage, readiness, nameservers, nameserver_deadline, mailbox_count, user_count, redirect_type, redirect_url, failure_reason, tags, created_at

Responses

200

A page of domains.

Errors 400, 401, 402, 403, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/domains \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "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
}

POST/v1/domains

Add domains

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.

Check 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.

A 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.

The 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.

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.

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

Idempotency-Keyheader, stringrequired

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.

Request body

domainsarray of objectsrequired

The same domain can't appear twice in one request.

1 to 10 items

domains[].domainstringrequired

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.

domains[].namesarray of objectsrequired

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.

1 to 99 items

domains[].names[].first_namestringrequired

Letters and numbers only: other characters are removed, and a name with nothing left refuses the whole request with 400.

domains[].names[].last_namestringrequired

Letters and numbers only: other characters are removed, and a name with nothing left refuses the whole request with 400.

domains[].names[].email_prefixstring

Optional. Sets the part of this name's mailbox addresses before the @.

domains[].redirect_typeenum

NONE shows a default page. REGULAR forwards visitors with a standard 301. MASKED loads your site while keeping this domain in the address bar.

One of NONE, REGULAR, MASKED

domains[].redirect_urlstring

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.

domains[].user_countenum

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.

One of 25. Default 25

Responses

201

Every domain in the request was added.

207

At least one domain was added and not all. Read each result.

Errors 400, 401, 402, 403, 409, 413, 422, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

409

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.

413

The request body is too large.

422

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).

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X POST https://app.infrasuite.io/api/v1/domains \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
      "domains": [
        {
          "domain": "example-one.com",
          "names": [
            {
              "first_name": "Ann",
              "last_name": "Lee"
            }
          ],
          "redirect_type": "REGULAR",
          "redirect_url": "https://www.example.com",
          "user_count": 25
        }
      ]
    }'
{
  "results": [
    {
      "domain": "example-one.com",
      "status": "created",
      "id": "dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f"
    }
  ]
}

GET/v1/domains/{id}

Get one domain

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

idpath, stringrequired

The domain's id.

fieldsquery, array of enum

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.

One of id, domain, status, stage, readiness, nameservers, nameserver_deadline, mailbox_count, user_count, redirect_type, redirect_url, failure_reason, tags, created_at

Responses

200

The domain.

Errors 400, 401, 402, 403, 404, 429, 503
400

fields names a field that does not exist.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such domain on your account. An id that is malformed, does not exist or belongs to another account gets this answer.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/domains/dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "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"
}

DELETE/v1/domains/{id}

Delete a domain

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.

A 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.

To delete several domains in one request, use POST /v1/domains/delete.

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

idpath, stringrequired

The domain's id.

Responses

200

The domain was deleted. Its mailboxes are being removed in the background.

Errors 401, 402, 403, 404, 429, 500, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

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.

429

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.

500

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.

503

A temporary problem on our side. Nothing was deleted. Try again shortly.

Request
curl -X DELETE https://app.infrasuite.io/api/v1/domains/dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "id": "dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f",
  "domain": "example-one.com",
  "deleted": true
}

POST/v1/domains/delete

Delete several domains

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.

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.

A 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.

The 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.

All changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.

Request body

idsarray of stringrequired

The domains to delete. Each id may appear once, and each must have the form of a domain id.

1 to 25 items

Responses

200

Every domain in the request was deleted.

207

At least one domain was not deleted. Read each result.

Errors 400, 401, 402, 403, 413, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

413

The request body is too large. Nothing was deleted.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X POST https://app.infrasuite.io/api/v1/domains/delete \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "ids": [
        "dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f",
        "dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5"
      ]
    }'
{
  "results": [
    {
      "id": "dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f",
      "status": "deleted",
      "domain": "example-one.com"
    },
    {
      "id": "dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5",
      "status": "deleted",
      "domain": "example-two.com"
    }
  ]
}

PATCH/v1/domains/{id}/redirect

Change a domain's redirect

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.

A 502 means the change may not have been applied: check the domain with GET /v1/domains/{id}, then send the same request again.

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

idpath, stringrequired

The domain's id.

Request body

redirect_typeenumrequired

NONE shows a default page. REGULAR forwards visitors with a standard 301. MASKED loads your site while keeping this domain in the address bar.

One of NONE, REGULAR, MASKED

redirect_urlstring

Where visitors are sent. Required for REGULAR and MASKED; ignored for NONE. A bare host such as example.com gets https:// in front.

Responses

200

The redirect was changed.

Errors 400, 401, 402, 403, 404, 413, 429, 500, 502, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such domain on your account.

413

The request body is too large.

429

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.

500

This domain's redirect can't be changed because of a fault on our side. Contact support if this keeps happening.

502

The redirect may not have been changed. Check the domain, then try the same request again shortly.

503

A temporary problem on our side. Try again shortly.

Request
curl -X PATCH https://app.infrasuite.io/api/v1/domains/dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f/redirect \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "redirect_type": "REGULAR",
      "redirect_url": "https://www.example.com"
    }'
{
  "id": "dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f",
  "redirect_type": "REGULAR",
  "redirect_url": "https://www.example.com"
}

Tags

Labels you keep for yourself. A tag never changes a domain.

PUT/v1/domains/{id}/tags

Set the tags on a domain

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.

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

idpath, stringrequired

The domain's id.

Request body

tag_idsarray of stringrequired

The complete list of tags the domain should have. Empty for none. Duplicates are ignored.

Responses

200

The domain's tags after the change, sorted by name.

Errors 400, 401, 402, 403, 404, 413, 429, 503
400

The body is not valid JSON, tag_ids is not a list of tag ids, or it lists more than 50 tags.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such domain on your account, or a listed tag is not one of yours.

413

The request body is too large.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X PUT https://app.infrasuite.io/api/v1/domains/dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f/tags \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "tag_ids": [
        "cm2k9x1y40001l5q8h3j7d0ab"
      ]
    }'
{
  "tags": [
    {
      "id": "cm2k9x1y40001l5q8h3j7d0ab",
      "name": "Q4 campaign",
      "color": "sky"
    }
  ]
}

GET/v1/tags

List your tags

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

Your tags.

Errors 401, 402, 403, 429, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/tags \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "data": [
    {
      "id": "cm2k9x1y40001l5q8h3j7d0ab",
      "name": "Q4 campaign",
      "color": "sky",
      "domain_count": 3
    }
  ]
}

POST/v1/tags

Create a tag

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.

Request body

namestringrequired

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.

colorenum

A colour from the fixed palette.

One of slate, emerald, sky, violet, amber, rose. Default slate

Responses

201

The tag was created.

Errors 400, 401, 402, 403, 409, 413, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

409

You already have a tag with that name.

413

The request body is too large.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X POST https://app.infrasuite.io/api/v1/tags \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Q4 campaign",
      "color": "sky"
    }'
{
  "id": "cm2k9x1y40001l5q8h3j7d0ab",
  "name": "Q4 campaign",
  "color": "sky",
  "domain_count": 0
}

POST/v1/tags/assign

Add or remove a tag across many domains

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.

All changes (adding and deleting domains, redirects and tags, and starting email verifier lists) share a limit of 20 requests a minute per key.

Request body

actionenumrequired

Add the tag to the domains, or remove it from them.

One of add, remove

tag_idstringrequired

A tag's id. Treat it as an opaque string.

domain_idsarray of stringrequired

The domains. Duplicates are ignored.

1 to 200 items

Responses

200

The change was made.

Errors 400, 401, 402, 403, 404, 413, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

The tag, or at least one domain, is not one of yours. Nothing was changed.

413

The request body is too large, or it names more than 200 domains.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X POST https://app.infrasuite.io/api/v1/tags/assign \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "action": "add",
      "tag_id": "cm2k9x1y40001l5q8h3j7d0ab",
      "domain_ids": [
        "dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f",
        "dom_9c2e7a41d05b4f38a6b1c0d9e8f7a6b5"
      ]
    }'
{
  "count": 2
}

PATCH/v1/tags/{id}

Rename or recolour a tag

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

idpath, stringrequired

The tag's id, as returned when the tag was created or listed.

Request body

namestring

The new name, under the same rules as when creating a tag (1 to 24 characters).

colorenum

A colour from the fixed palette.

One of slate, emerald, sky, violet, amber, rose. Default slate

Responses

200

The tag after the change.

Errors 400, 401, 402, 403, 404, 409, 413, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such tag among yours.

409

You already have a tag with that name.

413

The request body is too large.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X PATCH https://app.infrasuite.io/api/v1/tags/cm2k9x1y40001l5q8h3j7d0ab \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Q4 launch",
      "color": "emerald"
    }'
{
  "id": "cm2k9x1y40001l5q8h3j7d0ab",
  "name": "Q4 launch",
  "color": "emerald"
}

DELETE/v1/tags/{id}

Delete a tag

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

idpath, stringrequired

The tag's id, as returned when the tag was created or listed.

Responses

200

The tag was deleted.

Errors 401, 402, 403, 404, 429, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such tag among yours.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X DELETE https://app.infrasuite.io/api/v1/tags/cm2k9x1y40001l5q8h3j7d0ab \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "ok": true
}

Credentials

Download mailbox logins.

GET/v1/domains/credentials

Download the logins for several domains

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.

A 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.

Logins 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.

Credential downloads (one domain or several) share a limit of 30 requests a minute per key.

Parameters

idsquery, array of stringrequired

A comma-separated list of domain ids, from 1 to 10. Duplicates are ignored.

1 to 10 items

formatquery, enum

csv for one merged CSV, zip for one CSV per domain.

One of csv, zip. Default csv

Responses

200

The logins. When some domains were left out, X-Failed-Domains says which and why.

Errors 400, 401, 402, 403, 404, 409, 429, 502, 503
400

ids is missing or names more than the limit, or format is not csv or zip.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

At least one id is not one of your domains (or is malformed). Nothing was downloaded.

409

Every domain is still being set up, so no logins can be returned yet. failures lists them.

429

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.

502

No logins could be fetched just now. failures lists the domains. Contact support if this keeps happening.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/domains/credentials?ids=dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
name,email,password
Ann Lee,•••••••••@example-one.com,<password>

GET/v1/domains/{id}/credentials.csv

Download the logins for one domain

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.

Logins 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.

Credential downloads (one domain or several) share a limit of 30 requests a minute per key.

Parameters

idpath, stringrequired

The domain's id.

Responses

200

The logins.

Errors 401, 402, 403, 404, 409, 429, 502, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such domain on your account.

409

The domain is still being set up. Logins are available after the warm-up period; try again after the time in Retry-After.

429

Too many requests, or downloads are busy right now. Wait for the number of seconds in Retry-After, then try again.

502

The logins could not be fetched just now. Contact support if this keeps happening.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/domains/dom_3f9a1c7e5b2d4a6c8e0f1b2a3c4d5e6f/credentials.csv \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
name,email,password
Ann Lee,•••••••••@example-one.com,<password>

Email verifier

Check email lists: your credits, your lists and their results.

GET/v1/verifier/credits

Get your email verifier credits

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

Your credits.

Errors 401, 402, 403, 404, 429, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

The email verifier is not available to your account.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/verifier/credits \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "credits": 10396
}

GET/v1/verifier/lists

List your email verifier lists

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

limitquery, integer

How many lists to return in one page.

1 to 200. Default 50

cursorquery, string

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.

Responses

200

One page of lists.

Errors 400, 401, 402, 403, 404, 429, 503
400

limit or cursor is not valid.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

The email verifier is not available to your account.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/verifier/lists \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "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
}

POST/v1/verifier/lists

Start a list

Starts checking a list. Send the addresses in one of two ways:

  • Content-Type: application/json: { "name": "...", "emails": [...] }, from 1 to 50000 addresses.
  • 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.

Either 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.

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

Idempotency-Keyheader, stringrequired

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.

namequery, string

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.

email_columnquery, string

With a text/csv body: the header of the column that holds the addresses. Leave it out to have it found for you.

Request body

namestring

The list's name. Without one it is named API list and the date.

emailsarray of stringrequired

The addresses to check.

1 to 50000 items

Responses

202

The list was started (or, with the same Idempotency-Key again, the list that was started, as it is now).

Errors 400, 401, 402, 403, 404, 409, 413, 415, 422, 429, 503
400

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.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment, or fewer credits than the list needs (need and have say how many).

403

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.

404

The email verifier is not available to your account.

409

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.

413

The body is larger than 4 MB, or the file has more rows, columns or characters than one list can hold.

415

The body is not application/json or text/csv, or it is not a CSV file.

422

This Idempotency-Key was already used with a different list.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl -X POST https://app.infrasuite.io/api/v1/verifier/lists \
  -H "Authorization: Bearer $INFRASUITE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "Q4 leads",
      "emails": [
        "•••••••••@example-one.com",
        "•••••••••@example-two.com"
      ]
    }'
{
  "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
}

GET/v1/verifier/lists/{id}

Get a list

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

idpath, stringrequired

The list's id, as returned when the list was started or listed.

Responses

200

The list.

Errors 401, 402, 403, 404, 429, 503
401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such list on your account, or the email verifier is not available to your account.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/verifier/lists/5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "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"
}

GET/v1/verifier/lists/{id}/results

Read a list's results

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

idpath, stringrequired

The list's id, as returned when the list was started or listed.

limitquery, integer

How many result rows to return in one page.

1 to 1000. Default 500

cursorquery, string

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.

Responses

200

One page of results.

Errors 400, 401, 402, 403, 404, 409, 410, 429, 503
400

limit or cursor is not valid.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such list on your account, or the email verifier is not available to your account.

409

The list is still being checked. Try again once it has finished (finished_at is set; status is completed or failed).

410

Results are kept for 60 days, and this list's have expired.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/verifier/lists/5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b/results \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
{
  "data": [
    {
      "row": 1,
      "email": "•••••••••@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
}

GET/v1/verifier/lists/{id}/results.csv

Download a list's results as a CSV

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

idpath, stringrequired

The list's id, as returned when the list was started or listed.

resultquery, enum

Which rows to download: every row (all), or only one result.

One of all, valid, catch_all, unknown, invalid. Default all

Responses

200

The result file.

Errors 400, 401, 402, 403, 404, 409, 410, 429, 503
400

result is not one of the values listed.

401

The API key is missing, malformed, replaced or revoked.

402

The account has an overdue payment.

403

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.

404

No such list on your account, or the email verifier is not available to your account.

409

The list is still being checked. Try again once it has finished (finished_at is set; status is completed or failed).

410

Results are kept for 60 days, and this list's have expired.

429

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.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/verifier/lists/5f0c2b9e-3a41-4d7e-9b8a-1c2d3e4f5a6b/results.csv \
  -H "Authorization: Bearer $INFRASUITE_API_KEY"
"Name","Email","Status","Domain","Role address","MX found","MX record","Mail provider"
"Ann Lee","•••••••••@example-one.com","Valid","example-one.com","No","Yes","mx.example-one.com","Google Workspace"

Reference

This document.

GET/v1/openapi.json

Get this document

The OpenAPI description of this API. It needs no key and may be cached for five minutes.

Responses

200

The OpenAPI document.

Errors 404, 503
404

The API is not available.

503

A temporary problem on our side. Try again shortly.

Request
curl https://app.infrasuite.io/api/v1/openapi.json
{
  "type": "about:blank",
  "title": "Temporarily unavailable",
  "status": 503,
  "code": "temporarily_unavailable",
  "detail": "Try again shortly."
}

Ready to scale with enterprise‑grade Microsoft mailboxes?

Tell us about your operation and we'll follow up within 24 hours to walk through what your setup requires.

By continuing, you agree to our Privacy Policy