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 --request POST 'https://server.scaledmail.com/api/v1/swap-domain/?organization_id&provider' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data-raw '{
"hosting": {
"provider": "Hosting Provier Name Here",
"username": "username",
"password": "password"
},
"new_domain":"scaledmailgo.com",
}'{}