Change requests
List change requests
The workspace's change requests, newest first, also the ones made in the app.
https://api.scaledmail.com/v2/change-requests- Rate limit
- Read: 300 calls per minute per token
With status or type, a page can hold fewer than limit items (even none) and still have has_. Keep following next_.
Headers
AuthorizationstringrequiredBearer <your API token>. Tokens start withsm_.live_ WorkspacestringrequiredThe workspace id to act on (from
GET /workspacesor Settings › API tokens). Required on every call except the/workspacescalls; without it:400workspace_.required
Query parameters
limitintegeroptional1 to 100Items per page. Default 25.
cursorstringoptionalThe
next_from the previous page.cursor statusenumoptionalOnly this status.
One of:
pendingin_progresscompletedcancelledfailedtypeenumoptionalOnly requests that include this change.
One of:
replace_domainredirectmaskingsender_namedomainstringoptionalat most 253 charactersOnly requests for this domain, by name. An unknown domain answers an empty list.
Response (200)
dataobject[]requiredShowHide child fields
idstringrequiredThe change request id:
chg_and 32 hex characters.changesenum[]requiredWhat the request changes, one or more of:
replace_= another domain takes this one's place on its order;domain redirect= set, change or remove where visitors are sent;masking= change the site a masked domain shows;sender_= new sender names (and if you like new addresses) on its mailboxes.name statusenumrequiredpending= saved, not started yet.in_= being carried out.progress completed= done.cancelled= cancelled by you or by our team.failed= could not be done; seefailure_.reason One of:
pendingin_progresscompletedcancelledfaileddomainstringrequiredThe domain the request is for (its name when the request was made).
replace_domainobjectoptionalOnly when
changeshasreplace_.domain ShowHide child fields
new_domainstringrequiredThe domain that takes over.
sourceenumrequiredpurchased= bought from us,own= registered by you elsewhere.One of:
purchasedown
redirectobjectoptionalOnly when
changeshasredirect.ShowHide child fields
urlstringoptionalThe new address, saved without
https://, without a trailing/and in lower case. Left out = the redirect is removed.
maskingobjectoptionalOnly when
changeshasmasking.ShowHide child fields
masking_targetstringrequiredThe domain whose site the masked domain will show.
sender_nameobjectoptionalOnly when
changeshassender_.name ShowHide child fields
mailboxesobject[]requiredEach mailbox that changes, by address.
ShowHide child fields
emailstringrequiredIts address when the request was made.
first_namestringrequiredNew first name.
last_namestringrequiredNew last name.
new_emailstringoptionalNew address. Only when the address changes.
failure_reasonstringoptionalOnly when
failedand our team gave a reason, in words.created_atstringrequiredWhen the request was made, as a date:
YYYY-MM-DD(UTC).completed_atstringoptionalWhen it was completed, cancelled or failed (
YYYY-MM-DD). Only once it is finished.
has_morebooleanrequiredtruewhen there is another page.next_cursorstring | nullrequiredPass as
cursorto get the next page.nullon the last page.
Responses
- 200OK. One page of change requests.
- 400Invalid input. A filter has a value not in its list or
limitis not 1 to 100 (validation_),failed cursoris not from a previous answer (invalid_).cursor - 403Not allowed. The token can't use the workspace in
Workspace(workspace_).not_ allowed - 429Rate limited. More than 300 read calls in a minute with this token. Wait for the
Retry-Afterseconds.
Like every call, it can also answer 401 (bad key), 400 workspace_, 403 workspace_. See Errors.
