API REFERENCE · Published 2026-10-06 · Updated 2026-10-06 · SecureSMTP
Get sending-domain status
GET /api/v1/mail/domain-status
GEThttps://securessmtp.com/api/v1/mail/domain-status
Returns the site’s sending domains and the sender mode that POST /mail/send will use. It only reads; to check DNS again, use the Verify button in the dashboard.
Headers
- x-securessmtp-api-keystringrequired
- The site’s API key (
qcs_live_…).x-securesmtp-api-keyandx-qcs-api-keyare accepted too. See Sites and API keys.
Parameters
None.
Request
curl https://securessmtp.com/api/v1/mail/domain-status \
-H "x-securessmtp-api-key: $SECURESSMTP_API_KEY"Response
200
{
"ok": true,
"site": {
"name": "Acme Store",
"domain": "acme.example"
},
"has_verified_domain": true,
"effective_mode": "domain",
"verified": {
"domain": "acme.example",
"from_address": "[email protected]",
"verified_at": "2026-10-01T09:12:44.000Z"
},
"domains": [
{
"domain": "acme.example",
"status": "verified",
"from_address": "[email protected]",
"verified_at": "2026-10-01T09:12:44.000Z",
"last_checked_at": "2026-10-01T09:12:44.000Z",
"created_at": "2026-09-30T16:03:10.000Z"
}
],
"dashboard_url": "https://securessmtp.com/app/forms/email"
}Response fields
- okbooleanrequired
true.- siteobjectrequired
nameanddomainof the site the key belongs to.- has_verified_domainbooleanrequired
truewhen a domain has statusverifiedand a From address.- effective_mode'domain' | 'relay'required
- The mode
autoanddomainsends will use now.sender_mode: "relay"always uses relay. - verifiedobject | nullrequired
- The usable domain:
domain,from_address,verified_at(ISO 8601).nullif none. - domainsobject[]required
- Every sending domain of the site, newest first:
domain,status(for examplependingorverified),from_address,verified_at,last_checked_at(ISO 8601 ornull) andcreated_at. - dashboard_urlstringrequired
- Where to add and verify sending domains.
Errors
Errors have "ok": false and a reason.
| HTTP | Value | Meaning | What to do |
|---|---|---|---|
| 401 | missing_api_key | No key header was sent. | Send the key in the x-securessmtp-api-key header. |
| 401 | invalid_api_key | No site has this key. Keys stop working as soon as they are rotated. | Copy the current key from the dashboard, or rotate it to get a new one. |
| 403 | site_disabled | The site is disabled. | Check GET /blocks/status. See Blocks. |
To add or verify a domain, see Domains and DNS.