Skip to the documentation
API

Tools

Every operation in this group: what it accepts, what it returns and the errors it can answer with.

Operations

The free tools on the Nextmail website, which need no scope. Six check the public mail records of any domain: its SPF record with every include followed, a DKIM key at a selector, its MX hosts, its DMARC policy, its BIMI logo, and a deliverability report across all of them. They read public DNS and nothing in the workspace, and every answer is what DNS said at that moment. One reads the sign-in code in a message you pass in, and one prices every plan for a usage.

GET/tools/dmarc

Check a domain's DMARC policy

No scopeReads

Reads the domain's DMARC record from public DNS, or the record of the organisational domain it inherits from, and says how strict it is and what is wrong with it. stage is missing, invalid, monitor for p=none, quarantine or reject.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

domainstringRequired

The domain to check, such as acme.com. An email address, a URL or a domain with a trailing dot is read as its domain. Any public domain works, not only the ones in this workspace.

Up to 320 characters

Returns

What the DMARC record says.

Errors

422

invalid_parameter on domain: it does not read as a domain.

503

unreachable: public DNS did not answer for the domain just now. Nothing about the domain was decided, so try again in a moment.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
tools.checkDmarc()
Python
tools.check_dmarc()
Ruby
tools.check_dmarc
PHP
tools->checkDmarc
Go
Tools.CheckDmarc
Java
tools().checkDmarc
C#
Tools.CheckDmarcAsync
CLI
nextmail tools check-dmarc
MCP
checkDmarc

GET/tools/spf

Check a domain's SPF record

No scopeReads

Reads the domain's SPF record from public DNS and follows every include and redirect it points to. It checks every term, counts the DNS lookups against the limit of 10 and the empty lookups against the limit of 2, finds loops and includes with no record, names the senders it recognises and says what happens to mail from servers the record does not list. tree is the whole include tree, and findings lists everything it found, errors first.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

domainstringRequired

The domain to check, such as acme.com. An email address, a URL or a domain with a trailing dot is read as its domain. Any public domain works, not only the ones in this workspace.

Up to 320 characters

Returns

The record, its include tree and what was found.

Errors

422

invalid_parameter on domain: it does not read as a domain.

503

unreachable: public DNS did not answer for the domain just now. Nothing about the domain was decided, so try again in a moment.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
tools.checkSpf()
Python
tools.check_spf()
Ruby
tools.check_spf
PHP
tools->checkSpf
Go
Tools.CheckSpf
Java
tools().checkSpf
C#
Tools.CheckSpfAsync
CLI
nextmail tools check-spf
MCP
checkSpf

GET/tools/dkim

Check a domain's DKIM key

No scopeReads

Reads the DKIM key at selector._domainkey.domain and checks it: every tag, the key type and length read from the key itself, whether it is revoked or still in testing, and the hashes and services it allows. Without a selector it tries the selectors in common use and returns every key it finds, since a domain never lists its selectors.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

domainstringRequired

The domain to check, such as acme.com. An email address, a URL or a domain with a trailing dot is read as its domain. Any public domain works, not only the ones in this workspace.

Up to 320 characters
selectorstring

The DKIM selector: the part before ._domainkey, such as selector1. A full name such as selector1._domainkey.acme.com is read as its selector. Leave it out to try the selectors in common use.

Up to 320 characters

Returns

The keys found and what was found about each.

Errors

422

invalid_parameter on domain or selector: it does not read as a domain or a selector.

503

unreachable: public DNS did not answer for the domain just now. Nothing about the domain was decided, so try again in a moment.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
tools.checkDkim()
Python
tools.check_dkim()
Ruby
tools.check_dkim
PHP
tools->checkDkim
Go
Tools.CheckDkim
Java
tools().checkDkim
C#
Tools.CheckDkimAsync
CLI
nextmail tools check-dkim
MCP
checkDkim

GET/tools/mx

Look up a domain's MX records

No scopeReads

Reads the domain's MX records in the order senders try them, with each host's IPv4 and IPv6 addresses and their reverse DNS, and names the mail provider when it recognises one. It reports a null MX, a domain with no MX that falls back to its A record, hosts that are aliases or bare addresses, hosts that do not resolve and private addresses.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

domainstringRequired

The domain to check, such as acme.com. An email address, a URL or a domain with a trailing dot is read as its domain. Any public domain works, not only the ones in this workspace.

Up to 320 characters

Returns

The mail hosts and what was found.

Errors

422

invalid_parameter on domain: it does not read as a domain.

503

unreachable: public DNS did not answer for the domain just now. Nothing about the domain was decided, so try again in a moment.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
tools.checkMx()
Python
tools.check_mx()
Ruby
tools.check_mx
PHP
tools->checkMx
Go
Tools.CheckMx
Java
tools().checkMx
C#
Tools.CheckMxAsync
CLI
nextmail tools check-mx
MCP
checkMx

GET/tools/bimi

Check a domain's BIMI logo

No scopeReads

Reads the domain's BIMI record, fetches the logo it names and checks the DMARC policy beside it, since inboxes draw a logo only at p=quarantine or p=reject. status is present, partial when the record is there but something stops inboxes showing it, absent or invalid, and issues says why.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

domainstringRequired

The domain to check, such as acme.com. An email address, a URL or a domain with a trailing dot is read as its domain. Any public domain works, not only the ones in this workspace.

Up to 320 characters

Returns

What the BIMI record says and whether inboxes can draw the logo.

Errors

422

invalid_parameter on domain: it does not read as a domain.

503

unreachable: public DNS did not answer for the domain just now. Nothing about the domain was decided, so try again in a moment.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
tools.checkBimi()
Python
tools.check_bimi()
Ruby
tools.check_bimi
PHP
tools->checkBimi
Go
Tools.CheckBimi
Java
tools().checkBimi
C#
Tools.CheckBimiAsync
CLI
nextmail tools check-bimi
MCP
checkBimi

GET/tools/deliverability

Check a domain's deliverability

No scopeReads

Checks the records a receiving mailbox reads before it trusts mail from the domain: MX, SPF, DKIM at the selectors its mail provider uses, DMARC and BIMI. Each check says pass, warn, fail or absent with a verdict and notes written to be shown to a person, and score weighs them into 0 to 100, graded A to F.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

domainstringRequired

The domain to check, such as acme.com. An email address, a URL or a domain with a trailing dot is read as its domain. Any public domain works, not only the ones in this workspace.

Up to 320 characters

Returns

Each check, the score and the grade.

Errors

422

invalid_parameter on domain: it does not read as a domain.

503

unreachable: public DNS did not answer for the domain just now. Nothing about the domain was decided, so try again in a moment.

The errors every operation can return400401403404429500Error catalog

Also available in

TypeScript
tools.checkDeliverability()
Python
tools.check_deliverability()
Ruby
tools.check_deliverability
PHP
tools->checkDeliverability
Go
Tools.CheckDeliverability
Java
tools().checkDeliverability
C#
Tools.CheckDeliverabilityAsync
CLI
nextmail tools check-deliverability
MCP
checkDeliverability

POST/tools/verification-code

Read the sign-in code in a message

No scopeReads

Finds the sign-in or verification code in a message you pass in, with the reader that puts a code at the top of a message in Nextmail. Send the message as raw (the whole MIME source) or as subject with html or text.

It answers only when it is sure. The message has to hold exactly one code worded as one, such as a verification code, a one-time code or a security code, in any of the common languages. Two different codes, or a number that could be an order, a booking, a meeting, a phone number or a promotion, give code: null. The code comes back as you would type it: digits only, or capital letters and digits, without spaces or dashes.

It reads only what you send, so it cannot tell whether the sender is who it claims to be. The verificationCode on a message in your mailbox also requires the sender to pass authentication. Nothing is stored, and no model is called.

Needs no scope: any key or access token for the workspace may run it.

Request body

subjectstring

Subject line, at most 998 characters.

Up to 998 characters
htmlstring

HTML body. Links are left out before the code is looked for.

Up to 1000000 characters
textstring

Plain text body, used when there is no html.

Up to 1000000 characters
rawstring

The whole message as MIME source, as it was received. Wins over the other fields when it is set.

Up to 5000000 characters

Returns

The code, or null when the reader is not sure.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
tools.readVerificationCode()
Python
tools.read_verification_code()
Ruby
tools.read_verification_code
PHP
tools->readVerificationCode
Go
Tools.ReadVerificationCode
Java
tools().readVerificationCode
C#
Tools.ReadVerificationCodeAsync
CLI
nextmail tools read-verification-code

GET/tools/address

Check an email address

No scopeReads

Says whether an address is worth sending to: valid, risky, invalid or unknown, with the reasons. It checks the syntax, whether the domain takes mail at all, whether it is a throwaway domain or a role address such as info@, and offers a correction for a likely typo such as gmial.com. With the emails:read scope it also says what this workspace knows: whether it suppressed the address and when it last delivered to it or saw it bounce. It never shows another workspace's history.

deep also asks whether the mailbox exists. Every plan includes deep checks each calendar month: 10 on Starter, 100 on Pro, 1,000 on Max and 1,000 on Enterprise. Past those, each address is billed through pay as you go at $1.50 per 100 addresses, and with pay as you go off the check is refused and nothing is billed. An address whose syntax or domain already fails is never asked and never counted. A deep check needs the emails:send scope. Without it the check is free and checks.mailbox is null.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

emailstring

The address to check.

1 to 320 characters
deepboolean

Also ask whether the mailbox exists. Uses the deep checks the plan includes this month, then pay as you go. Defaults to false.

Defaultfalse

Returns

What the check found.

Errors

409

deep_check_unavailable or deep_check_limit_reached: the deep checks the plan includes this month are used up and pay as you go is off or paused, or the check would pass its monthly limit.

503

deep_check_unavailable: the mailbox check did not answer. Nothing was billed.

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
tools.checkAddress()
Python
tools.check_address()
Ruby
tools.check_address
PHP
tools->checkAddress
Go
Tools.CheckAddress
Java
tools().checkAddress
C#
Tools.CheckAddressAsync
CLI
nextmail tools check-address
MCP
checkAddress

POST/tools/addresses

Check several email addresses

No scopeReads

Checks up to 100 addresses in one call, each as GET /tools/address does, and returns them in the order they were sent. deep applies to every address and is billed for each one that reaches the mailbox check.

Needs no scope: any key or access token for the workspace may run it.

Request body

emailsstring[]Required

The addresses to check, from 1 to 100.

1 to 100 items
deepboolean

Also ask whether each mailbox exists. Uses the deep checks the plan includes this month, then pay as you go. Defaults to false.

Defaultfalse

Returns

One check per address, in order.

Errors

409

deep_check_unavailable or deep_check_limit_reached: the deep checks the plan includes this month are used up and pay as you go is off or paused, or the check would pass its monthly limit.

503

deep_check_unavailable: the mailbox check did not answer. Nothing was billed.

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
tools.checkAddresses()
Python
tools.check_addresses()
Ruby
tools.check_addresses
PHP
tools->checkAddresses
Go
Tools.CheckAddresses
Java
tools().checkAddresses
C#
Tools.CheckAddressesAsync
CLI
nextmail tools check-addresses
MCP
checkAddressgetBilling

GET/tools/cost

Estimate what Nextmail costs for a usage

No scopeReads

For the usage you describe, prices every plan a workspace can choose for itself, as the cost calculator on the Nextmail website does: the plan itself, the extra sends, received emails, AI actions, domains, storage and API requests it would bill, the monthly total, and whether the plan fits at all. It prices the extras of each plan at that plan's own rates, which usageRates on GET /billing/plans lists, and it leaves out the plans priced in a contract: Enterprise. A plan does not fit when the usage needs more people than its team access allows, or more sends, received emails, domains or storage than it includes on a plan that bills no extra for them. cheapest names the cheapest plan that fits.

Amounts are in US cents per month. With interval set to year, the plan price is the monthly equivalent of paying yearly.

Needs no scope: any key or access token for the workspace may run it.

Query parameters

sendsinteger

Emails sent in a month. Defaults to 0.

At least 0At most 1000000000
receivedinteger

Emails received in a month. Defaults to 0.

At least 0At most 1000000000
domainsinteger

Domains you send from. Defaults to 1.

At least 0At most 1000000
peopleinteger

People who use the workspace. Defaults to 1.

At least 1At most 1000000
aiActionsinteger

AI actions in a day, such as drafts, rewrites and summaries. Defaults to 0.

At least 0At most 10000000
storageinteger

Storage the workspace keeps, in GB. Defaults to 0.

At least 0At most 1000000
apiRequestsinteger

API and MCP requests in a month, priced per 1,000,000 at the rate of each plan. Defaults to 0.

At least 0At most 100000000000
intervalstring

How you pay: month or year. Defaults to month.

One of"month""year"

Returns

Every plan priced for the usage, and the cheapest one that fits.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
tools.estimateCost()
Python
tools.estimate_cost()
Ruby
tools.estimate_cost
PHP
tools->estimateCost
Go
Tools.EstimateCost
Java
tools().estimateCost
C#
Tools.EstimateCostAsync
CLI
nextmail tools estimate-cost

Objects

AddressCheckobject

objectstringRequired
One of"address_check"
emailstringRequired

The address as it was sent.

normalizedstringRequired

The address lower-cased, with an international domain in its ASCII form. Null when the syntax is wrong.

Can be null
resultstringRequired

valid is safe to send to, risky may bounce or annoy, invalid will not be delivered, and unknown means DNS did not answer.

One of"valid""risky""invalid""unknown"
reasonsstring[]Required

Why the result is not valid. Empty for a valid address.

One of"invalid_syntax""domain_not_found""no_mail_server""null_mx""no_mx_record""dns_unreachable""disposable""role_address""typo_suspected""suppressed""bounced_before""mailbox_not_found""mailbox_uncertain""random_input"
suggestionstringRequired

The address with a likely typo in its domain corrected, or null.

Can be null
checksobjectRequired
syntaxbooleanRequired
mxobjectRequired
statusstringRequired

found has mail servers, implicit has none but the domain itself answers, missing, null_mx and domain_not_found take no mail, and unknown means DNS did not answer.

One of"found""implicit""missing""null_mx""domain_not_found""unknown"
hostsstring[]Required
nullMxbooleanRequired

The domain says it takes no mail.

disposablebooleanRequired

A throwaway mailbox domain.

rolebooleanRequired

A shared address such as info@ or support@.

freeProviderbooleanRequired

A public mailbox provider such as Gmail.

mailboxobjectRequired

Only with deep: how sure the mailbox check is. Null otherwise.

Can be null
existsstringRequired
One of"high""medium""low"
validstringRequired
One of"high""medium""low"
randomInputstringRequired
One of"high""medium""low"
workspaceobjectRequired

What this workspace knows about the address. Null without the emails:read scope.

Can be null
suppressedbooleanRequired
lastBouncedAtstringRequired
Can be nullFormatdate-time
lastDeliveredAtstringRequired
Can be nullFormatdate-time
checkedAtstringRequired
Formatdate-time

AddressCheckListobject

objectstringRequired
One of"list"
dataAddressCheck[]Required

BimiReportobject

objectstringRequired
One of"bimi_report"
domainstringRequired
recordstringRequired

The BIMI record at default._bimi, or null.

Can be null
versionstring
Can be null
logoUrlstring

The l= of the record: where the SVG logo is served.

Can be null
authorityUrlstring

The a= of the record: where the mark certificate is served, or null without one.

Can be null
logoSvgstring

The logo as it was fetched, when it could be, to show it.

Can be null
logoReachableboolean
dmarcPolicystring

The p= of the DMARC record beside it.

Can be null
dmarcEnforcedboolean

Whether that policy is quarantine or reject, the only ones under which a logo is drawn.

statusstringRequired
One of"present""partial""absent""invalid"
issuesstring[]Required

CostEstimateobject

objectstringRequired
One of"cost_estimate"
intervalstringRequired
One of"month""year"
needobjectRequired

The usage that was priced, with the defaults filled in.

sendsintegerRequired
receivedintegerRequired
domainsintegerRequired
peopleintegerRequired
aiActionsintegerRequired
storageintegerRequired
apiRequestsintegerRequired
plansPlanEstimate[]Required
cheapeststringRequired

The id of the cheapest plan that fits, or null when none does.

Can be null

DeliverabilityCheckobject

idstringRequired
One of"mx""spf""dkim""dmarc""bimi"
labelstringRequired
statusstringRequired
One of"pass""warn""fail""absent"
verdictstringRequired

One line saying what was found.

recordstringRequired

The record that was read, when there is one.

Can be null
notesstring[]Required

DeliverabilityReportobject

objectstringRequired
One of"deliverability_report"
domainstringRequired
scoreintegerRequired
At least 0At most 100
gradestringRequired
One of"A""B""C""D""F"
providerstringRequired

The mail provider its MX records point at, such as Google Workspace, when it is known.

Can be null
checksDeliverabilityCheck[]Required

DkimFindingobject

codestringRequired

What was found, as a stable code to branch on.

One of"lookup-failed""not-found""none-found""not-dkim""aliased""multiple-records""version-invalid""version-not-first""duplicate-tag""malformed-tag""missing-key""invalid-key""revoked""weak-key""short-key""strong-key""long-key""ed25519-key""unknown-key-type""sha1-only""sha1-allowed""unknown-hash""testing-mode""strict-mode""service-mismatch""obsolete-granularity""unknown-tag"
severitystringRequired

error breaks the record, warning weakens it, notice is worth knowing, and pass is a check that passed.

One of"error""warning""notice""pass"
messagestringRequired

What it means, written to be shown to a person.

subjectstringRequired

The term, domain, host or address it is about, when there is one.

Can be null
valuenumberRequired

The count or size it is about, such as the DNS lookups used or the key length in bits.

Can be null

DkimKeyobject

selectorstringRequired
namestringRequired

The DNS name the key was read from.

aliasTargetstringRequired

Where the selector points when it is an alias (CNAME), usually a name the mail provider manages.

Can be null
recordstringRequired

The record as published.

stringsstring[]Required

The quoted strings it is split into in DNS.

ttlintegerRequired
Can be null
tagsobject[]Required
namestringRequired
valuestringRequired
knownbooleanRequired

False for a tag DKIM does not define.

versionstringRequired

The v= tag, or null when it is left out.

Can be null
keyTypestringRequired

rsa unless k= says otherwise.

keyBitsintegerRequired

The key length read from the key itself. Null when the key is revoked or unreadable.

Can be null
hashesstring[]Required

The hashes h= allows. Empty allows every hash.

flagsstring[]Required

The t= flags: y for testing, s for strict.

servicesstring[]Required

The s= services. Empty means every service.

notesstringRequired
Can be null
revokedbooleanRequired

True when p= is empty.

testingbooleanRequired

True when t=y marks the key as in testing.

statusstringRequired

pass when nothing is wrong, warn when something weakens it, fail when something breaks it or DNS did not answer, and missing when there is no record at all.

One of"pass""warn""fail""missing"
findingsDkimFinding[]Required

DkimReportobject

objectstringRequired
One of"dkim_report"
domainstringRequired
selectorstringRequired

The selector asked for, or null when the common selectors were tried.

Can be null
probedstring[]Required

Every selector that was looked up.

statusstringRequired

pass when nothing is wrong, warn when something weakens it, fail when something breaks it or DNS did not answer, and missing when there is no record at all.

One of"pass""warn""fail""missing"
keysDkimKey[]Required
findingsDkimFinding[]Required

What was found about the lookup as a whole. Each key has findings of its own.

DmarcReportobject

objectstringRequired
One of"dmarc_report"
domainstringRequired

The domain that was checked, lower-cased.

recordstringRequired

The DMARC record as published, or null when there is none.

Can be null
inheritedFromstringRequired

The parent domain whose record applies, when the domain has none of its own. Null when the record is its own or there is none.

Can be null
tagsRecord<string, string>Required

Every tag of the record, such as p, sp, pct and rua, as written.

stagestringRequired
One of"missing""invalid""monitor""quarantine""reject"
issuesstring[]Required

Problems found, each written to be shown to a person. Empty when there are none.

MxAddressobject

addressstringRequired
familystringRequired
One of"ipv4""ipv6"
reversestringRequired

Its reverse DNS name, or null when it has none.

Can be null
reservedbooleanRequired

True for a private or reserved address the internet cannot reach.

MxFindingobject

codestringRequired

What was found, as a stable code to branch on.

One of"lookup-failed""domain-missing""no-mail""implicit-mx""null-mx""null-mx-mixed""address-target""alias-target""host-unresolved""reserved-address""no-reverse-dns""duplicate-host""single-host""backup-hosts""load-balanced""all-resolve""ipv6-ready""no-ipv6""provider"
severitystringRequired

error breaks the record, warning weakens it, notice is worth knowing, and pass is a check that passed.

One of"error""warning""notice""pass"
messagestringRequired

What it means, written to be shown to a person.

subjectstringRequired

The term, domain, host or address it is about, when there is one.

Can be null
valuenumberRequired

The count or size it is about, such as the DNS lookups used or the key length in bits.

Can be null

MxHostobject

preferenceintegerRequired

The priority. Senders try the lowest number first.

exchangestringRequired

The mail host.

ttlintegerRequired
Can be null
aliasOfstringRequired

Where the host points when it is an alias (CNAME).

Can be null
addressesMxAddress[]Required
providerstringRequired

The mail provider recognised from the host name.

Can be null
findingsMxFinding[]Required

MxReportobject

objectstringRequired
One of"mx_report"
domainstringRequired
statusstringRequired

pass when nothing is wrong, warn when something weakens it, fail when something breaks it or DNS did not answer, and missing when there is no record at all.

One of"pass""warn""fail""missing"
hostsMxHost[]Required

The mail hosts in the order senders try them.

nullMxbooleanRequired

True when the domain publishes a null MX, stating it accepts no mail.

implicitobjectRequired

When there is no MX record, the addresses senders fall back to. Null otherwise.

Can be null
addressesMxAddress[]Required
providerstringRequired
Can be null
findingsMxFinding[]Required

Everything found, errors first.

PlanEstimateobject

objectstringRequired
One of"plan_estimate"
planstringRequired
One of"free""professional""starter""business""enterprise"
namestringRequired

The plan as it is named on the pricing page.

fitsbooleanRequired

Whether the plan can carry the usage at all. False when blockers names anything.

blockersstring[]Required

What the plan cannot carry: domains beyond the ones it includes on a plan that bills no extra domains, people without team access, sends beyond its limit on a plan that bills no extra sends, received beyond its limit on a plan that bills no extra received mail, or storage beyond what it includes on a plan that bills no extra storage.

One of"domains""people""sends""storage""received"
baseCentsintegerRequired

The plan price per month, or its monthly equivalent when paid yearly.

extraSendsintegerRequired

Sends beyond what the plan includes in a month.

sendsCentsintegerRequired

What those extra sends cost in a month.

extraReceivedintegerRequired

Received emails beyond what the plan includes in a month.

receivedCentsintegerRequired

What those extra received emails cost in a month.

extraAiActionsintegerRequired

AI actions beyond what the plan includes, over a 30-day month.

aiCentsintegerRequired

What those extra AI actions cost in a month.

extraDomainsintegerRequired

Domains beyond what the plan includes, billed per domain a month.

domainsCentsintegerRequired

What those extra domains cost in a month.

extraStorageintegerRequired

Storage beyond what the plan includes, in GB, billed per GB a month.

storageCentsintegerRequired

What that extra storage costs in a month.

extraApiRequestsintegerRequired

API and MCP requests billed in a month. They have no allowance, so this is every request asked for.

apiRequestsCentsintegerRequired

What those requests cost in a month at the rate of the plan, rounded to the cent.

extrasCentsintegerRequired

sendsCents, receivedCents, aiCents, domainsCents, storageCents and apiRequestsCents together.

totalCentsintegerRequired

The plan price and the extras: what a month costs.

SpfFindingobject

codestringRequired

What was found, as a stable code to branch on.

One of"lookup-failed""domain-missing""no-record""near-miss""one-record""multiple-records""valid-syntax""invalid-term""unknown-mechanism""invalid-address""invalid-domain""lookups-within-limit""near-lookup-limit""too-many-lookups""too-many-void-lookups""void-lookup""include-missing""include-multiple""include-loop""include-lookup-failed""too-many-mx-hosts""pass-all""neutral-all""softfail-all""fail-all""no-all""terms-after-all""redirect-ignored""duplicate-modifier""ptr-used""macros-used""unknown-modifier""broad-range""long-record""long-string""analysis-truncated"
severitystringRequired

error breaks the record, warning weakens it, notice is worth knowing, and pass is a check that passed.

One of"error""warning""notice""pass"
messagestringRequired

What it means, written to be shown to a person.

subjectstringRequired

The term, domain, host or address it is about, when there is one.

Can be null
valuenumberRequired

The count or size it is about, such as the DNS lookups used or the key length in bits.

Can be null

SpfNodeobject

domainstringRequired
viastringRequired

How the parent reached this record. Null at the root.

Can be nullOne of"include""redirect"
recordstringRequired

The SPF record at this domain, or null when it could not be read.

Can be null
lookupsintegerRequired

The DNS lookups its own terms cost.

totalLookupsintegerRequired

The lookups of this record and everything it includes.

termsSpfTerm[]Required
childrenSpfNode[]Required

The records it includes or redirects to, in order.

errorstringRequired

Why the record could not be followed, or null.

Can be nullOne of"missing""multiple""loop""lookup-failed""skipped"

SpfReportobject

objectstringRequired
One of"spf_report"
domainstringRequired

The domain that was checked, lower-cased.

statusstringRequired

pass when nothing is wrong, warn when something weakens it, fail when something breaks it or DNS did not answer, and missing when there is no record at all.

One of"pass""warn""fail""missing"
recordstringRequired

The SPF record, or null when there is none.

Can be null
recordsstring[]Required

Every SPF record published. More than one is an error.

stringsstring[]Required

The quoted strings the record is split into in DNS. Each may hold 255 characters.

lengthintegerRequired

The length of the record in characters.

lookupsintegerRequired

The DNS lookups the whole record needs, includes and redirects counted.

lookupLimitintegerRequired

The limit receivers allow: 10.

voidLookupsintegerRequired

Lookups that found nothing.

voidLimitintegerRequired

The limit receivers allow: 2.

allQualifierstringRequired

The qualifier of the all that ends the record, followed through a redirect. Null when there is none.

Can be nullOne of"+""-""~""?"
treeobjectRequired

The record and everything it includes. Null when there is no record.

Can be null
domainstringRequired
viastringRequired

How the parent reached this record. Null at the root.

Can be nullOne of"include""redirect"
recordstringRequired

The SPF record at this domain, or null when it could not be read.

Can be null
lookupsintegerRequired

The DNS lookups its own terms cost.

totalLookupsintegerRequired

The lookups of this record and everything it includes.

termsSpfTerm[]Required
childrenSpfNode[]Required

The records it includes or redirects to, in order.

errorstringRequired

Why the record could not be followed, or null.

Can be nullOne of"missing""multiple""loop""lookup-failed""skipped"
sendersobject[]Required

The sending services recognised from the includes.

namestringRequired

The sending service, such as Google Workspace.

includestringRequired

The include that authorises it.

ipv4AddressesnumberRequired

How many IPv4 addresses the ip4 terms authorise, includes counted.

ipv6RangesintegerRequired

How many ip6 ranges are authorised, includes counted.

findingsSpfFinding[]Required

Everything found, errors first.

SpfTermobject

rawstringRequired

The term as written, such as include:_spf.google.com.

kindstringRequired
One of"mechanism""modifier""unknown"
namestringRequired

The mechanism or modifier, such as include, ip4 or redirect.

qualifierstringRequired

The qualifier written before a mechanism. Null when none is written, which means +.

Can be nullOne of"+""-""~""?"
valuestringRequired

What follows the name, such as a domain or an address range.

Can be null
lookupsintegerRequired

The DNS lookups this term costs on its own: 0 or 1.

validbooleanRequired

False when the term is malformed.

VerificationCodeResultobject

objectstringRequired
One of"verification_code"
codestringRequired

The code as you would type it, or null when the message holds no code the reader is sure of.

Can be null