FlaresendDocs
Domains

List domains

The project's sending domains, their default senders and their status in Cloudflare.

GET/v1/domainsAPI key

Returns one entry per domain in the project's allowed domains. For each one, Flaresend asks Cloudflare whether the domain is set up in Email Sending, and caches the answer for 10 minutes. Add ?refresh=1 to skip the cache.

Checking needs the mailer's CF_API_TOKEN secret. Without it every domain shows verification: "unknown". See Domains.

Setting up a domain

Onboarding a domain in Cloudflare (POST /v1/domains/:domain/setup) changes DNS records with the mailer's Cloudflare token, so it only works with the admin key. See Set up a domain.

Query parameters

refreshbooleanquerydefault: false

1 or true to ask Cloudflare now instead of using a status up to 10 minutes old.

Response

dataDomain[]
Show domain properties
domainstring

The domain, for example acme.com.

defaultFromstring | null

The sender used for this domain when a send leaves out from: the domain's own default sender, or else the project's default sender when that address is on this domain.

verification'onboarded' | 'pending' | 'missing' | 'unknown'

onboarded: set up and enabled in Cloudflare Email Sending. pending: added but not enabled yet. missing: no Cloudflare zone for the domain, or the zone doesn't list it as a sending domain. unknown: no CF_API_TOKEN, or the check failed.

detailsobject | null

What Cloudflare reported: zone, name, enabled, dkimSelector and returnPathDomain, or { reason } / { error } when the check found nothing or failed. Not present when there is no token.

checkedAtstring | null

When Cloudflare was last asked. null without a token.