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
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
domainstringRequiredThe 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_parameterondomain: 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
GET/tools/spf
Check a domain's SPF record
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
domainstringRequiredThe 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_parameterondomain: 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
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
domainstringRequiredThe 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 charactersselectorstringThe DKIM selector: the part before
._domainkey, such asselector1. A full name such asselector1._domainkey.acme.comis 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_parameterondomainorselector: 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
GET/tools/mx
Look up a domain's MX records
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
domainstringRequiredThe 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_parameterondomain: 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
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
domainstringRequiredThe 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_parameterondomain: 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
GET/tools/deliverability
Check a domain's deliverability
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
domainstringRequiredThe 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_parameterondomain: 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
POST/tools/verification-code
Read the sign-in code in a message
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
subjectstringSubject line, at most 998 characters.
Up to 998 charactershtmlstringHTML body. Links are left out before the code is looked for.
Up to 1000000 characterstextstringPlain text body, used when there is no
html.Up to 1000000 charactersrawstringThe 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
GET/tools/address
Check an email address
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
emailstringThe address to check.
1 to 320 charactersdeepbooleanAlso 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_unavailableordeep_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
POST/tools/addresses
Check several email addresses
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[]RequiredThe addresses to check, from 1 to 100.
1 to 100 itemsdeepbooleanAlso 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_unavailableordeep_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
GET/tools/cost
Estimate what Nextmail costs for a usage
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
sendsintegerEmails sent in a month. Defaults to 0.
At least 0At most 1000000000receivedintegerEmails received in a month. Defaults to 0.
At least 0At most 1000000000domainsintegerDomains you send from. Defaults to 1.
At least 0At most 1000000peopleintegerPeople who use the workspace. Defaults to 1.
At least 1At most 1000000aiActionsintegerAI actions in a day, such as drafts, rewrites and summaries. Defaults to 0.
At least 0At most 10000000storageintegerStorage the workspace keeps, in GB. Defaults to 0.
At least 0At most 1000000apiRequestsintegerAPI and MCP requests in a month, priced per 1,000,000 at the rate of each plan. Defaults to 0.
At least 0At most 100000000000intervalstringHow you pay:
monthoryear. Defaults tomonth.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
Objects
AddressCheckobject
objectstringRequired- One of
"address_check" emailstringRequiredThe address as it was sent.
normalizedstringRequiredThe address lower-cased, with an international domain in its ASCII form. Null when the syntax is wrong.
Can be nullresultstringRequiredvalidis safe to send to,riskymay bounce or annoy,invalidwill not be delivered, andunknownmeans DNS did not answer.One of"valid""risky""invalid""unknown"reasonsstring[]RequiredWhy 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"suggestionstringRequiredThe address with a likely typo in its domain corrected, or null.
Can be nullchecksobjectRequiredsyntaxbooleanRequiredmxobjectRequiredstatusstringRequiredfoundhas mail servers,implicithas none but the domain itself answers,missing,null_mxanddomain_not_foundtake no mail, andunknownmeans DNS did not answer.One of"found""implicit""missing""null_mx""domain_not_found""unknown"hostsstring[]Required
nullMxbooleanRequiredThe domain says it takes no mail.
disposablebooleanRequiredA throwaway mailbox domain.
rolebooleanRequiredA shared address such as
info@orsupport@.freeProviderbooleanRequiredA public mailbox provider such as Gmail.
mailboxobjectRequiredOnly with
deep: how sure the mailbox check is. Null otherwise.Can be nullexistsstringRequired- One of
"high""medium""low" validstringRequired- One of
"high""medium""low" randomInputstringRequired- One of
"high""medium""low"
workspaceobjectRequiredWhat this workspace knows about the address. Null without the
emails:readscope.Can be nullsuppressedbooleanRequiredlastBouncedAtstringRequired- Can be nullFormat
date-time lastDeliveredAtstringRequired- Can be nullFormat
date-time
checkedAtstringRequired- Format
date-time
AddressCheckListobject
objectstringRequired- One of
"list" dataAddressCheck[]Required
BimiReportobject
objectstringRequired- One of
"bimi_report" domainstringRequiredrecordstringRequiredThe BIMI record at
default._bimi, or null.Can be nullversionstring- Can be null
logoUrlstringThe
l=of the record: where the SVG logo is served.Can be nullauthorityUrlstringThe
a=of the record: where the mark certificate is served, or null without one.Can be nulllogoSvgstringThe logo as it was fetched, when it could be, to show it.
Can be nulllogoReachablebooleandmarcPolicystringThe
p=of the DMARC record beside it.Can be nulldmarcEnforcedbooleanWhether that policy is
quarantineorreject, 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" needobjectRequiredThe usage that was priced, with the defaults filled in.
sendsintegerRequiredreceivedintegerRequireddomainsintegerRequiredpeopleintegerRequiredaiActionsintegerRequiredstorageintegerRequiredapiRequestsintegerRequired
plansPlanEstimate[]RequiredcheapeststringRequiredThe id of the cheapest plan that fits, or null when none does.
Can be null
DeliverabilityCheckobject
idstringRequired- One of
"mx""spf""dkim""dmarc""bimi" labelstringRequiredstatusstringRequired- One of
"pass""warn""fail""absent" verdictstringRequiredOne line saying what was found.
recordstringRequiredThe record that was read, when there is one.
Can be nullnotesstring[]Required
DeliverabilityReportobject
objectstringRequired- One of
"deliverability_report" domainstringRequiredscoreintegerRequired- At least 0At most 100
gradestringRequired- One of
"A""B""C""D""F" providerstringRequiredThe mail provider its MX records point at, such as
Google Workspace, when it is known.Can be nullchecksDeliverabilityCheck[]Required
DkimFindingobject
codestringRequiredWhat 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"severitystringRequirederrorbreaks the record,warningweakens it,noticeis worth knowing, andpassis a check that passed.One of"error""warning""notice""pass"messagestringRequiredWhat it means, written to be shown to a person.
subjectstringRequiredThe term, domain, host or address it is about, when there is one.
Can be nullvaluenumberRequiredThe count or size it is about, such as the DNS lookups used or the key length in bits.
Can be null
DkimKeyobject
selectorstringRequirednamestringRequiredThe DNS name the key was read from.
aliasTargetstringRequiredWhere the selector points when it is an alias (CNAME), usually a name the mail provider manages.
Can be nullrecordstringRequiredThe record as published.
stringsstring[]RequiredThe quoted strings it is split into in DNS.
ttlintegerRequired- Can be null
tagsobject[]RequirednamestringRequiredvaluestringRequiredknownbooleanRequiredFalse for a tag DKIM does not define.
versionstringRequiredThe
v=tag, or null when it is left out.Can be nullkeyTypestringRequiredrsaunlessk=says otherwise.keyBitsintegerRequiredThe key length read from the key itself. Null when the key is revoked or unreadable.
Can be nullhashesstring[]RequiredThe hashes
h=allows. Empty allows every hash.flagsstring[]RequiredThe
t=flags:yfor testing,sfor strict.servicesstring[]RequiredThe
s=services. Empty means every service.notesstringRequired- Can be null
revokedbooleanRequiredTrue when
p=is empty.testingbooleanRequiredTrue when
t=ymarks the key as in testing.statusstringRequiredpasswhen nothing is wrong,warnwhen something weakens it,failwhen something breaks it or DNS did not answer, andmissingwhen there is no record at all.One of"pass""warn""fail""missing"findingsDkimFinding[]Required
DkimReportobject
objectstringRequired- One of
"dkim_report" domainstringRequiredselectorstringRequiredThe selector asked for, or null when the common selectors were tried.
Can be nullprobedstring[]RequiredEvery selector that was looked up.
statusstringRequiredpasswhen nothing is wrong,warnwhen something weakens it,failwhen something breaks it or DNS did not answer, andmissingwhen there is no record at all.One of"pass""warn""fail""missing"keysDkimKey[]RequiredfindingsDkimFinding[]RequiredWhat was found about the lookup as a whole. Each key has findings of its own.
DmarcReportobject
objectstringRequired- One of
"dmarc_report" domainstringRequiredThe domain that was checked, lower-cased.
recordstringRequiredThe DMARC record as published, or null when there is none.
Can be nullinheritedFromstringRequiredThe 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 nulltagsRecord<string, string>RequiredEvery tag of the record, such as
p,sp,pctandrua, as written.stagestringRequired- One of
"missing""invalid""monitor""quarantine""reject" issuesstring[]RequiredProblems found, each written to be shown to a person. Empty when there are none.
MxAddressobject
addressstringRequiredfamilystringRequired- One of
"ipv4""ipv6" reversestringRequiredIts reverse DNS name, or null when it has none.
Can be nullreservedbooleanRequiredTrue for a private or reserved address the internet cannot reach.
MxFindingobject
codestringRequiredWhat 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"severitystringRequirederrorbreaks the record,warningweakens it,noticeis worth knowing, andpassis a check that passed.One of"error""warning""notice""pass"messagestringRequiredWhat it means, written to be shown to a person.
subjectstringRequiredThe term, domain, host or address it is about, when there is one.
Can be nullvaluenumberRequiredThe count or size it is about, such as the DNS lookups used or the key length in bits.
Can be null
MxHostobject
preferenceintegerRequiredThe priority. Senders try the lowest number first.
exchangestringRequiredThe mail host.
ttlintegerRequired- Can be null
aliasOfstringRequiredWhere the host points when it is an alias (CNAME).
Can be nulladdressesMxAddress[]RequiredproviderstringRequiredThe mail provider recognised from the host name.
Can be nullfindingsMxFinding[]Required
MxReportobject
objectstringRequired- One of
"mx_report" domainstringRequiredstatusstringRequiredpasswhen nothing is wrong,warnwhen something weakens it,failwhen something breaks it or DNS did not answer, andmissingwhen there is no record at all.One of"pass""warn""fail""missing"hostsMxHost[]RequiredThe mail hosts in the order senders try them.
nullMxbooleanRequiredTrue when the domain publishes a null MX, stating it accepts no mail.
implicitobjectRequiredWhen there is no MX record, the addresses senders fall back to. Null otherwise.
Can be nulladdressesMxAddress[]Required
providerstringRequired- Can be null
findingsMxFinding[]RequiredEverything found, errors first.
PlanEstimateobject
objectstringRequired- One of
"plan_estimate" planstringRequired- One of
"free""professional""starter""business""enterprise" namestringRequiredThe plan as it is named on the pricing page.
fitsbooleanRequiredWhether the plan can carry the usage at all. False when
blockersnames anything.blockersstring[]RequiredWhat the plan cannot carry:
domainsbeyond the ones it includes on a plan that bills no extra domains,peoplewithout team access,sendsbeyond its limit on a plan that bills no extra sends,receivedbeyond its limit on a plan that bills no extra received mail, orstoragebeyond what it includes on a plan that bills no extra storage.One of"domains""people""sends""storage""received"baseCentsintegerRequiredThe plan price per month, or its monthly equivalent when paid yearly.
extraSendsintegerRequiredSends beyond what the plan includes in a month.
sendsCentsintegerRequiredWhat those extra sends cost in a month.
extraReceivedintegerRequiredReceived emails beyond what the plan includes in a month.
receivedCentsintegerRequiredWhat those extra received emails cost in a month.
extraAiActionsintegerRequiredAI actions beyond what the plan includes, over a 30-day month.
aiCentsintegerRequiredWhat those extra AI actions cost in a month.
extraDomainsintegerRequiredDomains beyond what the plan includes, billed per domain a month.
domainsCentsintegerRequiredWhat those extra domains cost in a month.
extraStorageintegerRequiredStorage beyond what the plan includes, in GB, billed per GB a month.
storageCentsintegerRequiredWhat that extra storage costs in a month.
extraApiRequestsintegerRequiredAPI and MCP requests billed in a month. They have no allowance, so this is every request asked for.
apiRequestsCentsintegerRequiredWhat those requests cost in a month at the rate of the plan, rounded to the cent.
extrasCentsintegerRequiredsendsCents,receivedCents,aiCents,domainsCents,storageCentsandapiRequestsCentstogether.totalCentsintegerRequiredThe plan price and the extras: what a month costs.
SpfFindingobject
codestringRequiredWhat 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"severitystringRequirederrorbreaks the record,warningweakens it,noticeis worth knowing, andpassis a check that passed.One of"error""warning""notice""pass"messagestringRequiredWhat it means, written to be shown to a person.
subjectstringRequiredThe term, domain, host or address it is about, when there is one.
Can be nullvaluenumberRequiredThe count or size it is about, such as the DNS lookups used or the key length in bits.
Can be null
SpfNodeobject
domainstringRequiredviastringRequiredHow the parent reached this record. Null at the root.
Can be nullOne of"include""redirect"recordstringRequiredThe SPF record at this domain, or null when it could not be read.
Can be nulllookupsintegerRequiredThe DNS lookups its own terms cost.
totalLookupsintegerRequiredThe lookups of this record and everything it includes.
termsSpfTerm[]RequiredchildrenSpfNode[]RequiredThe records it includes or redirects to, in order.
errorstringRequiredWhy the record could not be followed, or null.
Can be nullOne of"missing""multiple""loop""lookup-failed""skipped"
SpfReportobject
objectstringRequired- One of
"spf_report" domainstringRequiredThe domain that was checked, lower-cased.
statusstringRequiredpasswhen nothing is wrong,warnwhen something weakens it,failwhen something breaks it or DNS did not answer, andmissingwhen there is no record at all.One of"pass""warn""fail""missing"recordstringRequiredThe SPF record, or null when there is none.
Can be nullrecordsstring[]RequiredEvery SPF record published. More than one is an error.
stringsstring[]RequiredThe quoted strings the record is split into in DNS. Each may hold 255 characters.
lengthintegerRequiredThe length of the record in characters.
lookupsintegerRequiredThe DNS lookups the whole record needs, includes and redirects counted.
lookupLimitintegerRequiredThe limit receivers allow: 10.
voidLookupsintegerRequiredLookups that found nothing.
voidLimitintegerRequiredThe limit receivers allow: 2.
allQualifierstringRequiredThe qualifier of the
allthat ends the record, followed through a redirect. Null when there is none.Can be nullOne of"+""-""~""?"treeobjectRequiredThe record and everything it includes. Null when there is no record.
Can be nulldomainstringRequiredviastringRequiredHow the parent reached this record. Null at the root.
Can be nullOne of"include""redirect"recordstringRequiredThe SPF record at this domain, or null when it could not be read.
Can be nulllookupsintegerRequiredThe DNS lookups its own terms cost.
totalLookupsintegerRequiredThe lookups of this record and everything it includes.
termsSpfTerm[]RequiredchildrenSpfNode[]RequiredThe records it includes or redirects to, in order.
errorstringRequiredWhy the record could not be followed, or null.
Can be nullOne of"missing""multiple""loop""lookup-failed""skipped"
sendersobject[]RequiredThe sending services recognised from the includes.
namestringRequiredThe sending service, such as
Google Workspace.includestringRequiredThe include that authorises it.
ipv4AddressesnumberRequiredHow many IPv4 addresses the ip4 terms authorise, includes counted.
ipv6RangesintegerRequiredHow many ip6 ranges are authorised, includes counted.
findingsSpfFinding[]RequiredEverything found, errors first.
SpfTermobject
rawstringRequiredThe term as written, such as
include:_spf.google.com.kindstringRequired- One of
"mechanism""modifier""unknown" namestringRequiredThe mechanism or modifier, such as
include,ip4orredirect.qualifierstringRequiredThe qualifier written before a mechanism. Null when none is written, which means
+.Can be nullOne of"+""-""~""?"valuestringRequiredWhat follows the name, such as a domain or an address range.
Can be nulllookupsintegerRequiredThe DNS lookups this term costs on its own: 0 or 1.
validbooleanRequiredFalse when the term is malformed.
VerificationCodeResultobject
objectstringRequired- One of
"verification_code" codestringRequiredThe code as you would type it, or null when the message holds no code the reader is sure of.
Can be null