API reference
Domains
Provision sender identities and understand DNS verification state.
No operations match this filter.
/domainsAdd a sending domain
Add a sending domain
curl https://sendhq.cc/api/v1/domains \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"example.com"}'{
"id": "dom_…",
"name": "example.com",
"status": "pending",
"records": []
}/domainsList domains and cached DNS state
List domains and cached DNS state
curl https://sendhq.cc/api/v1/domains \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [],
"count": 0
}/domains/:idRetrieve domain setup details
Retrieve domain setup details
curl https://sendhq.cc/api/v1/domains/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "dom_…",
"name": "example.com",
"setup_status": "checking",
"records": [],
"dns_issues": []
}/domains/:id/verifyRefresh SES and DNS verification
Refresh SES and DNS verification
curl https://sendhq.cc/api/v1/domains/id_value/verify \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"domain": {
"id": "dom_…",
"status": "verified"
},
"checks": {
"ses": true
},
"status": "verified"
}/domains/:idDelete a domain
Delete a domain
curl https://sendhq.cc/api/v1/domains/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}/dns/providerDetect the authoritative DNS provider and relative record hosts
Detect the domain's authoritative DNS provider from live nameservers, return the relative host to enter for every required record, the recommended DMARC record, inbound MX state, and which one-click setup methods are available.
curl https://sendhq.cc/api/v1/dns/provider \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"detectionStatus": "confirmed",
"detected": "cloudflare",
"zone": "example.com",
"nameservers": [
"ada.ns.cloudflare.com"
],
"recordHosts": {},
"inbound": {
"available": true,
"domain": null,
"status": "not_configured",
"record": null
},
"recommendations": [],
"authentication": {},
"providers": {
"domainConnect": {
"available": false,
"providerName": null
}
}
}/dns/domain-connect/connectCreate a Domain Connect consent link for one-click DNS setup
When the authoritative DNS provider supports the SendHQ Domain Connect template, return a signed provider consent URL. A person must open the URL and approve the change at the DNS provider; SendHQ never receives standing DNS credentials. Returns 409 when the provider does not support the template.
curl https://sendhq.cc/api/v1/dns/domain-connect/connect \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"url": "https://dns-provider.example/v2/domainTemplates/…",
"providerName": "Example DNS"
}