Change requests

List change requests

The workspace's change requests, newest first, also the ones made in the app.

GEThttps://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_more: true. Keep following next_cursor.

Headers

  • Authorizationstringrequired

    Bearer <your API token>. Tokens start with sm_live_.

  • Workspacestringrequired

    The workspace id to act on (from GET /workspaces or Settings › API tokens). Required on every call except the /workspaces calls; without it: 400 workspace_required.

Query parameters

  • limitintegeroptional1 to 100

    Items per page. Default 25.

  • cursorstringoptional

    The next_cursor from the previous page.

  • statusenumoptional

    Only this status.

    One of: pending in_progress completed cancelled failed

  • typeenumoptional

    Only requests that include this change.

    One of: replace_domain redirect masking sender_name

  • domainstringoptionalat most 253 characters

    Only requests for this domain, by name. An unknown domain answers an empty list.

Response (200)

  • dataobject[]required
    Show child fields
    • idstringrequired

      The change request id: chg_ and 32 hex characters.

    • changesenum[]required

      What the request changes, one or more of: replace_domain = another domain takes this one's place on its order; redirect = set, change or remove where visitors are sent; masking = change the site a masked domain shows; sender_name = new sender names (and if you like new addresses) on its mailboxes.

    • statusenumrequired

      pending = saved, not started yet. in_progress = being carried out. completed = done. cancelled = cancelled by you or by our team. failed = could not be done; see failure_reason.

      One of: pending in_progress completed cancelled failed

    • domainstringrequired

      The domain the request is for (its name when the request was made).

    • replace_domainobjectoptional

      Only when changes has replace_domain.

      Show child fields
      • new_domainstringrequired

        The domain that takes over.

      • sourceenumrequired

        purchased = bought from us, own = registered by you elsewhere.

        One of: purchased own

    • redirectobjectoptional

      Only when changes has redirect.

      Show child fields
      • urlstringoptional

        The new address, saved without https://, without a trailing / and in lower case. Left out = the redirect is removed.

    • maskingobjectoptional

      Only when changes has masking.

      Show child fields
      • masking_targetstringrequired

        The domain whose site the masked domain will show.

    • sender_nameobjectoptional

      Only when changes has sender_name.

      Show child fields
      • mailboxesobject[]required

        Each mailbox that changes, by address.

        Show child fields
        • emailstringrequired

          Its address when the request was made.

        • first_namestringrequired

          New first name.

        • last_namestringrequired

          New last name.

        • new_emailstringoptional

          New address. Only when the address changes.

    • failure_reasonstringoptional

      Only when failed and our team gave a reason, in words.

    • created_atstringrequired

      When the request was made, as a date: YYYY-MM-DD (UTC).

    • completed_atstringoptional

      When it was completed, cancelled or failed (YYYY-MM-DD). Only once it is finished.

  • has_morebooleanrequired

    true when there is another page.

  • next_cursorstring | nullrequired

    Pass as cursor to get the next page. null on the last page.

Responses

  • 200OK. One page of change requests.
  • 400Invalid input. A filter has a value not in its list or limit is not 1 to 100 (validation_failed), cursor is 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-After seconds.

Like every call, it can also answer 401 (bad key), 400 workspace_required, 403 workspace_not_allowed. See Errors.