Workspaces

List workspaces

Every workspace your token covers: main workspaces and their sub-workspaces. Use an id from here as the Workspace header on other calls.

GEThttps://api.scaledmail.com/v2/workspaces
Rate limit
Read: 300 calls per minute per token

All workspaces in one answer, no paging. A workspace shows only while the token's creator is a member of it.

Headers

  • Authorizationstringrequired

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

Response (200)

  • dataobject[]required

    Every workspace the token covers, in one reply (no paging).

    Show child fields
    • idstringrequired

      The workspace id (org_...).

    • namestringrequired

      The workspace name.

    • parent_idstringoptional

      The main workspace of a sub-workspace (org_...). Only on a sub-workspace.

Responses

  • 200OK. Always, when the token is valid. The token's home workspace comes first.
  • 403Not allowed. The token can't use the workspace in Workspace (workspace_not_allowed).
  • 429Too many. More than 300 read calls a minute with this token. Wait for Retry-After seconds.

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