Set the default sending domain
Marks a verified domain as the organization's default sending domain, atomically clearing any previous default.
POST
Marks a verified domain as the organization's default sending domain, atomically clearing any previous default. Provisioning and inbound routing prefer the default domain when several apply. It does not choose the from of omitted-from sends; those use the organization default sender.
apiKeyheader
x-api-key<token>id*stringMatch
^dom_[0-9a-hjkmnp-tv-z]{16,24}$SuccessResult
application/json- response
success*booleanmessage*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.email.setDefaultDomain({ "id": "example"});Example Response
{ "success": true, "message": "string"}