Get started

Introduction

The ScaledMail API lets your own software buy domains and mailboxes, and place and manage orders, without opening the portal.

What you can do

  • Buy infrastructure: check and buy domains, get a price quote, and order Google, Outlook or SMTP mailboxes, including pre-warmed ones.
  • Manage orders: read an order and its status, change its tag, remove domains, or cancel it.
  • Work with domains and mailboxes: list them, read one by name, and ask for changes such as a replacement domain, a new redirect or masking target, or new sender names.
  • Run many clients from one account: create sub-workspaces under your main workspace. Their purchases are charged to the main workspace's card.

Base URL

Base URL
https://api.scaledmail.com/v2

The API only accepts HTTPS. Send bodies as JSON with Content-Type: application/json; every answer is JSON in UTF-8. Field names are snake_case, dates are YYYY-MM-DD in UTC (2026-11-14), and money is always US dollars as a number (25.98 = $25.98).

Your first request

Create an API token in the portal (see Authentication), then list the workspaces it covers:

Request
curl https://api.scaledmail.com/v2/workspaces \
  -H "Authorization: Bearer sm_live_EXAMPLE_KEY"
Answer
{
  "data": [
    {
      "id": "org_DemoWorkspace1",
      "name": "Main"
    }
  ]
}

Every other call acts on one workspace. Name it in the Workspace header with its workspace id. It is required on every one of these calls, even when your token covers a single workspace:

Request
curl https://api.scaledmail.com/v2/orders?limit=5 \
  -H "Authorization: Bearer sm_live_EXAMPLE_KEY" \
  -H "Workspace: org_DemoWorkspace1"

Core objects

ObjectId prefixWhat it is
Workspaceorg_Holds your orders, domains, mailboxes and team. A main workspace can have sub-workspaces.
MailboxnoneA mailbox has no id: use its email address.
DomainnoneA domain has no id: use its name.
Orderord_A recurring order for mailboxes on a set of domains, with a status from payment to active.
Change requestchg_A change to a live order: replace a domain, change its redirect or masking target, or its sender names.
Invoiceinv_A paid or open bill for a purchase or renewal.

Every object has an id. Treat ids as opaque strings: don't parse them or rely on their length.

Where to go next