v1 is deprecated. Please move to API v2 (recommended). v1 keeps working until March 31, 2027, then it stops. See Moving from v1.

Domains

List purchased domains

List the domains you bought from ScaledMail, with price, renewal date and the order each one is on.

GEThttps://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

  • Authorizationstringrequired

    Bearer <your API token>. The token needs Read access.

Query parameters

  • organization_idstringrequired

    Your workspace id (org_...). Must be a workspace this token was made for.

  • availablestringoptional

    Send true to list only domains that are free to use: not on an order and not held for one. Any other value lists all.

Response (200)

  • totalintegerrequired

    How many domains are listed.

  • domainsobject[]required

    Your bought domains, by name.

    Show child fields
    • idstringrequired

      The purchase id (a UUID). For a few older domains, the domain's id.

    • pricenumberrequired

      What you paid for the domain, in US dollars. 0 when unknown.

    • domainstringrequired

      The domain name.

    • payment_idstringoptional

      Only when the domain is on an order or held for one: that order (sub_...). The fields below come with it.

    • domain_idstringoptional

      The domain's id in GET /domains once it is on the order. Empty while it is only held.

    • status"Registered"optional

      Always Registered while you own the domain.

    • created_atstringoptional

      Day it was bought, YYYY-MM-DD.

    • renewal_atstringoptional

      Day it renews, YYYY-MM-DD.

    • renewed_atstring | nulloptional

      Day it was last renewed, YYYY-MM-DD. null when never.

    • domain_swap""optional

      Always empty. Kept for older scripts.

    • payment_status""optional

      Always empty. Kept for older scripts.

    • type_id""optional

      Always empty. Kept for older scripts.

    • renewal_responsenulloptional

      Always null. Kept for older scripts.

    • renewal_payment_idnulloptional

      Always null. Kept for older scripts.

    • renewal_pricenulloptional

      Always 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 Authorization header is missing or not Bearer <token>.
  • 429Busy. Too many large list calls are running at once. Wait for the Retry-After seconds and try again.
  • 429Rate limited. More than 120 read calls in a minute. Wait for the Retry-After seconds.
  • 500Server error. Something went wrong on our side. Try again.