Verify a send domain
Runs an on-demand DNS check for the domain, stores the result, and returns the refreshed record. The check passes when every MX record of s2reply.<domain> points to sndstrk.com. Call it after you publish that record.
POST
/v2/ accounts/ {accountId}/ send-domains/ {domain}/ verificationsPath parameters
accountIdstringrequired
The account the request is scoped to.
domainstringrequired
Response
The send domain with refreshed verification state.
Errors
401
Missing or invalid token, or the token is not authorized for this account/user.
404
The requested resource does not exist.
See Errors and rate limits for what error responses look like.
curl --location --request POST 'https://api.sendstreak.com/v2/accounts/YOUR_ACCOUNT_ID/send-domains/YOUR_DOMAIN/verifications' \
--header 'Authorization: Bearer YOUR_API_TOKEN'
const res = await fetch('https://api.sendstreak.com/v2/accounts/YOUR_ACCOUNT_ID/send-domains/YOUR_DOMAIN/verifications', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SENDSTREAK_TOKEN}`
}
});
import os, requests
res = requests.post(
'https://api.sendstreak.com/v2/accounts/YOUR_ACCOUNT_ID/send-domains/YOUR_DOMAIN/verifications',
headers={'Authorization': f"Bearer {os.environ['SENDSTREAK_TOKEN']}"},
)
{
"domain": "mail.example.com",
"validated": false
}