đ Use this endpoint to request replacing an existing domain with a new one.
â ī¸ This creates a pending request, same as /swap-redirectand/swap-sender-nameâ it does not take effect immediately. Our team reviews and applies it.
POST /api/v1/swap-domain/:old_domainold_domain (required)organization_id (required)provider (required)"scaledmail" â The new domain must already exist in your unassigned purchased-domains inventory. Check with Get Purchased Domains (?available=true) first."other" â The new domain is hosted elsewhere (e.g. Namecheap, Porkbun, GoDaddy). You may optionally supply hosting credentials.new_domain (required){ "new_domain": "newbrand.com" }"newbrand.com").hosting (optional, provider=other only)"hosting": {
"provider": "Namecheap",
"username": "your-username",
"password": "your-password",
"link": "https://namecheap.com"
}provider, username, password are all required together if hosting is included at all.link is optional but cannot be empty if provided.provider must be a supported registrar name (e.g. "Namecheap", "Porkbun", "GoDaddy", "Cloudflare" â see error response below for the full list).provider=scaledmail â the request is rejected if hosting is present.POST /api/v1/swap-domain/outreach-one.com?organization_id=recXXXXXXXXXXXXXX&provider=scaledmail{
"new_domain": "outreach-fresh.com"
}POST /api/v1/swap-domain/outreach-one.com?organization_id=recXXXXXXXXXXXXXX&provider=other{
"new_domain": "mybrand.io",
"hosting": {
"provider": "Porkbun",
"username": "user@company.com",
"password": "yourpassword",
"link": "https://porkbun.com"
}
}{
"message": "Domain Swap Requested"
}{ "error": "Invalid provider. Must be 'scaledmail' or 'other'" }{ "error": "Hosting cannot be provided when provider is 'scaledmail' or 'buy'" }{ "error": "Invalid hosting provider", "validProviders": ["Porkbun", "Namecheap", "Godaddy", "HostGator", "Bigrock", "Spaceship", "Dynadot", "Ionos", "Cloudflare", "DnSimple", "Scaledmail", "Other"] }{ "error": "Invalid domain format" }{ "error": "Domain not found" }provider=scaledmail){ "error": "Domain not available or already in use" }{ "error": "Cannot create domain swap request. Domain \"outreach-one.com\" already has a pending Domain Name change request (Status: New Order)" }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"
}'{}