Orders
Create custom order
Order any number of Google, Outlook and SMTP domains at the standard prices, and send their mailboxes in the same call. With provider=buy we also buy the domains in the same payment.
https://server.scaledmail.com/api/v1/create-custom-order- Token access
- Read and write
- Rate limit
- 15 buy calls per minute per token
This call charges your saved card right away. Always send an Idempotency-Key: if your call times out and you retry without one, you pay twice.
Everything in the body is checked before your card is charged; a 400 means nothing was charged. If the payment went through but the domains and mailboxes could not be saved, you get 500 order_ with details.: the order exists, our team is told, and you can finish it in the app. Don't send it again with a new key.
At most 300 Google, 100 Outlook and 100 SMTP domains, and 500 in total, per call. Google domains get 2 mailboxes each unless you set mailboxes_ (1, 2, 3 or 4).
Headers
AuthorizationstringrequiredBearer <your API token>. The token needs Read and write access, and the person who made it must be an owner or admin of the workspace.Idempotency-Keystringoptionalat most 255 charactersAny unique text per order (a UUID works), at most 255 characters (longer answers 400
invalid_). A key counts per token and per endpoint (foridempotency_ key POST /create-order, perprice_too). Send the same key again and you get the first result back, with no second charge. Without a key every call is a new order and a new charge.id
Query parameters
organization_idstringrequiredYour workspace id (
org_). Must be a workspace this token was made for.. . . providerenumrequiredWhere the domains come from (case is ignored).
scaledmail: domains you already bought from us and haven't used yet (GET /purchased-domains?available=true).other: your own domains, registered somewhere else.buy: we buy the listed domains for you in the same payment; every name must be available.One of:
scaledmailotherbuycouponstringoptionalat most 64 charactersA promotion code. Letters, numbers,
_and-only. A code we don't know, or one with other characters, answers 400coupon_. Not allowed on prices that don't take discounts, or when you buy domains in the same order (not_ found provider=buy): that answers 400Coupons are not allowed for this plan.domains_maskingenumoptionalSend exactly
trueto add Domain Masking. Every domain then needs amask_and may not have adomain redirect. Any other value means off.One of:
truefalsereportingenumoptionalSend exactly
trueto add the Reporting add-on for every provider in the order. A package that doesn't offer it answers 400invalid_.order One of:
truefalse
Body
providersobjectrequiredThe domains and mailboxes, per provider. At least one provider. At most 500 domains in total.
ShowHide child fields
googleobjectoptionalGoogle Workspace domains.
ShowHide child fields
mailboxes_per_domainintegeroptional1 to 4Google mailboxes per domain. Leave it out to get the default: 2, or the package's own count. Which values work depends on what you buy.
POST /create-custom-orderand the standard per-mailbox Google price: 1, 2, 3 or 4. A custom per-mailbox Google package (it listsmailbox.inoptions GET /packages): 1, 2 or 3. Any other package: leave it out (a standard package refuses every value, another custom package takes only its own count); a value it doesn't take answers 400mailboxes_. Billed by invoice: the count your order already has for Google (anything else answers 400per_ domain is not supported for this package mailboxes_), or 1, 2, 3 or 4 when it has no Google yet. Anything but 1, 2, 3 or 4 answers 400per_ domain must be 2 (your subscription's) mailboxes_.per_ domain for google must be 1, 2, 3, or 4 domainsobject[]required1 to 300 itemsThe Google domains.
ShowHide child fields
domainstringrequiredat most 253 charactersThe domain name, like
demo-domain-1.. No subdomains (com mail.) and nosite. com www.. Each name may appear only once in the whole order (case is ignored).first_namestringoptionalat most 50 charactersSender first name. With
last_, the mailbox addresses are made for you (name jane.,doe janedoe...). Send eitherfirst_+name last_orname aliases, and use the same choice for every domain of this provider.last_namestringoptionalat most 50 charactersSender last name. Goes with
first_.name profile_picturestringoptionalat most 150 charactersWith
first_+name last_: link (name httporhttps) to a profile picture for every mailbox of the domain. No base64 data. Ignored for SMTP.aliasesobject[]optional1 to 4 itemsThe mailboxes of this domain, one entry each. Exactly
mailboxes_entries (or the package's own count when you leave that out).per_ domain ShowHide child fields
first_namestringrequired1 to 50 charactersSender first name.
last_namestringrequired1 to 50 charactersSender last name.
aliasstringrequired1 to 64 charactersThe part before the
@, likejane.(not a full address). Letters, numbers,doe .,_and-; may not start or end with a symbol; no spaces. Saved in lower case. Unique within the domain (case is ignored).profile_picturestringoptionalat most 150 charactersLink (
httporhttps) to a profile picture. No base64 data. Ignored for SMTP.
redirectstringoptionalat least 1 charactersA website visitors of this domain are sent to, like
demo-domain-9.orcom demo-domain-9.(com/page http://orhttps://is optional). At most 253 characters without thehttp:///https://. If you send it, it can't be empty. Not together withmask_, and not whendomain domains_.masking=true mask_domainstringoptional1 to 253 charactersOnly with
domains_, and then required: the website this domain is masked to. Must be a main domain (not a subdomain) and not the domain itself.masking=true
outlookobjectoptionalOutlook domains.
ShowHide child fields
domainsobject[]required1 to 100 itemsThe Outlook domains. Each one gets 25 mailboxes.
ShowHide child fields
domainstringrequiredat most 253 charactersThe domain name, like
demo-domain-1.. No subdomains (com mail.) and nosite. com www.. Each name may appear only once in the whole order (case is ignored).first_namestringoptionalat most 50 charactersSender first name. With
last_, the mailbox addresses are made for you (name jane.,doe janedoe...). Send eitherfirst_+name last_orname aliases, and use the same choice for every domain of this provider.last_namestringoptionalat most 50 charactersSender last name. Goes with
first_.name profile_picturestringoptionalat most 150 charactersWith
first_+name last_: link (name httporhttps) to a profile picture for every mailbox of the domain. No base64 data. Ignored for SMTP.aliasesobject[]optional25 to 25 itemsThe mailboxes of this domain, one entry each. Exactly 25 entries.
ShowHide child fields
first_namestringrequired1 to 50 charactersSender first name.
last_namestringrequired1 to 50 charactersSender last name.
aliasstringrequired1 to 64 charactersThe part before the
@, likejane.(not a full address). Letters, numbers,doe .,_and-; may not start or end with a symbol; no spaces. Saved in lower case. Unique within the domain (case is ignored).profile_picturestringoptionalat most 150 charactersLink (
httporhttps) to a profile picture. No base64 data. Ignored for SMTP.
redirectstringoptionalat least 1 charactersA website visitors of this domain are sent to, like
demo-domain-9.orcom demo-domain-9.(com/page http://orhttps://is optional). At most 253 characters without thehttp:///https://. If you send it, it can't be empty. Not together withmask_, and not whendomain domains_.masking=true mask_domainstringoptional1 to 253 charactersOnly with
domains_, and then required: the website this domain is masked to. Must be a main domain (not a subdomain) and not the domain itself.masking=true
smtpobjectoptionalSMTP domains.
ShowHide child fields
domainsobject[]required1 to 100 itemsThe SMTP domains. Each one gets 4 mailboxes.
ShowHide child fields
domainstringrequiredat most 253 charactersThe domain name, like
demo-domain-1.. No subdomains (com mail.) and nosite. com www.. Each name may appear only once in the whole order (case is ignored).first_namestringoptionalat most 50 charactersSender first name. With
last_, the mailbox addresses are made for you (name jane.,doe janedoe...). Send eitherfirst_+name last_orname aliases, and use the same choice for every domain of this provider.last_namestringoptionalat most 50 charactersSender last name. Goes with
first_.name profile_picturestringoptionalat most 150 charactersWith
first_+name last_: link (name httporhttps) to a profile picture for every mailbox of the domain. No base64 data. Ignored for SMTP.aliasesobject[]optional4 to 4 itemsThe mailboxes of this domain, one entry each. Exactly 4 entries.
ShowHide child fields
first_namestringrequired1 to 50 charactersSender first name.
last_namestringrequired1 to 50 charactersSender last name.
aliasstringrequired1 to 64 charactersThe part before the
@, likejane.(not a full address). Letters, numbers,doe .,_and-; may not start or end with a symbol; no spaces. Saved in lower case. Unique within the domain (case is ignored).profile_picturestringoptionalat most 150 charactersLink (
httporhttps) to a profile picture. No base64 data. Ignored for SMTP.
redirectstringoptionalat least 1 charactersA website visitors of this domain are sent to, like
demo-domain-9.orcom demo-domain-9.(com/page http://orhttps://is optional). At most 253 characters without thehttp:///https://. If you send it, it can't be empty. Not together withmask_, and not whendomain domains_.masking=true mask_domainstringoptional1 to 253 charactersOnly with
domains_, and then required: the website this domain is masked to. Must be a main domain (not a subdomain) and not the domain itself.masking=true
tagstringoptionalat most 60 charactersYour own label for the order, at most 60 characters after spaces at the ends are removed.
hostingobjectoptionalLogin of the registrar that holds your own domains, so we can set up their DNS. Only with
provider=other(refused withscaledmailorbuy). Optional.ShowHide child fields
providerenumrequiredWhere the domains are registered (case, spaces,
-and_are ignored:go daddy=Godaddy).One of:
PorkbunNamecheapGodaddyHostGatorBigrockSpaceshipDynadotIonosCloudflareDnSimpleScaledmailOtherusernamestringrequired1 to 254 charactersLogin for that registrar.
passwordstringrequired1 to 500 charactersPassword for that login.
linkstringoptional1 to 500 charactersLogin page, a web address like
https://demo-domain-9.. If you send it, it can't be empty.com/login api_keystringoptionalat most 500 charactersRegistrar API key, if you have one.
api_secretstringoptionalat most 500 charactersRegistrar API secret (Porkbun, Spaceship, Dynadot, GoDaddy).
sequencerobjectoptionalLogin of the sending tool we add the mailboxes to. Optional.
ShowHide child fields
providerenumrequiredYour sending tool (case, spaces,
-and_are ignored:emailbison=Email Bison).One of:
PiplSmartleadInstantlyEmail BisonListKitPlusVibeLemlistApolloSaleshandyMailreachSalesforgeReplySupersendZa-ZuClayOtherusernamestringrequired1 to 254 charactersLogin for that tool.
passwordstringrequired1 to 500 charactersPassword for that login.
linkstringoptional1 to 500 charactersLogin page, a web address like
https://demo-domain-9.. If you send it, it can't be empty.com/login workspacestringoptional1 to 100 charactersWorkspace in the tool to add the mailboxes to. If you send it, it can't be empty.
tagstringoptional1 to 60 charactersTag for the mailboxes in the tool. Send
{{ID}}to use the new order id. If you send it, it can't be empty.api_keystringoptionalat most 500 charactersThe tool's API key, if you have one.
Response (200)
messagestringrequiredOrder created successfully.order_idstringrequiredThe new order id (
sub_). Use it with. . . GET /orders/:uuid.domains_purchasedstring[]optionalOnly with
provider=buy: the domains bought, as you sent them.
Responses
- 200OK. The card was charged and the order is placed.
- 400Invalid input. The body breaks a rule, for example too many domains.
errorsays what,codeis mostlyinvalid_(alsorequest invalid_,idempotency_ key tag_,too_ long invalid_,name invalid_,mask_ domain invalid_, andorder order_when another call is placing one of the same domains right now). A bad or unknownin_ progress couponanswerserror: "coupon_. Withnot_ found" provider=other, a domain that is already in ScaledMail answersExisting domains found: .. Nothing is charged.. . - 400Not available. With
provider=buy: one or more names can't be bought. Nothing is charged. - 400No saved card. The workspace has no saved card. Add one in the app under Billing. Nothing is charged.
- 403Not for your account. Your account is billed by invoice instead of by card. Use
POST /create-order/:price_with your own prices.id - 403Not allowed. The person who made the token may not place orders in this workspace (not an owner or admin). A Read token gets 403
missing_.scope - 402Card declined. The bank refused the payment. Nothing is charged. Retry with a new
Idempotency-Key(the same key answers 402payment_).failed card_(also 402): the bank wants an extra check that can't be done through the API.requires_ action - 409In progress. A call with the same
Idempotency-Keyis still running. Wait a moment and send it again. - 500Charged, not finished. The payment may have gone through but the order could not be finished. Our team is told and finishes or refunds it. Don't retry with a new
Idempotency-Key. (500order_, withform_ failed details.: the order exists but its domains and mailboxes were not saved; finish them in the app.)order_ id - 500Failed. Something else went wrong. On this call the answer has
errortext and nocode. CheckGET /ordersbefore you retry, and retry with the sameIdempotency-Key. - 429Busy. Too many orders are being placed at once. Nothing is charged. Wait for the
Retry-Afterseconds and send it again with the sameIdempotency-Key. - 429Too many orders. The person who made the token started more than 30 orders in the last hour. Nothing is charged. Try again later.
- 429Rate limited. More than 15 buy calls in a minute. Wait for the
Retry-Afterseconds. - 501Not available. Paying with a saved card (or buying domains) is switched off right now. Nothing is charged.
