domain (required):provider (required):"scaledmail" — Domain purchased through ScaledMail"other" — Domain from external providers like Porkbun, Namecheap, or DNSimplenew_domain (required):/purchased-domains endpoint.hosting (conditionally required):provider = "other" (i.e., for third-party domains).provider = "scaledmail" — ScaledMail handles hosting automatically.curl --location 'https://server.scaledmail.com/api/v1/swap-domain/?organization_id=undefined&provider=undefined' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"new_domain": "scaledmailgo.com"
}'{}