1. Domain
Scaledmail
  • Scaledmail API Documentaion
  • Workspaces
    • Get Workspaces
      GET
    • Create Workspace
      POST
  • Pre Warm Inboxes
    • Pre Warm Inboxes
      GET
    • Buy Pre Warm Inboxes
      POST
  • Domain
    • Get Domains
      GET
    • Buy Domains
      POST
    • Search Domains
      POST
    • Suggest Domains
      POST
    • Update Domain Name
      POST
    • Update Domain Redirect
      POST
    • Get Purchased Domains
      GET
  • Package
    • Calculate Package
      POST
    • Get Packages
      GET
  • Order
    • Get Orders
      GET
    • Get Order Details
      GET
    • Cancel Order
      DELETE
    • Get Pending Forms
      GET
    • Submit Form
      POST
    • Create Order
      POST
    • Create Custom Order
      POST
  • Mailboxes
    • Get Mailboxes by Domain ID
      GET
  1. Domain

Update Domain Name

POST
https://server.scaledmail.com/api/v1/swap-domain/{domain}

🔑 Query Parameters#

domain (required):
The old domain name you want to swap out.
provider (required):
Specifies the source of the new domain:
→ "scaledmail" — Domain purchased through ScaledMail
→ "other" — Domain from external providers like Porkbun, Namecheap, or DNSimple

📥 Request Body Parameters#

All parameters below must be included in the JSON body of the request.
new_domain (required):
The name of the new domain you want to assign.
→ This can be either a third-party domain (external) or an available purchased domain retrieved from the /purchased-domains endpoint.
hosting (conditionally required):
Required only when provider = "other" (i.e., for third-party domains).
→ Not required if provider = "scaledmail" — ScaledMail handles hosting automatically.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Query Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
cURL
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"
}'
Response Response Example
{}
Modified at 2026-05-15 16:24:02
Previous
Suggest Domains
Next
Update Domain Redirect
Built with