Get started
Pagination
GET /domains answers in pages. Use limit and cursor to walk through all your domains.
GET /domains
| Query parameter | What it does |
|---|---|
limit | Domains per page, a whole number from 1 to 2000. Default 2000. |
cursor | Leave it out for the first page. For the next page, send the next_ of the answer before. |
Domains come newest first. Each answer has next_: 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.
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_.
A full page can be followed by an empty one: when next_ 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_.
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_ 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.
