Domains
List purchased domains
List the domains you bought from ScaledMail, with price, renewal date and the order each one is on.
https://server.scaledmail.com/api/v1/purchased-domains- Token access
- Read
- Rate limit
- 120 read calls per minute per token
Use ?available=true to find domains you can put in a new order with POST /create-order and provider=scaledmail. Expired and released domains are not listed.
A domain that is on an order (or held for one) but still being registered already shows as Registered. Domains on no order come with only id, price and domain.
Headers
AuthorizationstringrequiredBearer <your API token>. The token needs Read access.
Query parameters
organization_idstringrequiredYour workspace id (
org_). Must be a workspace this token was made for.. . . availablestringoptionalSend
trueto list only domains that are free to use: not on an order and not held for one. Any other value lists all.
Response (200)
totalintegerrequiredHow many domains are listed.
domainsobject[]requiredYour bought domains, by name.
ShowHide child fields
idstringrequiredThe purchase id (a UUID). For a few older domains, the domain's id.
pricenumberrequiredWhat you paid for the domain, in US dollars.
0when unknown.domainstringrequiredThe domain name.
payment_idstringoptionalOnly when the domain is on an order or held for one: that order (
sub_). The fields below come with it.. . . domain_idstringoptionalThe domain's id in
GET /domainsonce it is on the order. Empty while it is only held.status"Registered"optionalAlways
Registeredwhile you own the domain.created_atstringoptionalDay it was bought,
YYYY-MM-DD.renewal_atstringoptionalDay it renews,
YYYY-MM-DD.renewed_atstring | nulloptionalDay it was last renewed,
YYYY-MM-DD.nullwhen never.domain_swap""optionalAlways empty. Kept for older scripts.
payment_status""optionalAlways empty. Kept for older scripts.
type_id""optionalAlways empty. Kept for older scripts.
renewal_responsenulloptionalAlways
null. Kept for older scripts.renewal_payment_idnulloptionalAlways
null. Kept for older scripts.renewal_pricenulloptionalAlways
null. Kept for older scripts.
Responses
- 200OK. Your bought domains. The first is on an order, the second is free to use.
- 401No token. The
Authorizationheader is missing or notBearer <token>. - 429Busy. Too many large list calls are running at once. Wait for the
Retry-Afterseconds and try again. - 429Rate limited. More than 120 read calls in a minute. Wait for the
Retry-Afterseconds. - 500Server error. Something went wrong on our side. Try again.
