Set the default sending domain

Marks a verified domain as the organization's default sending domain, atomically clearing any previous default.

POST
/v1/email/domains/{id}/default

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^dom_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

SuccessResult

application/json
  1. response
success*boolean
message*string
Example Request
import { 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"}

Related documentation