Get receiving setup status
Reports sending verification, configured destinations (webhook endpoint, forwarding rules, and mailboxes), receiving enablement, and the inbound MX record.
GET
Reports sending verification, configured destinations (webhook endpoint, forwarding rules, and mailboxes), receiving enablement, and the inbound MX record. Receiving can be enabled before a destination is configured. The MX answer is a live DNS lookup that names the current target when mail is routed elsewhere.
apiKeyheader
x-api-key<token>id*stringMatch
^dom_[0-9a-hjkmnp-tv-z]{16,24}$ReceivingStatus
application/json- response
domain*stringreceivingHost*stringsending*destination*receiving*mx*ready*booleanimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.email.getReceivingStatus({
"id": "example"
});Example Response
{
"domain": "string",
"receivingHost": "string",
"sending": {
"satisfied": true,
"phase": "dns-setup"
},
"destination": {
"satisfied": true,
"endpointId": "string",
"forwardingRules": 0,
"mailboxes": 0
},
"receiving": {
"satisfied": true,
"catchAll": true
},
"mx": {
"satisfied": true,
"state": "pointing-here",
"expected": {
"exchange": "string",
"priority": 0
},
"current": [
{
"exchange": "string",
"priority": 0
}
]
},
"ready": true
}