API reference
Base URL https://app.frostmailer.com/api/v1
How it works
Frostmailer provisions Microsoft (Outlook, also called Azure) or Google Workspace mailboxes on their own domains, with DNS authentication pre-configured, ready to plug into any sending tool. The API exposes four resources: orders, domains, inboxes, and your account.
Domains work two ways: buy (we register them, the default) or byo (you bring your own and pass a hosting object so we can set up DNS, no domain fee). Optionally attach your sending tool with a platform object and we load the inboxes into it.
The ordering and payment flow:
- Optional:
POST /domains/suggestfor free names andPOST /orders/quotefor the exact price. POST /orderswith the product, inbox count, domains, and personas.- The API prices it server-side and returns a
checkout_urlwith statusawaiting_payment. Or, with"payment": "saved_card"on accounts where it is on, charges the card on file and returnspending. - You open the link and pay. Nothing is provisioned until payment completes.
- Payment moves the order to
pendingand into fulfilment. Track withGET /orders/{id}. - At
completed,list inboxesandlist domainsreturn the live mailboxes and domains.
There is no way to order without paying: status and price are set server-side, and only a completed Stripe payment moves an order out of awaiting_payment.
Building automation, like replacing domains when placement drops? Quote the order against your budget, suggest names in one call, then order with "payment": "saved_card" and max_amount_cents so it is refused, not created, if it would cost more than you allow.
Get set up in 5 minutes
New here? You don't need to read the whole reference. Open Claude Code, Claude Desktop, Cursor, or Codex and paste this prompt. It acts as your setup guide and walks you through everything, one step at a time.
I want to connect Frostmailer to this tool so I can order cold-email inboxes
right here. Act as my setup guide: walk me through it one step at a time, and
wait for me to confirm each step before moving to the next.
Steps:
1. Check I have Node.js 18+ (have me run: node --version). If it is missing,
point me to https://nodejs.org to install it.
2. Tell me to create an API key at https://app.frostmailer.com/developers, copy
it (it starts with fm_live_ and is shown only once), and paste it back to you.
3. Connect the Frostmailer MCP server:
- Claude Code: give me the exact terminal command:
claude mcp add --env FROSTMAILER_API_KEY=<my key> --transport stdio frostmailer -- npx -y frostmailer-mcp
- Claude Desktop / Cursor / Codex: give me the JSON to paste into my MCP
config, and tell me where that config file lives for my tool.
4. Have me restart or reload the tool, then confirm the "frostmailer" tools show
up (get_account, create_order, check_domain, list_orders, and so on).
5. Run a safe check: call get_account and show me my profile to prove it works.
6. Explain how to order: I tell you the product (Microsoft or Google), how many
inboxes, whether to buy domains from you or bring my own (with hosting
details), and my sender names. You call create_order and hand me the Stripe
checkout link to pay. Remind me nothing is provisioned until I pay.
Begin with step 1 now.Prefer to set it up by hand? The exact commands are in the MCP section below.
Authentication
Create keys on the API & MCP page. The plaintext is shown once, store it safely. Send it on every request:
Authorization: Bearer fm_live_...
Keys are scoped to your account, every response returns only your own data. Only a hash is stored, so a lost key cannot be recovered, create a new one and revoke the old. Revoked keys immediately return 401.
Rate limits
| Type | Limit |
|---|---|
| Reads (GET) | 120 / min per key |
| Writes (POST) | 30 / min per key |
Over the limit returns 429 with a Retry-After header and { "error": "rate_limited", "retry_after_seconds": N }.
Errors
Non-2xx responses are JSON: { "error": "code", "message"?: "...", "issues"?: {...} }.
| HTTP | error | Meaning |
|---|---|---|
| 400 | invalid_request | Body failed validation (see issues or message). |
| 401 | unauthorized | Missing, malformed, unknown, or revoked key. |
| 402 | over_cap | A saved-card order would go over your 30-day cap. Nothing was created. |
| 403 | auto_charge_disabled | Saved-card payment is not on for your account. Contact support. |
| 403 | byo_not_allowed | Bring-your-own domains are not enabled for Microsoft on your account. |
| 404 | not_found | Resource does not exist, or is not yours. |
| 409 | domain_taken | A requested domain is already reserved. |
| 409 | out_of_stock | Pre-warmed: not enough stock (requested, available, warming). Nothing was created. |
| 409 | already_cancelled | Order is already cancelled. |
| 422 | over_budget | First invoice above your max_amount_cents (quote included). Nothing was created. |
| 429 | rate_limited | Too many requests, see retry_after_seconds. |
| 500 | order_create_failed / query_failed | Server error, safe to retry. |
| 502 | checkout_failed / check_failed | Upstream (Stripe / registrar) failed, retry. |
| 502 / 409 | charge_unknown | Saved card: no answer from the payment provider, charge unconfirmed. Our team is alerted to check. The same Idempotency-Key returns 409 until resolved; check your invoices before retrying with a new key. |
| 503 | payment_unavailable | Payments unavailable, no order was created. |
| 503 | nameservers_unavailable / suggest_unavailable / cap_check_failed | A dependency is briefly down. Nothing was created, retry. |
Statuses
Order status
| Status | Meaning |
|---|---|
awaiting_payment | Created, waiting for payment. Not yet in fulfilment. |
pending | Paid, queued for fulfilment. |
in_progress | Being built. |
completed | Live and delivered. |
cancelled | Cancelled. |
Domain status: reserved, purchased, connected, active, failed. Domain source: spaceship (we register) or byo. Inbox status: pending, active, disabled.
Create an order
Prices server-side, then charges your saved card or returns a Stripe checkout link. Pick names with /domains/suggest first. Pre-warmed takes a smaller body, see Pre-warmed orders.
| Field | Type | Notes | |
|---|---|---|---|
product | string | required | microsoft (Outlook / Azure) or google. |
inbox_count | integer | required | Microsoft: multiple of per_domain, max 5000. Google: your account's minimum (15 unless agreed otherwise) to 750. |
domains | array | required | [{ "domain": "getbrand.com" }]. Exactly ceil(inbox_count / per_domain). Lowercase, unique. |
personas | array | required | Senders { first_name, last_name? }. Microsoft: 1-4. Google: 1-3 (and never more than per_domain). |
domain_mode | string | optional | buy (default, we register) or byo (bring your own, needs hosting). |
hosting | object | if BYO | Registrar access { platform, login?, password?, backup_codes? } (platform + a password or backup_codes), or for Google { mode: "nameservers" }: you point the domains at our nameservers yourself, no logins. The zones are created in our Cloudflare the moment the order exists and the response returns each domain's pair (domains[], plus nameservers when all share one) with a 6-hour deadline; we detect the change automatically (domain status moves to connected). |
platform | object | optional | Sending tool: { provider, api_key, login, password, workspace?, url? }. api_key, login and password are all required unless provider is none; url is required for emailbison. |
per_domain | integer | optional | Microsoft 50/25 (default 50; 100 only on accounts that have it, where it stays the default). Google 3/2/1 (default 3). |
redirect_url | string | optional | Where the domains redirect. Required for stealth_redirect. |
stealth_redirect | boolean | optional | Domain masking: each domain shows redirect_url with no visible redirect. Billed per domain at your account's rate (standard 1 EUR per domain per cycle) as its own checkout line. |
profile_picture_url | string | optional | Persona profile picture, e.g. a Google Drive link. |
name | string | optional | Label, max 120 chars. Defaults to "Company order N (first persona)" when omitted. |
payment | string | optional | checkout (default, returns a Stripe link) or saved_card (charges the card on file, see Saved-card payment). |
max_amount_cents | integer | optional | Budget guard: if the first invoice (recurring plus one-time, before tax) is higher, you get 422 over_budget and nothing is created. |
When an order is paid, fulfilment is notified automatically with every detail (domains, hosting access, sending platform, personas, redirect). You get a confirmation email, and another when it goes live.
Response
| Field | Type | Notes |
|---|---|---|
order_id | uuid | The new order. |
name | string | The order name, yours or the default. |
status | string | pending when the saved card was charged, otherwise awaiting_payment. |
payment_status | string | paid (saved card charged), awaiting_payment (pay at checkout_url), or action_required (saved card could not be charged: see payment_message, checkout_url is the fallback). |
checkout_url | URL or null | Open to pay. Null when paid. Payable for 20 minutes, then the unpaid order is cancelled and its domains released. |
payment_message | string | Only with action_required: why the card was not charged (no card, declined, 3D Secure). |
invoice_id / amount_charged_cents | string / integer | Only when paid: the Stripe invoice and the amount charged, tax included. |
quote | object | The price, same shape as POST /orders/quote. |
stealth_redirect | string or null | ordered when domain masking is on this order, otherwise null. |
nameservers | array or null | For hosting mode nameservers: the pair, when every domain on the order got the same one. Otherwise null, see domains. |
domains | array | For hosting mode nameservers: [{ domain, nameservers }], each domain's own pair. |
nameserver_deadline_hours | integer | Only with nameservers: always 6. |
warnings | array | Only when present: [{ code: "domain_occupied", domains, message }]. Google orders only. Those domains are still verified in another Google Workspace account; the order stands, ask the previous provider to release them (2 to 3 days) or replace them. |
Microsoft example (buy domains)
curl -X POST https://app.frostmailer.com/api/v1/orders \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{
"product": "microsoft",
"inbox_count": 100,
"per_domain": 50,
"domains": [{ "domain": "getbrandmail.com" }, { "domain": "trybrandmail.com" }],
"personas": [{ "first_name": "Alex", "last_name": "Morgan" }],
"name": "Q3 outbound"
}'{
"order_id": "5f6a...",
"name": "Q3 outbound",
"status": "awaiting_payment",
"payment_status": "awaiting_payment",
"checkout_url": "https://checkout.stripe.com/...",
"quote": { "currency": "eur", "interval": "4_weeks", "recurring_cents": 6000, "one_time_cents": 0, "first_invoice_cents": 6000, "inbox_count": 200, "domain_count": 2, "lines": [ ... ] },
"stealth_redirect": null,
"nameservers": null
}
// With "payment": "saved_card":
{
"order_id": "5f6a...",
"status": "pending",
"payment_status": "paid",
"checkout_url": null,
"invoice_id": "in_1Q...",
"amount_charged_cents": 6000,
...
}Bring-your-own-domains example
curl -X POST https://app.frostmailer.com/api/v1/orders \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{
"product": "microsoft",
"inbox_count": 50,
"domain_mode": "byo",
"domains": [{ "domain": "mydomain.com" }],
"personas": [{ "first_name": "Alex" }],
"hosting": { "platform": "Spaceship", "login": "me@email.com", "password": "..." },
"platform": { "provider": "smartlead", "api_key": "sl_...", "login": "me@email.com", "password": "..." },
"redirect_url": "https://mybrand.com"
}'Pricing model: Microsoft is per domain (tenant), Google is per inbox on a volume tier, renewed every 4 weeks unless agreed otherwise. Buying domains from us adds a one-time registration charge on the first invoice; bringing your own has no domain fee, just the subscription. Get the exact amount up front with POST /orders/quote.
Quote an order
What an order would cost, without creating anything. Same body as POST /orders (standard or pre-warmed). For standard orders domains and personas can be left out. domain_mode defaults to buy, so a Google quote includes the domain fee unless you send byo.
curl -X POST https://app.frostmailer.com/api/v1/orders/quote \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{ "product": "google", "inbox_count": 30 }'{
"quote": {
"currency": "eur",
"interval": "4_weeks",
"recurring_cents": 9000,
"one_time_cents": 12000,
"first_invoice_cents": 21000,
"inbox_count": 30,
"domain_count": 10,
"lines": [
{ "name": "Google Workspace (30 accounts)", "unit_amount_cents": 9000, "quantity": 1, "recurring": true },
{ "name": "Domain registration (one-time)", "unit_amount_cents": 1200, "quantity": 10, "recurring": false }
]
},
"saved_card": { "enabled": true, "cap_cents": 200000, "charged_last_30_days_cents": 45000, "within_cap": true }
}recurring_cents is charged every interval (4_weeks or month), one_time_cents only on the first invoice, first_invoice_cents is both. Amounts are before any tax. lines are exactly what will be billed. saved_card says whether saved-card payment is on, your cap (null = none) and how much is used. Pre-warmed quotes also return stock: { in_stock, available_accounts, warming_accounts }.
Saved-card payment
Send "payment": "saved_card" on POST /orders and the order is charged to the card on your billing account, with no checkout page. It goes straight to pending and into fulfilment, so automated systems can order without a person.
- Off by default. Ask support to switch it on. We can set a rolling 30-day spend cap (402 over_cap above it).
- Uses the card from your last Frostmailer payment (manage it under Billing). Pay one order by checkout first if you never have.
- If the card can't be charged (no card, declined, 3D Secure), the order is still created with
payment_status: "action_required", apayment_messageand acheckout_urlto pay by hand. - Combine with
max_amount_centsso an automated order never costs more than you expect. Budgets and the cap compare amounts before tax. - Send an
Idempotency-Keyheader (a unique string per intended order) so a retry after a timeout returns the first order (replayed: true) instead of placing and charging a second one. - Billing is identical to checkout: same subscription, cycle and invoices.
Pre-warmed orders
Mailboxes delivered already warmed for 4 weeks, domain included. The supplier picks domains and personas.
| Field | Type | Notes | |
|---|---|---|---|
product | string | required | microsoft_prewarmed or google_prewarmed. |
accounts | integer | required | Microsoft: multiples of 100, min 200. Google: multiples of 3, 6 to 150. |
redirect_url | string | optional | Where the domains redirect visitors. |
platform / name / payment / max_amount_cents | optional | Same as standard orders. |
Not enough stock returns 409 out_of_stock with requested, available and warming, and nothing is created. The response is otherwise the same as a standard order.
curl -X POST https://app.frostmailer.com/api/v1/orders \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{ "product": "microsoft_prewarmed", "accounts": 200, "redirect_url": "https://mybrand.com/?utm_source=cold", "payment": "saved_card" }'What can be ordered right now, at your own rate.
{
"products": {
"microsoft_prewarmed": {
"available_accounts": 2600, "available_domains": 26, "warming_accounts": 1200,
"max_order_accounts": 2600, "min_accounts": 200, "step": 100, "accounts_per_domain": 100,
"price_cents_per_account": 50, "currency": "eur", "warmup_weeks": 4, "updated_at": "2026-11-06T09:00:00Z"
},
"google_prewarmed": { "...": "same fields" }
}
}max_order_accounts is the largest order that would go through now (0 when below the minimum).
Track orders
Returns { "orders": [ ... ] }, newest first.
| Field | Type |
|---|---|
id | uuid |
name | string or null |
provider | google or azure (azure = Microsoft) |
status | see Statuses |
inbox_count / domain_count | integer |
amount_cents | integer (cents in currency, per billing cycle, add-ons included) |
currency | eur or usd |
created_at | ISO 8601 |
The order plus its settings (domain_mode, per_domain, redirect_url, stealth_redirect, personas, nameservers), events (status timeline) and domains. Credentials are never returned. Returns 404 if not yours.
{
"id": "5f6a...", "name": "Q3 outbound", "provider": "azure",
"status": "in_progress", "inbox_count": 100, "domain_count": 2,
"amount_cents": 6000, "currency": "eur", "created_at": "2026-07-29T...",
"domain_mode": "buy", "per_domain": 50, "redirect_url": "https://mybrand.com",
"stealth_redirect": null, "personas": [ { "first_name": "Alex", "last_name": "Morgan" } ], "nameservers": null,
"events": [
{ "actor": "system", "from_status": null, "to_status": "awaiting_payment", "note": "Order created, awaiting payment", "created_at": "..." },
{ "actor": "system", "from_status": "awaiting_payment", "to_status": "pending", "note": "Payment received", "created_at": "..." }
],
"domains": [ { "domain": "getbrandmail.com", "source": "spaceship", "status": "active", "nameservers": [], "redirect_url": null, "created_at": "..." } ]
}{ "inboxes": [ { email, persona_name, status, domain, created_at } ] }. Passwords are not returned by the API, retrieve credentials from your dashboard.
Domains
Every domain you own: { domain, source, status, nameservers, redirect_url, order_id, created_at }.
| Field | Type | Notes | |
|---|---|---|---|
domains | array | required | 1 to 20 domain names. |
product | string | optional | microsoft or google (registrar account). Defaults to google, so pass microsoft for Microsoft orders. |
curl -X POST https://app.frostmailer.com/api/v1/domains/check \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{ "domains": ["getbrandmail.com", "trybrandmail.com"], "product": "microsoft" }'{ "configured": true, "availability": { "getbrandmail.com": true, "trybrandmail.com": false } }availability is an object keyed by domain: true = free, false = taken. A domain the registrar gives no answer for is left out, treat a missing key as not available. { "configured": false, "availability": {} } means it can't be checked right now, retry later. Availability is not a reservation.
Free names built from your brand, in one call. For Google, names still verified in another Workspace are left out.
| Field | Type | Notes | |
|---|---|---|---|
seeds | array | required | 1 to 5 brand names or websites. |
count | integer | required | 1 to 100. |
tld | string | optional | .com (default), .org or .co. |
product | string | optional | microsoft or google (default). Use the product you will order. |
exclude | array | optional | Names to skip, up to 500. |
curl -X POST https://app.frostmailer.com/api/v1/domains/suggest \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{ "seeds": ["brandmail"], "count": 10, "product": "microsoft" }'Returns { "domains": [...], "requested": 10, "returned": 10 }. returned can be lower when the seeds run out of free variants, add another seed. Names are held only once they are on an order.
Request cancellation
Flags the order for the retention team. It does not cancel immediately.
| Field | Type | Notes | |
|---|---|---|---|
note | string | required | Why you are cancelling, 10 to 1000 chars. |
reason | string | optional | Short reason category, max 120 chars. |
curl -X POST https://app.frostmailer.com/api/v1/orders/ORDER_ID/cancel \
-H "Authorization: Bearer fm_live_..." \
-H "Content-Type: application/json" \
-d '{ "note": "Winding down this campaign for now." }'Returns { "ok": true, "status": "cancellation_requested" }.
Account
Your profile and a live subscription summary.
{
"email": "you@company.com", "full_name": "You", "company_name": "Company",
"created_at": "2026-01-01T00:00:00Z",
"subscription": { "active_orders": 3, "total_inboxes": 260, "monthly_amount_cents": 78000, "currency": "eur" }
}Connect to Claude, Cursor, Codex (MCP)
Every MCP-capable tool can drive this API through the frostmailer-mcp npm package.
Claude Code
claude mcp add --env FROSTMAILER_API_KEY=fm_live_... --transport stdio frostmailer -- npx -y frostmailer-mcp
Claude Desktop / Cursor / Codex
{
"mcpServers": {
"frostmailer": {
"command": "npx",
"args": ["-y", "frostmailer-mcp"],
"env": { "FROSTMAILER_API_KEY": "fm_live_..." }
}
}
}Tools: create_order, create_prewarmed_order, quote_order, list_orders, get_order, list_inboxes, list_domains, check_domain, suggest_domains, get_prewarmed_stock, cancel_order, get_account.
Order from Slack (or any chat assistant)
Connect the same MCP to an AI assistant in Slack, then paste this prompt once. After that you can order in plain English and it hands you a payment link.
Setup prompt (paste once)
You can place Frostmailer cold-email orders through the "frostmailer" MCP.
When I ask to order inboxes, collect these, asking only for what's missing:
- Product: Microsoft (Outlook / Azure) or Google, and how many inboxes.
- Domains: buy them for me or bring my own?
- Buy: Google domains are 12 EUR one-time per .com; Microsoft includes the
domain. Suggest names and check availability with check_domain.
- Bring my own: get the domain names AND where they're hosted (platform +
login + password or backup codes). No domain fee.
- Personas (sender names): Microsoft allows 1-4, Google up to 3.
- Optional: a redirect URL, Stealth Redirect (domain masking, needs the redirect
URL, billed per domain), a profile picture link (e.g. Google Drive), and my
sending tool (provider + API key, plus login/password if it has them).
Then call create_order. It returns a checkout_url. Give me that link to pay,
and say nothing is provisioned until I pay. After I confirm payment, use
get_order to track it, and list_inboxes / list_domains once it's live.Then just order, buy domains from us
Place a Frostmailer order: - Product: Google - Inboxes: 30 (3 per domain) - Domains: buy them for me (12 EUR each, suggest 10 good .com and check availability) - Personas: Sam Carter, Jordan Lee, Riley Fox - Redirect (optional): https://mybrand.com - Profile picture (optional): <Google Drive link> - Sending tool: Smartlead, API key sl_xxx (+ login / password if needed) Give me the checkout link.
Or bring your own domains
Place a Frostmailer order: - Product: Microsoft (domain included, up to 4 personas) - Inboxes: 50 - Domains: I am bringing my own: mydomain.com - Hosting: Spaceship, login me@email.com, password ****** - Personas: Alex Morgan - Sending tool (optional): Smartlead, API key sl_xxx Give me the checkout link.
FAQ
How do I pay for an order?
POST /orders returns a checkout_url. Open it and pay by card. Nothing is built until payment completes. Accounts with saved-card payment on can send payment: saved_card instead and skip the link.
Can my system order without a person paying?
Yes, with saved-card payment. Ask support to switch it on, optionally with a 30-day spend cap.
Can I see the price before ordering?
Yes, POST /orders/quote with the same body. Nothing is created.
Can I place an order without paying?
No. Orders are created as awaiting_payment and only a completed Stripe payment moves them into fulfilment. Price and status are set server-side, not by the caller.
What happens after I pay?
The order moves to pending, then in_progress, then completed. Poll GET /orders/{id} to follow it.
How many domains do I need?
ceil(inbox_count / per_domain). Microsoft defaults to 50 per domain, Google to 3. The API returns a clear error with the exact count if it does not match.
What is the difference between Microsoft and Google?
Microsoft (Outlook / Azure) is billed per domain, suits high volume (50 inboxes per domain, about 200 sends a day), and allows up to 4 personas. Google (Workspace) is billed per inbox on a volume tier, from your account's minimum (15 by default) to 750 inboxes, fewer per domain, and allows up to 3 personas. Both include DNS setup.
Microsoft, Outlook, or Azure?
Same product. Send product “microsoft”; the API may show the provider as “azure”.
Can I bring my own domains?
Yes. Set domain_mode to byo, list your domains, and pass a hosting object (where they are hosted plus login/password or backup codes) so we can configure DNS. On Google you can instead send hosting mode nameservers and point the domains at the nameservers we return, within 6 hours, no logins shared. No domain fee, just the subscription. Prefer us to register them? Use domain_mode buy (the default).
What is Stealth Redirect?
Domain masking. Each sending domain shows your redirect_url site without a visible redirect. Pass stealth_redirect true together with a redirect_url. It is billed per domain as its own line on the subscription.
Can I connect my sending tool?
Yes. Pass a platform object with your provider and API key (or login/password/workspace). We load the inboxes into it during fulfilment.
How do I get my mailbox passwords?
Credentials are in your dashboard. For security they are not returned by the API in v1.
How do I cancel?
POST /orders/{id}/cancel with a note. This notifies the retention team, who handle it. It is not instant.
Do you have webhooks?
Not yet. Poll GET /orders/{id} for status for now. Outbound webhooks are on the roadmap.
Is my API key safe to share?
No, treat it like a password. It can place orders and read your data. Revoke it any time on the API & MCP page.