Back to API & MCP

API reference

Base URL https://app.frostmailer.com/api/v1

Markdown

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:

  1. Optional: POST /domains/suggest for free names and POST /orders/quote for the exact price.
  2. POST /orders with the product, inbox count, domains, and personas.
  3. The API prices it server-side and returns a checkout_url with status awaiting_payment. Or, with "payment": "saved_card" on accounts where it is on, charges the card on file and returns pending.
  4. You open the link and pay. Nothing is provisioned until payment completes.
  5. Payment moves the order to pending and into fulfilment. Track with GET /orders/{id}.
  6. At completed, list inboxes and list domains return 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

TypeLimit
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"?: {...} }.

HTTPerrorMeaning
400invalid_requestBody failed validation (see issues or message).
401unauthorizedMissing, malformed, unknown, or revoked key.
402over_capA saved-card order would go over your 30-day cap. Nothing was created.
403auto_charge_disabledSaved-card payment is not on for your account. Contact support.
403byo_not_allowedBring-your-own domains are not enabled for Microsoft on your account.
404not_foundResource does not exist, or is not yours.
409domain_takenA requested domain is already reserved.
409out_of_stockPre-warmed: not enough stock (requested, available, warming). Nothing was created.
409already_cancelledOrder is already cancelled.
422over_budgetFirst invoice above your max_amount_cents (quote included). Nothing was created.
429rate_limitedToo many requests, see retry_after_seconds.
500order_create_failed / query_failedServer error, safe to retry.
502checkout_failed / check_failedUpstream (Stripe / registrar) failed, retry.
502 / 409charge_unknownSaved 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.
503payment_unavailablePayments unavailable, no order was created.
503nameservers_unavailable / suggest_unavailable / cap_check_failedA dependency is briefly down. Nothing was created, retry.

Statuses

Order status

StatusMeaning
awaiting_paymentCreated, waiting for payment. Not yet in fulfilment.
pendingPaid, queued for fulfilment.
in_progressBeing built.
completedLive and delivered.
cancelledCancelled.

Domain status: reserved, purchased, connected, active, failed. Domain source: spaceship (we register) or byo. Inbox status: pending, active, disabled.

Create an order

POST/orders

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.

FieldTypeNotes
productstringrequiredmicrosoft (Outlook / Azure) or google.
inbox_countintegerrequiredMicrosoft: multiple of per_domain, max 5000. Google: your account's minimum (15 unless agreed otherwise) to 750.
domainsarrayrequired[{ "domain": "getbrand.com" }]. Exactly ceil(inbox_count / per_domain). Lowercase, unique.
personasarrayrequiredSenders { first_name, last_name? }. Microsoft: 1-4. Google: 1-3 (and never more than per_domain).
domain_modestringoptionalbuy (default, we register) or byo (bring your own, needs hosting).
hostingobjectif BYORegistrar 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).
platformobjectoptionalSending 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_domainintegeroptionalMicrosoft 50/25 (default 50; 100 only on accounts that have it, where it stays the default). Google 3/2/1 (default 3).
redirect_urlstringoptionalWhere the domains redirect. Required for stealth_redirect.
stealth_redirectbooleanoptionalDomain 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_urlstringoptionalPersona profile picture, e.g. a Google Drive link.
namestringoptionalLabel, max 120 chars. Defaults to "Company order N (first persona)" when omitted.
paymentstringoptionalcheckout (default, returns a Stripe link) or saved_card (charges the card on file, see Saved-card payment).
max_amount_centsintegeroptionalBudget 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

FieldTypeNotes
order_iduuidThe new order.
namestringThe order name, yours or the default.
statusstringpending when the saved card was charged, otherwise awaiting_payment.
payment_statusstringpaid (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_urlURL or nullOpen to pay. Null when paid. Payable for 20 minutes, then the unpaid order is cancelled and its domains released.
payment_messagestringOnly with action_required: why the card was not charged (no card, declined, 3D Secure).
invoice_id / amount_charged_centsstring / integerOnly when paid: the Stripe invoice and the amount charged, tax included.
quoteobjectThe price, same shape as POST /orders/quote.
stealth_redirectstring or nullordered when domain masking is on this order, otherwise null.
nameserversarray or nullFor hosting mode nameservers: the pair, when every domain on the order got the same one. Otherwise null, see domains.
domainsarrayFor hosting mode nameservers: [{ domain, nameservers }], each domain's own pair.
nameserver_deadline_hoursintegerOnly with nameservers: always 6.
warningsarrayOnly 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

POST/orders/quote

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", a payment_message and a checkout_url to pay by hand.
  • Combine with max_amount_cents so an automated order never costs more than you expect. Budgets and the cap compare amounts before tax.
  • Send an Idempotency-Key header (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

POST/orders

Mailboxes delivered already warmed for 4 weeks, domain included. The supplier picks domains and personas.

FieldTypeNotes
productstringrequiredmicrosoft_prewarmed or google_prewarmed.
accountsintegerrequiredMicrosoft: multiples of 100, min 200. Google: multiples of 3, 6 to 150.
redirect_urlstringoptionalWhere the domains redirect visitors.
platform / name / payment / max_amount_centsoptionalSame 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" }'
GET/prewarmed/stock

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

GET/orders

Returns { "orders": [ ... ] }, newest first.

FieldType
iduuid
namestring or null
providergoogle or azure (azure = Microsoft)
statussee Statuses
inbox_count / domain_countinteger
amount_centsinteger (cents in currency, per billing cycle, add-ons included)
currencyeur or usd
created_atISO 8601
GET/orders/{id}

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": "..." } ]
}
GET/orders/{id}/inboxes

{ "inboxes": [ { email, persona_name, status, domain, created_at } ] }. Passwords are not returned by the API, retrieve credentials from your dashboard.

Domains

GET/domains

Every domain you own: { domain, source, status, nameservers, redirect_url, order_id, created_at }.

POST/domains/check
FieldTypeNotes
domainsarrayrequired1 to 20 domain names.
productstringoptionalmicrosoft 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.

POST/domains/suggest

Free names built from your brand, in one call. For Google, names still verified in another Workspace are left out.

FieldTypeNotes
seedsarrayrequired1 to 5 brand names or websites.
countintegerrequired1 to 100.
tldstringoptional.com (default), .org or .co.
productstringoptionalmicrosoft or google (default). Use the product you will order.
excludearrayoptionalNames 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

POST/orders/{id}/cancel

Flags the order for the retention team. It does not cancel immediately.

FieldTypeNotes
notestringrequiredWhy you are cancelling, 10 to 1000 chars.
reasonstringoptionalShort 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

GET/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.