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

Get started

Pagination

GET /domains answers in pages. Use limit and cursor to walk through all your domains.

GET /domains

Query parameterWhat it does
limitDomains per page, a whole number from 1 to 2000. Default 2000.
cursorLeave it out for the first page. For the next page, send the next_cursor of the answer before.

Domains come newest first. Each answer has next_cursor: a text to send as cursor for the next page, or null when there are no more. total is the number of domains on this page, not in the workspace.

Next page
curl "https://server.scaledmail.com/api/v1/domains?organization_id=org_DemoWorkspace1&limit=500&cursor=WyIyMDI2LTEx..." \
  -H "Authorization: Bearer sm_live_EXAMPLE_TOKEN"

Treat the cursor as a closed box: don't build or change it. A limit out of range or a cursor we didn't give you gets 400 invalid_request.

A full page can be followed by an empty one: when next_cursor is not null but the next page has no domains, you have them all.

POST /suggest-domains

Domain ideas page by number instead: page (1 to 10,000, default 1) and limit (1 to 50, default 50) in the query string. A value out of range is moved to the nearest allowed one (and one that is not a number becomes the default) instead of giving an error. The answer has page, limit, total (all ideas, not only this page) and total_pages.

GET /reporting

Reports page by week, newest first: weeks (1 to 12, default 1) and before (YYYY-MM-DD: only weeks older than this day). For the next older page, send the next_before of the answer as before; it is null when there are no older weeks.

Other lists

The other list routes (GET /orders, GET /purchased-domains, GET /mailboxes/{domain} ...) send the whole list in one answer.