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
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_, dates are YYYY-MM-DD in UTC (2026-11-14), and money is always US dollars as a number (25. = $25.98).
Your first request
Create an API token in the portal (see Authentication), then list the workspaces it covers:
curl https://api.scaledmail.com/v2/workspaces \ -H "Authorization: Bearer sm_live_EXAMPLE_KEY"
{
"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:
curl https://api.scaledmail.com/v2/orders?limit=5 \ -H "Authorization: Bearer sm_live_EXAMPLE_KEY" \ -H "Workspace: org_DemoWorkspace1"
Core objects
| Object | Id prefix | What it is |
|---|---|---|
| Workspace | org_ | Holds your orders, domains, mailboxes and team. A main workspace can have sub-workspaces. |
| Mailbox | none | A mailbox has no id: use its email address. |
| Domain | none | A domain has no id: use its name. |
| Order | ord_ | A recurring order for mailboxes on a set of domains, with a status from payment to active. |
| Change request | chg_ | A change to a live order: replace a domain, change its redirect or masking target, or its sender names. |
| Invoice | inv_ | 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
- Authentication: tokens, scopes and which workspaces a token reaches.
- Workspaces and sub-workspaces: the
Workspaceheader and who pays for what. - Errors and Rate limits: read these before you call anything that charges your card from a script. Each
POST /orders,POST /orders/:id/add-domainsandPOST /domain-purchasescall is a new purchase: after a timeout, checkGET /ordersbefore sending it again. - Moving from v1: each v1 route and its v2 replacement.
