Skip to content
Ask for an invite

How do I send from my own domain?

Add the domain with POST /v1/domains, publish the DNS records it answers at your DNS host, and Flyanote verifies it on its own once they appear; from then on, any address on it can send.

Mail from your own domain is signed as yours, which is what inboxes trust. The quick start adds one as its last step; this page is what to do when it doesn't go to plan.

What do I need?

  • A live API key whose scopes include domains:write. Test keys can't add domains (test_key_not_allowed): a domain is set up for real sending.
  • Your organization's own domain. A free mailbox provider's is refused (domain_freemail), and so are Flyanote's own (domain_reserved).
  • A way to add records at the domain's DNS host: its control panel, or whoever runs it for you.

With your live key in FLYANOTE_LIVE_KEY and your domain in place of example.org:

curl -sS https://app.flyanote.com/api/v1/domains \
  -H "Authorization: Bearer $FLYANOTE_LIVE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "example.org"}'

It answers 201 with the domain, or 200 if the account already has it, so a retry is safe and needs no Idempotency-Key.

Which DNS records do I add?

The ones in the answer's records, exactly as given. Each says what it's for (purpose), its type, its value, and its name twice: in full as name, and as host without the DNS zone it goes in, which is what most DNS hosts' Host field wants. For a subdomain whose records go in its parent domain's DNS, that's bounce.mail for mail.example.com. Flyanote finds the zone at its first check, a few minutes after you add the domain, and until then host is the name without the domain. So for a subdomain, read the domain again after that check, or add each record by its full name if your DNS host takes one.

  • dkim signs your mail as your domain's. Required to send.
  • mail_from makes your mail's bounces come back through your domain, so SPF aligns. Required to send.
  • dmarc is suggested only when the domain has no DMARC record that works. It's recommended, and never blocks sending.

You add them once. Flyanote can change its keys and regions behind them without you touching your DNS again.

How long does verification take?

It depends on when the records appear: Flyanote looks for them every few minutes for the first hour, then hourly, for up to 3 days. When they point at Flyanote, it sets the domain up behind them (setup.status turns ready), and the domain verifies within minutes after that.

Read the domain to see where it is:

export DOMAIN_ID='dom_…'
curl -sS "https://app.flyanote.com/api/v1/domains/$DOMAIN_ID" \
  -H "Authorization: Bearer $FLYANOTE_LIVE_KEY"

To look again now rather than wait for the next check, ask for one. Each answers 202 and shows up on the domain within a minute or so:

curl -sS -X POST "https://app.flyanote.com/api/v1/domains/$DOMAIN_ID/check" \
  -H "Authorization: Bearer $FLYANOTE_LIVE_KEY"

Asked-for checks of one domain are spaced out, more as you ask: 30 seconds, 30 seconds, 1 minute, 2, 5, then 10 minutes apart. Asked sooner, nothing more is queued, and verification.check_again_at says when. An account can ask 12 times an hour in all; past that, domain_checks_throttled.

How do I tell what's wrong?

Each record carries what the last check found: found (DNS has it exactly as shown), its status (pending, verified, or failed), and a problem:

  • missing: it isn't in DNS yet. New records can take a while to appear.
  • wrong_value: it's there, but points somewhere else. Copy the value again.
  • duplicate: there's more than one. Delete the extra.
  • invalid, for DMARC only: the record doesn't parse.

The domain's verification.state says where the whole domain is:

  • checking: Flyanote is looking for the records, for up to 3 days.
  • verified: it can send.
  • needs_attention: a verified domain's records broke, and sending from it stopped. Put them back. After 14 days like this Flyanote releases the domain, and verification.release_at says when once the account has been warned.
  • stopped: 3 days passed without the records, or a domain in needs_attention was released. Checking stopped: asking for a check starts 3 more days of them.
  • setup_failed: Flyanote couldn't set it up, and setup.failure says why: domain_in_use (the domain, or one above it, is verified in another Flyanote account, or held outside Flyanote), identity_quota, or ses_refused. A check does nothing here: remove the domain, fix the cause, and add it again.

verification.reasons gives each of DKIM, MAIL FROM, and DMARC's reason when it isn't verified.

How do I list or remove domains?

GET /v1/domains answers every domain the account has, newest first, with a key whose scopes include domains:read. To stop sending from one and remove Flyanote's side of it:

curl -sS -X DELETE "https://app.flyanote.com/api/v1/domains/$DOMAIN_ID" \
  -H "Authorization: Bearer $FLYANOTE_LIVE_KEY"

Your DNS records can stay: adding the domain again reuses them. A Flyanote address is removed only in the app, since its name can't be used again (address_app_only).

Every field and answer is in the domains reference, and every refusal's fix in API errors.