Change requests

Get change request

Read one change request: where it stands and what it changes.

GEThttps://api.scaledmail.com/v2/change-requests/:id
Rate limit
Read: 300 calls per minute per token

Path parameters

  • idstringrequired

    The change request id (chg_...).

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.

Response (200)

  • 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.

Responses

  • 200OK. The change request. Here a redirect change that is done.
  • 403Not allowed. The token can't use the workspace in Workspace (workspace_not_allowed).
  • 404Not found. No such change request in this workspace. A request of another workspace looks the same.
  • 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.