Scaledmail
  1. Domain
Scaledmail
  • Scaledmail API Documentaion
  • Organization
    • Get Organizations
      GET
  • Pre Warm Inboxes
    • Pre Warm Inboxes
      GET
    • Buy Pre Warm Inboxes
      POST
  • Domain
    • Get Domains
      GET
    • Get Purchased Domains
      GET
    • Search Domains
      POST
    • Buy Domains
      POST
    • Update Domain Name
      POST
    • Update Domain Redirect
      POST
  • Package
    • Get Packages
      GET
  • Order
    • Get Order Details
      GET
    • Create Order
      POST
    • Get Orders
      GET
    • Cancel Order
      DELETE
  • Mailboxes
    • Get Mailboxes by Domain ID
      GET
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  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 text/plain
Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
cURL
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",
}'
Response Response Example
{}
Modified at 2026-01-30 14:18:23
Previous
Buy Domains
Next
Update Domain Redirect
Built with