# Sending domains

Add the domain your mail comes from, read the DNS records to publish, and check them again. This page is generated from the OpenAPI document of release `main-6976024`, the one the API serves, so it lists only what the API has.

How to authenticate, where errors are explained, and the other resources are in the [API reference](https://flyanote.com/docs/api).

## Operations

* [The account's sending domains](https://flyanote.com/docs/api/domains#list-domains): `GET /v1/domains`
* [Add a sending domain](https://flyanote.com/docs/api/domains#create-domain): `POST /v1/domains`
* [A sending domain, with the DNS records to add](https://flyanote.com/docs/api/domains#get-domain): `GET /v1/domains/{id}`
* [Remove a sending domain](https://flyanote.com/docs/api/domains#delete-domain): `DELETE /v1/domains/{id}`
* [Check a sending domain's records again](https://flyanote.com/docs/api/domains#check-domain): `POST /v1/domains/{id}/check`

## The account's sending domains

`GET /v1/domains`

Its API key needs `domains:read`.

### Answers

* **200**: Every domain, newest first
* **401**:  
  * API key missing ([api\_key\_missing](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#api-keys-unavailable))
  * Domains unavailable ([domains\_unavailable](https://flyanote.com/docs/errors#domains-unavailable))

### What a 200 answers

| Field                                               | What it is                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| data (required)                                     | a list, each an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| data\[\].id (required)                              | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| data\[\].domain (required)                          | text. As stored: lowercase, international names in punycode.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[\].mode (required)                            | text. own: a domain you own. flyanote\_address: a Flyanote address (<name>.flyanote.email).                                                                                                                                                                                                                                                                                                                                                                                                       |
| data\[\].setup (required)                           | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| data\[\].setup.status (required)                    | text. Flyanote's side: pending until your records point at Flyanote, ready once Flyanote has set the domain up behind them (within minutes of that), failed if it can't (see failure).                                                                                                                                                                                                                                                                                                            |
| data\[\].setup.failure (required)                   | text, or null. Why setup failed, or null: domain\_in\_use (the domain, or a domain above it, is already verified in another Flyanote account, or held outside Flyanote), identity\_quota, or ses\_refused.                                                                                                                                                                                                                                                                                        |
| data\[\].verification (required)                    | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| data\[\].verification.state (required)              | text. checking until it verifies (for up to 3 days); verified once it can send; needs\_attention when a verified domain's records broke and sending from it stopped; stopped when 3 days passed without verifying, or 14 days in needs\_attention released the domain (reasons say released), and checking stopped (check again to restart); setup\_failed when Flyanote couldn't set it up (see setup.failure): check again does nothing, so remove it and add it again once the cause is fixed. |
| data\[\].verification.dkim (required)               | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| data\[\].verification.mail\_from (required)         | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| data\[\].verification.dmarc (required)              | text. pending, verified (a DMARC record that parses), or failed. DMARC never blocks sending.                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[\].verification.reasons (required)            | an object. Why each isn't verified, or null: missing, wrong\_value, duplicate, ses\_failed, not\_verified (3 days passed), refused (sending was refused over it), identity\_missing, held (another Flyanote account still holds the name, or a domain above it, unverified, until it gives it back), released (its records stayed broken for 14 days, so Flyanote gave the name up), or for DMARC invalid.                                                                                        |
| data\[\].verification.reasons.dkim (required)       | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[\].verification.reasons.mail\_from (required) | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[\].verification.reasons.dmarc (required)      | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data\[\].verification.checked\_at (required)        | a date and time (RFC 3339), or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[\].verification.next\_check\_at (required)    | a date and time (RFC 3339), or null. Null once checking stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| data\[\].verification.verified\_at (required)       | a date and time (RFC 3339), or null. When DKIM and MAIL FROM first both verified.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| data\[\].verification.failed\_at (required)         | a date and time (RFC 3339), or null. When the current failure began, or null.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[\].verification.release\_at (required)        | a date and time (RFC 3339), or null. While it needs attention and the account has been warned, when Flyanote releases the domain unless its records are back, as the warning emails say; otherwise null.                                                                                                                                                                                                                                                                                          |
| data\[\].verification.check\_again\_at (required)   | a date and time (RFC 3339), or null. When the domain can next be checked on request (POST …/{id}/check), or null for now.                                                                                                                                                                                                                                                                                                                                                                         |
| data\[\].records (required)                         | a list, each an object. The exact records to add at your DNS host, each with what the last check found. Add them once: Flyanote can change keys and regions behind them without you touching DNS again.                                                                                                                                                                                                                                                                                           |
| data\[\].records\[\].purpose (required)             | text. dkim signs your mail; mail\_from aligns its bounces (SPF); dmarc (suggested, only when the domain has no DMARC record that works) tells inboxes you have DMARC.                                                                                                                                                                                                                                                                                                                             |
| data\[\].records\[\].type (required)                | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| data\[\].records\[\].name (required)                | text. The record name, in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data\[\].records\[\].host (required)                | text. The name without the domain, as most DNS hosts want it in their Host field (they add the domain themselves).                                                                                                                                                                                                                                                                                                                                                                                |
| data\[\].records\[\].value (required)               | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| data\[\].records\[\].required (required)            | true or false. DKIM and MAIL FROM are required to send; DMARC is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| data\[\].records\[\].status (required)              | text. pending, verified, or failed, as the last check found it.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| data\[\].records\[\].found (required)               | true or false. Whether DNS has this record exactly as shown, even if it isn't verified yet.                                                                                                                                                                                                                                                                                                                                                                                                       |
| data\[\].records\[\].problem (required)             | text, or null. What's wrong with it in DNS, or null: missing (not there yet), wrong\_value (there, but pointing somewhere else), duplicate (more than one), or for DMARC invalid.                                                                                                                                                                                                                                                                                                                 |
| data\[\].reply\_to (required)                       | an object, or null. A Flyanote address's reply-to mailbox, where replies to its mail go. Null for a domain of your own.                                                                                                                                                                                                                                                                                                                                                                           |
| data\[\].reply\_to.mailbox (required)               | text, or null. The mailbox replies go to, once its owner confirmed it, or null. The address sends only once it has one, and its mail always carries it as Reply-To.                                                                                                                                                                                                                                                                                                                               |
| data\[\].reply\_to.verified\_at (required)          | a date and time (RFC 3339), or null. When its owner confirmed it.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| data\[\].reply\_to.request (required)               | an object, or null. The last confirmation asked for (POST /v1/app/addresses/{id}/reply-to), or null.                                                                                                                                                                                                                                                                                                                                                                                              |
| data\[\].reply\_to.request.mailbox (required)       | text. The mailbox asked for.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| data\[\].reply\_to.request.state (required)         | text. pending until its owner opens the email Flyanote sent it and confirms, for up to 3 days; confirmed; cancelled if they chose "This wasn't me"; or expired after 3 days without an answer (ask again).                                                                                                                                                                                                                                                                                        |
| data\[\].created\_at (required)                     | a date and time (RFC 3339).                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## Add a sending domain

`POST /v1/domains`

Returns the two CNAME records to add at your DNS host. Flyanote checks for them every few minutes for the first hour, then hourly, for up to 3 days: once they point at Flyanote it sets the domain up behind them (`setup.status` turns `ready`), and the domain verifies within minutes after that. Adding a domain the account already has returns it with 200, so a retry is safe.

Its API key needs `domains:write`.

### Request body

A `application/json` body.

| Field             | What it is                                                                                                                                                 |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| domain (required) | text, up to 1,024 characters. The domain you'll send from: your organization's own, not a free mailbox provider's. Adding one you already have returns it. |

### Answers

* **200**: The domain, which the account already had
* **201**: The domain, added
* **400**:  
  * Malformed request ([malformed\_request](https://flyanote.com/docs/errors#malformed-request))
* **401**:  
  * API key missing ([api\_key\_missing](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
  * Test keys can't do this ([test\_key\_not\_allowed](https://flyanote.com/docs/errors#test-key-not-allowed))
  * Account paused ([account\_paused](https://flyanote.com/docs/errors#account-paused))
  * Not one of this key's domains ([api\_key\_domain\_not\_allowed](https://flyanote.com/docs/errors#api-key-domain-not-allowed))
* **409**:  
  * Too many domains ([domain\_limit\_reached](https://flyanote.com/docs/errors#domain-limit-reached))
  * Too many domains waiting to verify ([domain\_pending\_limit\_reached](https://flyanote.com/docs/errors#domain-pending-limit-reached))
* **413**:  
  * Request body too large ([payload\_too\_large](https://flyanote.com/docs/errors#payload-too-large))
* **415**:  
  * Unsupported media type ([unsupported\_media\_type](https://flyanote.com/docs/errors#unsupported-media-type))
* **422**:  
  * Not a usable domain ([domain\_invalid](https://flyanote.com/docs/errors#domain-invalid))
  * A freemail domain can't be used ([domain\_freemail](https://flyanote.com/docs/errors#domain-freemail))
  * Flyanote's own domains can't be added ([domain\_reserved](https://flyanote.com/docs/errors#domain-reserved))
  * Only test domains here ([domain\_test\_only](https://flyanote.com/docs/errors#domain-test-only))
  * Validation failed ([validation\_failed](https://flyanote.com/docs/errors#validation-failed))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
  * Too many domain changes ([domain\_changes\_throttled](https://flyanote.com/docs/errors#domain-changes-throttled))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#api-keys-unavailable))
  * Domains unavailable ([domains\_unavailable](https://flyanote.com/docs/errors#domains-unavailable))

### What a 200 answers

| Field                                      | What it is                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id (required)                              | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| domain (required)                          | text. As stored: lowercase, international names in punycode.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| mode (required)                            | text. own: a domain you own. flyanote\_address: a Flyanote address (<name>.flyanote.email).                                                                                                                                                                                                                                                                                                                                                                                                       |
| setup (required)                           | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| setup.status (required)                    | text. Flyanote's side: pending until your records point at Flyanote, ready once Flyanote has set the domain up behind them (within minutes of that), failed if it can't (see failure).                                                                                                                                                                                                                                                                                                            |
| setup.failure (required)                   | text, or null. Why setup failed, or null: domain\_in\_use (the domain, or a domain above it, is already verified in another Flyanote account, or held outside Flyanote), identity\_quota, or ses\_refused.                                                                                                                                                                                                                                                                                        |
| verification (required)                    | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| verification.state (required)              | text. checking until it verifies (for up to 3 days); verified once it can send; needs\_attention when a verified domain's records broke and sending from it stopped; stopped when 3 days passed without verifying, or 14 days in needs\_attention released the domain (reasons say released), and checking stopped (check again to restart); setup\_failed when Flyanote couldn't set it up (see setup.failure): check again does nothing, so remove it and add it again once the cause is fixed. |
| verification.dkim (required)               | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.mail\_from (required)         | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.dmarc (required)              | text. pending, verified (a DMARC record that parses), or failed. DMARC never blocks sending.                                                                                                                                                                                                                                                                                                                                                                                                      |
| verification.reasons (required)            | an object. Why each isn't verified, or null: missing, wrong\_value, duplicate, ses\_failed, not\_verified (3 days passed), refused (sending was refused over it), identity\_missing, held (another Flyanote account still holds the name, or a domain above it, unverified, until it gives it back), released (its records stayed broken for 14 days, so Flyanote gave the name up), or for DMARC invalid.                                                                                        |
| verification.reasons.dkim (required)       | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.mail\_from (required) | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.dmarc (required)      | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.checked\_at (required)        | a date and time (RFC 3339), or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| verification.next\_check\_at (required)    | a date and time (RFC 3339), or null. Null once checking stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| verification.verified\_at (required)       | a date and time (RFC 3339), or null. When DKIM and MAIL FROM first both verified.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| verification.failed\_at (required)         | a date and time (RFC 3339), or null. When the current failure began, or null.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| verification.release\_at (required)        | a date and time (RFC 3339), or null. While it needs attention and the account has been warned, when Flyanote releases the domain unless its records are back, as the warning emails say; otherwise null.                                                                                                                                                                                                                                                                                          |
| verification.check\_again\_at (required)   | a date and time (RFC 3339), or null. When the domain can next be checked on request (POST …/{id}/check), or null for now.                                                                                                                                                                                                                                                                                                                                                                         |
| records (required)                         | a list, each an object. The exact records to add at your DNS host, each with what the last check found. Add them once: Flyanote can change keys and regions behind them without you touching DNS again.                                                                                                                                                                                                                                                                                           |
| records\[\].purpose (required)             | text. dkim signs your mail; mail\_from aligns its bounces (SPF); dmarc (suggested, only when the domain has no DMARC record that works) tells inboxes you have DMARC.                                                                                                                                                                                                                                                                                                                             |
| records\[\].type (required)                | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].name (required)                | text. The record name, in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].host (required)                | text. The name without the domain, as most DNS hosts want it in their Host field (they add the domain themselves).                                                                                                                                                                                                                                                                                                                                                                                |
| records\[\].value (required)               | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].required (required)            | true or false. DKIM and MAIL FROM are required to send; DMARC is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| records\[\].status (required)              | text. pending, verified, or failed, as the last check found it.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].found (required)               | true or false. Whether DNS has this record exactly as shown, even if it isn't verified yet.                                                                                                                                                                                                                                                                                                                                                                                                       |
| records\[\].problem (required)             | text, or null. What's wrong with it in DNS, or null: missing (not there yet), wrong\_value (there, but pointing somewhere else), duplicate (more than one), or for DMARC invalid.                                                                                                                                                                                                                                                                                                                 |
| reply\_to (required)                       | an object, or null. A Flyanote address's reply-to mailbox, where replies to its mail go. Null for a domain of your own.                                                                                                                                                                                                                                                                                                                                                                           |
| reply\_to.mailbox (required)               | text, or null. The mailbox replies go to, once its owner confirmed it, or null. The address sends only once it has one, and its mail always carries it as Reply-To.                                                                                                                                                                                                                                                                                                                               |
| reply\_to.verified\_at (required)          | a date and time (RFC 3339), or null. When its owner confirmed it.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| reply\_to.request (required)               | an object, or null. The last confirmation asked for (POST /v1/app/addresses/{id}/reply-to), or null.                                                                                                                                                                                                                                                                                                                                                                                              |
| reply\_to.request.mailbox (required)       | text. The mailbox asked for.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| reply\_to.request.state (required)         | text. pending until its owner opens the email Flyanote sent it and confirms, for up to 3 days; confirmed; cancelled if they chose "This wasn't me"; or expired after 3 days without an answer (ask again).                                                                                                                                                                                                                                                                                        |
| created\_at (required)                     | a date and time (RFC 3339).                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

### What a 201 answers

| Field                                      | What it is                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id (required)                              | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| domain (required)                          | text. As stored: lowercase, international names in punycode.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| mode (required)                            | text. own: a domain you own. flyanote\_address: a Flyanote address (<name>.flyanote.email).                                                                                                                                                                                                                                                                                                                                                                                                       |
| setup (required)                           | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| setup.status (required)                    | text. Flyanote's side: pending until your records point at Flyanote, ready once Flyanote has set the domain up behind them (within minutes of that), failed if it can't (see failure).                                                                                                                                                                                                                                                                                                            |
| setup.failure (required)                   | text, or null. Why setup failed, or null: domain\_in\_use (the domain, or a domain above it, is already verified in another Flyanote account, or held outside Flyanote), identity\_quota, or ses\_refused.                                                                                                                                                                                                                                                                                        |
| verification (required)                    | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| verification.state (required)              | text. checking until it verifies (for up to 3 days); verified once it can send; needs\_attention when a verified domain's records broke and sending from it stopped; stopped when 3 days passed without verifying, or 14 days in needs\_attention released the domain (reasons say released), and checking stopped (check again to restart); setup\_failed when Flyanote couldn't set it up (see setup.failure): check again does nothing, so remove it and add it again once the cause is fixed. |
| verification.dkim (required)               | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.mail\_from (required)         | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.dmarc (required)              | text. pending, verified (a DMARC record that parses), or failed. DMARC never blocks sending.                                                                                                                                                                                                                                                                                                                                                                                                      |
| verification.reasons (required)            | an object. Why each isn't verified, or null: missing, wrong\_value, duplicate, ses\_failed, not\_verified (3 days passed), refused (sending was refused over it), identity\_missing, held (another Flyanote account still holds the name, or a domain above it, unverified, until it gives it back), released (its records stayed broken for 14 days, so Flyanote gave the name up), or for DMARC invalid.                                                                                        |
| verification.reasons.dkim (required)       | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.mail\_from (required) | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.dmarc (required)      | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.checked\_at (required)        | a date and time (RFC 3339), or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| verification.next\_check\_at (required)    | a date and time (RFC 3339), or null. Null once checking stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| verification.verified\_at (required)       | a date and time (RFC 3339), or null. When DKIM and MAIL FROM first both verified.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| verification.failed\_at (required)         | a date and time (RFC 3339), or null. When the current failure began, or null.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| verification.release\_at (required)        | a date and time (RFC 3339), or null. While it needs attention and the account has been warned, when Flyanote releases the domain unless its records are back, as the warning emails say; otherwise null.                                                                                                                                                                                                                                                                                          |
| verification.check\_again\_at (required)   | a date and time (RFC 3339), or null. When the domain can next be checked on request (POST …/{id}/check), or null for now.                                                                                                                                                                                                                                                                                                                                                                         |
| records (required)                         | a list, each an object. The exact records to add at your DNS host, each with what the last check found. Add them once: Flyanote can change keys and regions behind them without you touching DNS again.                                                                                                                                                                                                                                                                                           |
| records\[\].purpose (required)             | text. dkim signs your mail; mail\_from aligns its bounces (SPF); dmarc (suggested, only when the domain has no DMARC record that works) tells inboxes you have DMARC.                                                                                                                                                                                                                                                                                                                             |
| records\[\].type (required)                | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].name (required)                | text. The record name, in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].host (required)                | text. The name without the domain, as most DNS hosts want it in their Host field (they add the domain themselves).                                                                                                                                                                                                                                                                                                                                                                                |
| records\[\].value (required)               | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].required (required)            | true or false. DKIM and MAIL FROM are required to send; DMARC is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| records\[\].status (required)              | text. pending, verified, or failed, as the last check found it.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].found (required)               | true or false. Whether DNS has this record exactly as shown, even if it isn't verified yet.                                                                                                                                                                                                                                                                                                                                                                                                       |
| records\[\].problem (required)             | text, or null. What's wrong with it in DNS, or null: missing (not there yet), wrong\_value (there, but pointing somewhere else), duplicate (more than one), or for DMARC invalid.                                                                                                                                                                                                                                                                                                                 |
| reply\_to (required)                       | an object, or null. A Flyanote address's reply-to mailbox, where replies to its mail go. Null for a domain of your own.                                                                                                                                                                                                                                                                                                                                                                           |
| reply\_to.mailbox (required)               | text, or null. The mailbox replies go to, once its owner confirmed it, or null. The address sends only once it has one, and its mail always carries it as Reply-To.                                                                                                                                                                                                                                                                                                                               |
| reply\_to.verified\_at (required)          | a date and time (RFC 3339), or null. When its owner confirmed it.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| reply\_to.request (required)               | an object, or null. The last confirmation asked for (POST /v1/app/addresses/{id}/reply-to), or null.                                                                                                                                                                                                                                                                                                                                                                                              |
| reply\_to.request.mailbox (required)       | text. The mailbox asked for.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| reply\_to.request.state (required)         | text. pending until its owner opens the email Flyanote sent it and confirms, for up to 3 days; confirmed; cancelled if they chose "This wasn't me"; or expired after 3 days without an answer (ask again).                                                                                                                                                                                                                                                                                        |
| created\_at (required)                     | a date and time (RFC 3339).                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## A sending domain, with the DNS records to add

`GET /v1/domains/{id}`

Its API key needs `domains:read`.

### Parameters

| Parameter     | What it is                              |
| ------------- | --------------------------------------- |
| id (required) | text, up to 64 characters, in the path. |

### Answers

* **200**: The domain
* **401**:  
  * API key missing ([api\_key\_missing](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
* **404**:  
  * Domain not found ([domain\_not\_found](https://flyanote.com/docs/errors#domain-not-found))
* **422**:  
  * Validation failed ([validation\_failed](https://flyanote.com/docs/errors#validation-failed))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#api-keys-unavailable))
  * Domains unavailable ([domains\_unavailable](https://flyanote.com/docs/errors#domains-unavailable))

### What a 200 answers

| Field                                      | What it is                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id (required)                              | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| domain (required)                          | text. As stored: lowercase, international names in punycode.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| mode (required)                            | text. own: a domain you own. flyanote\_address: a Flyanote address (<name>.flyanote.email).                                                                                                                                                                                                                                                                                                                                                                                                       |
| setup (required)                           | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| setup.status (required)                    | text. Flyanote's side: pending until your records point at Flyanote, ready once Flyanote has set the domain up behind them (within minutes of that), failed if it can't (see failure).                                                                                                                                                                                                                                                                                                            |
| setup.failure (required)                   | text, or null. Why setup failed, or null: domain\_in\_use (the domain, or a domain above it, is already verified in another Flyanote account, or held outside Flyanote), identity\_quota, or ses\_refused.                                                                                                                                                                                                                                                                                        |
| verification (required)                    | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| verification.state (required)              | text. checking until it verifies (for up to 3 days); verified once it can send; needs\_attention when a verified domain's records broke and sending from it stopped; stopped when 3 days passed without verifying, or 14 days in needs\_attention released the domain (reasons say released), and checking stopped (check again to restart); setup\_failed when Flyanote couldn't set it up (see setup.failure): check again does nothing, so remove it and add it again once the cause is fixed. |
| verification.dkim (required)               | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.mail\_from (required)         | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.dmarc (required)              | text. pending, verified (a DMARC record that parses), or failed. DMARC never blocks sending.                                                                                                                                                                                                                                                                                                                                                                                                      |
| verification.reasons (required)            | an object. Why each isn't verified, or null: missing, wrong\_value, duplicate, ses\_failed, not\_verified (3 days passed), refused (sending was refused over it), identity\_missing, held (another Flyanote account still holds the name, or a domain above it, unverified, until it gives it back), released (its records stayed broken for 14 days, so Flyanote gave the name up), or for DMARC invalid.                                                                                        |
| verification.reasons.dkim (required)       | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.mail\_from (required) | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.dmarc (required)      | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.checked\_at (required)        | a date and time (RFC 3339), or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| verification.next\_check\_at (required)    | a date and time (RFC 3339), or null. Null once checking stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| verification.verified\_at (required)       | a date and time (RFC 3339), or null. When DKIM and MAIL FROM first both verified.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| verification.failed\_at (required)         | a date and time (RFC 3339), or null. When the current failure began, or null.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| verification.release\_at (required)        | a date and time (RFC 3339), or null. While it needs attention and the account has been warned, when Flyanote releases the domain unless its records are back, as the warning emails say; otherwise null.                                                                                                                                                                                                                                                                                          |
| verification.check\_again\_at (required)   | a date and time (RFC 3339), or null. When the domain can next be checked on request (POST …/{id}/check), or null for now.                                                                                                                                                                                                                                                                                                                                                                         |
| records (required)                         | a list, each an object. The exact records to add at your DNS host, each with what the last check found. Add them once: Flyanote can change keys and regions behind them without you touching DNS again.                                                                                                                                                                                                                                                                                           |
| records\[\].purpose (required)             | text. dkim signs your mail; mail\_from aligns its bounces (SPF); dmarc (suggested, only when the domain has no DMARC record that works) tells inboxes you have DMARC.                                                                                                                                                                                                                                                                                                                             |
| records\[\].type (required)                | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].name (required)                | text. The record name, in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].host (required)                | text. The name without the domain, as most DNS hosts want it in their Host field (they add the domain themselves).                                                                                                                                                                                                                                                                                                                                                                                |
| records\[\].value (required)               | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].required (required)            | true or false. DKIM and MAIL FROM are required to send; DMARC is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| records\[\].status (required)              | text. pending, verified, or failed, as the last check found it.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].found (required)               | true or false. Whether DNS has this record exactly as shown, even if it isn't verified yet.                                                                                                                                                                                                                                                                                                                                                                                                       |
| records\[\].problem (required)             | text, or null. What's wrong with it in DNS, or null: missing (not there yet), wrong\_value (there, but pointing somewhere else), duplicate (more than one), or for DMARC invalid.                                                                                                                                                                                                                                                                                                                 |
| reply\_to (required)                       | an object, or null. A Flyanote address's reply-to mailbox, where replies to its mail go. Null for a domain of your own.                                                                                                                                                                                                                                                                                                                                                                           |
| reply\_to.mailbox (required)               | text, or null. The mailbox replies go to, once its owner confirmed it, or null. The address sends only once it has one, and its mail always carries it as Reply-To.                                                                                                                                                                                                                                                                                                                               |
| reply\_to.verified\_at (required)          | a date and time (RFC 3339), or null. When its owner confirmed it.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| reply\_to.request (required)               | an object, or null. The last confirmation asked for (POST /v1/app/addresses/{id}/reply-to), or null.                                                                                                                                                                                                                                                                                                                                                                                              |
| reply\_to.request.mailbox (required)       | text. The mailbox asked for.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| reply\_to.request.state (required)         | text. pending until its owner opens the email Flyanote sent it and confirms, for up to 3 days; confirmed; cancelled if they chose "This wasn't me"; or expired after 3 days without an answer (ask again).                                                                                                                                                                                                                                                                                        |
| created\_at (required)                     | a date and time (RFC 3339).                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## Remove a sending domain

`DELETE /v1/domains/{id}`

Stops sending from the domain, and removes Flyanote's side of its setup. The CNAMEs at your DNS host can stay: adding the domain back reuses them. A Flyanote address is released only in the app, since its name is used up for good (403 `address_app_only` for an API key).

Its API key needs `domains:write`.

### Parameters

| Parameter     | What it is                              |
| ------------- | --------------------------------------- |
| id (required) | text, up to 64 characters, in the path. |

### Answers

* **200**: The domain, removed
* **401**:  
  * API key missing ([api\_key\_missing](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
  * Test keys can't do this ([test\_key\_not\_allowed](https://flyanote.com/docs/errors#test-key-not-allowed))
  * Account paused ([account\_paused](https://flyanote.com/docs/errors#account-paused))
  * Only in the app ([address\_app\_only](https://flyanote.com/docs/errors#address-app-only))
  * Not one of this key's domains ([api\_key\_domain\_not\_allowed](https://flyanote.com/docs/errors#api-key-domain-not-allowed))
* **404**:  
  * Domain not found ([domain\_not\_found](https://flyanote.com/docs/errors#domain-not-found))
* **422**:  
  * Validation failed ([validation\_failed](https://flyanote.com/docs/errors#validation-failed))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
  * Too many domain changes ([domain\_changes\_throttled](https://flyanote.com/docs/errors#domain-changes-throttled))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#api-keys-unavailable))
  * Domains unavailable ([domains\_unavailable](https://flyanote.com/docs/errors#domains-unavailable))

### What a 200 answers

| Field                                      | What it is                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id (required)                              | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| domain (required)                          | text. As stored: lowercase, international names in punycode.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| mode (required)                            | text. own: a domain you own. flyanote\_address: a Flyanote address (<name>.flyanote.email).                                                                                                                                                                                                                                                                                                                                                                                                       |
| setup (required)                           | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| setup.status (required)                    | text. Flyanote's side: pending until your records point at Flyanote, ready once Flyanote has set the domain up behind them (within minutes of that), failed if it can't (see failure).                                                                                                                                                                                                                                                                                                            |
| setup.failure (required)                   | text, or null. Why setup failed, or null: domain\_in\_use (the domain, or a domain above it, is already verified in another Flyanote account, or held outside Flyanote), identity\_quota, or ses\_refused.                                                                                                                                                                                                                                                                                        |
| verification (required)                    | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| verification.state (required)              | text. checking until it verifies (for up to 3 days); verified once it can send; needs\_attention when a verified domain's records broke and sending from it stopped; stopped when 3 days passed without verifying, or 14 days in needs\_attention released the domain (reasons say released), and checking stopped (check again to restart); setup\_failed when Flyanote couldn't set it up (see setup.failure): check again does nothing, so remove it and add it again once the cause is fixed. |
| verification.dkim (required)               | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.mail\_from (required)         | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.dmarc (required)              | text. pending, verified (a DMARC record that parses), or failed. DMARC never blocks sending.                                                                                                                                                                                                                                                                                                                                                                                                      |
| verification.reasons (required)            | an object. Why each isn't verified, or null: missing, wrong\_value, duplicate, ses\_failed, not\_verified (3 days passed), refused (sending was refused over it), identity\_missing, held (another Flyanote account still holds the name, or a domain above it, unverified, until it gives it back), released (its records stayed broken for 14 days, so Flyanote gave the name up), or for DMARC invalid.                                                                                        |
| verification.reasons.dkim (required)       | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.mail\_from (required) | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.dmarc (required)      | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.checked\_at (required)        | a date and time (RFC 3339), or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| verification.next\_check\_at (required)    | a date and time (RFC 3339), or null. Null once checking stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| verification.verified\_at (required)       | a date and time (RFC 3339), or null. When DKIM and MAIL FROM first both verified.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| verification.failed\_at (required)         | a date and time (RFC 3339), or null. When the current failure began, or null.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| verification.release\_at (required)        | a date and time (RFC 3339), or null. While it needs attention and the account has been warned, when Flyanote releases the domain unless its records are back, as the warning emails say; otherwise null.                                                                                                                                                                                                                                                                                          |
| verification.check\_again\_at (required)   | a date and time (RFC 3339), or null. When the domain can next be checked on request (POST …/{id}/check), or null for now.                                                                                                                                                                                                                                                                                                                                                                         |
| records (required)                         | a list, each an object. The exact records to add at your DNS host, each with what the last check found. Add them once: Flyanote can change keys and regions behind them without you touching DNS again.                                                                                                                                                                                                                                                                                           |
| records\[\].purpose (required)             | text. dkim signs your mail; mail\_from aligns its bounces (SPF); dmarc (suggested, only when the domain has no DMARC record that works) tells inboxes you have DMARC.                                                                                                                                                                                                                                                                                                                             |
| records\[\].type (required)                | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].name (required)                | text. The record name, in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].host (required)                | text. The name without the domain, as most DNS hosts want it in their Host field (they add the domain themselves).                                                                                                                                                                                                                                                                                                                                                                                |
| records\[\].value (required)               | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].required (required)            | true or false. DKIM and MAIL FROM are required to send; DMARC is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| records\[\].status (required)              | text. pending, verified, or failed, as the last check found it.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].found (required)               | true or false. Whether DNS has this record exactly as shown, even if it isn't verified yet.                                                                                                                                                                                                                                                                                                                                                                                                       |
| records\[\].problem (required)             | text, or null. What's wrong with it in DNS, or null: missing (not there yet), wrong\_value (there, but pointing somewhere else), duplicate (more than one), or for DMARC invalid.                                                                                                                                                                                                                                                                                                                 |
| reply\_to (required)                       | an object, or null. A Flyanote address's reply-to mailbox, where replies to its mail go. Null for a domain of your own.                                                                                                                                                                                                                                                                                                                                                                           |
| reply\_to.mailbox (required)               | text, or null. The mailbox replies go to, once its owner confirmed it, or null. The address sends only once it has one, and its mail always carries it as Reply-To.                                                                                                                                                                                                                                                                                                                               |
| reply\_to.verified\_at (required)          | a date and time (RFC 3339), or null. When its owner confirmed it.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| reply\_to.request (required)               | an object, or null. The last confirmation asked for (POST /v1/app/addresses/{id}/reply-to), or null.                                                                                                                                                                                                                                                                                                                                                                                              |
| reply\_to.request.mailbox (required)       | text. The mailbox asked for.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| reply\_to.request.state (required)         | text. pending until its owner opens the email Flyanote sent it and confirms, for up to 3 days; confirmed; cancelled if they chose "This wasn't me"; or expired after 3 days without an answer (ask again).                                                                                                                                                                                                                                                                                        |
| created\_at (required)                     | a date and time (RFC 3339).                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## Check a sending domain's records again

`POST /v1/domains/{id}/check`

Checks the domain's DNS records again now, rather than at its next scheduled check, and for a domain that stopped checking after 3 days, starts 3 more days of checks. Per domain, the waits between checks grow with the checks asked for in the last hour: 30 seconds, 30 seconds, 1 minute, 2 minutes, 5 minutes, then 10 minutes. Sooner, nothing more is queued, and `verification.check_again_at` says when. An account may ask 12 times an hour in all (429 `domain_checks_throttled`). The result shows up on the domain within a minute or so.

Its API key needs `domains:write`.

### Parameters

| Parameter     | What it is                              |
| ------------- | --------------------------------------- |
| id (required) | text, up to 64 characters, in the path. |

### Answers

* **202**: The domain, with its check queued, or when the next may be asked for
* **401**:  
  * API key missing ([api\_key\_missing](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
  * Test keys can't do this ([test\_key\_not\_allowed](https://flyanote.com/docs/errors#test-key-not-allowed))
  * Not one of this key's domains ([api\_key\_domain\_not\_allowed](https://flyanote.com/docs/errors#api-key-domain-not-allowed))
* **404**:  
  * Domain not found ([domain\_not\_found](https://flyanote.com/docs/errors#domain-not-found))
* **422**:  
  * Validation failed ([validation\_failed](https://flyanote.com/docs/errors#validation-failed))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
  * Too many domain checks ([domain\_checks\_throttled](https://flyanote.com/docs/errors#domain-checks-throttled))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#api-keys-unavailable))
  * Domains unavailable ([domains\_unavailable](https://flyanote.com/docs/errors#domains-unavailable))

### What a 202 answers

| Field                                      | What it is                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id (required)                              | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| domain (required)                          | text. As stored: lowercase, international names in punycode.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| mode (required)                            | text. own: a domain you own. flyanote\_address: a Flyanote address (<name>.flyanote.email).                                                                                                                                                                                                                                                                                                                                                                                                       |
| setup (required)                           | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| setup.status (required)                    | text. Flyanote's side: pending until your records point at Flyanote, ready once Flyanote has set the domain up behind them (within minutes of that), failed if it can't (see failure).                                                                                                                                                                                                                                                                                                            |
| setup.failure (required)                   | text, or null. Why setup failed, or null: domain\_in\_use (the domain, or a domain above it, is already verified in another Flyanote account, or held outside Flyanote), identity\_quota, or ses\_refused.                                                                                                                                                                                                                                                                                        |
| verification (required)                    | an object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| verification.state (required)              | text. checking until it verifies (for up to 3 days); verified once it can send; needs\_attention when a verified domain's records broke and sending from it stopped; stopped when 3 days passed without verifying, or 14 days in needs\_attention released the domain (reasons say released), and checking stopped (check again to restart); setup\_failed when Flyanote couldn't set it up (see setup.failure): check again does nothing, so remove it and add it again once the cause is fixed. |
| verification.dkim (required)               | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.mail\_from (required)         | text. pending, verified, or failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| verification.dmarc (required)              | text. pending, verified (a DMARC record that parses), or failed. DMARC never blocks sending.                                                                                                                                                                                                                                                                                                                                                                                                      |
| verification.reasons (required)            | an object. Why each isn't verified, or null: missing, wrong\_value, duplicate, ses\_failed, not\_verified (3 days passed), refused (sending was refused over it), identity\_missing, held (another Flyanote account still holds the name, or a domain above it, unverified, until it gives it back), released (its records stayed broken for 14 days, so Flyanote gave the name up), or for DMARC invalid.                                                                                        |
| verification.reasons.dkim (required)       | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.mail\_from (required) | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.reasons.dmarc (required)      | text, or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| verification.checked\_at (required)        | a date and time (RFC 3339), or null.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| verification.next\_check\_at (required)    | a date and time (RFC 3339), or null. Null once checking stopped.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| verification.verified\_at (required)       | a date and time (RFC 3339), or null. When DKIM and MAIL FROM first both verified.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| verification.failed\_at (required)         | a date and time (RFC 3339), or null. When the current failure began, or null.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| verification.release\_at (required)        | a date and time (RFC 3339), or null. While it needs attention and the account has been warned, when Flyanote releases the domain unless its records are back, as the warning emails say; otherwise null.                                                                                                                                                                                                                                                                                          |
| verification.check\_again\_at (required)   | a date and time (RFC 3339), or null. When the domain can next be checked on request (POST …/{id}/check), or null for now.                                                                                                                                                                                                                                                                                                                                                                         |
| records (required)                         | a list, each an object. The exact records to add at your DNS host, each with what the last check found. Add them once: Flyanote can change keys and regions behind them without you touching DNS again.                                                                                                                                                                                                                                                                                           |
| records\[\].purpose (required)             | text. dkim signs your mail; mail\_from aligns its bounces (SPF); dmarc (suggested, only when the domain has no DMARC record that works) tells inboxes you have DMARC.                                                                                                                                                                                                                                                                                                                             |
| records\[\].type (required)                | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].name (required)                | text. The record name, in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].host (required)                | text. The name without the domain, as most DNS hosts want it in their Host field (they add the domain themselves).                                                                                                                                                                                                                                                                                                                                                                                |
| records\[\].value (required)               | text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| records\[\].required (required)            | true or false. DKIM and MAIL FROM are required to send; DMARC is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| records\[\].status (required)              | text. pending, verified, or failed, as the last check found it.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| records\[\].found (required)               | true or false. Whether DNS has this record exactly as shown, even if it isn't verified yet.                                                                                                                                                                                                                                                                                                                                                                                                       |
| records\[\].problem (required)             | text, or null. What's wrong with it in DNS, or null: missing (not there yet), wrong\_value (there, but pointing somewhere else), duplicate (more than one), or for DMARC invalid.                                                                                                                                                                                                                                                                                                                 |
| reply\_to (required)                       | an object, or null. A Flyanote address's reply-to mailbox, where replies to its mail go. Null for a domain of your own.                                                                                                                                                                                                                                                                                                                                                                           |
| reply\_to.mailbox (required)               | text, or null. The mailbox replies go to, once its owner confirmed it, or null. The address sends only once it has one, and its mail always carries it as Reply-To.                                                                                                                                                                                                                                                                                                                               |
| reply\_to.verified\_at (required)          | a date and time (RFC 3339), or null. When its owner confirmed it.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| reply\_to.request (required)               | an object, or null. The last confirmation asked for (POST /v1/app/addresses/{id}/reply-to), or null.                                                                                                                                                                                                                                                                                                                                                                                              |
| reply\_to.request.mailbox (required)       | text. The mailbox asked for.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| reply\_to.request.state (required)         | text. pending until its owner opens the email Flyanote sent it and confirms, for up to 3 days; confirmed; cancelled if they chose "This wasn't me"; or expired after 3 days without an answer (ask again).                                                                                                                                                                                                                                                                                        |
| created\_at (required)                     | a date and time (RFC 3339).                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
