v1 is deprecated. Please move to API v2 (recommended). v1 keeps working until March 31, 2027, then it stops. See Moving from v1.

Workspaces

List workspaces

List the workspaces this token may use, with their ids. Use an id as organization_id on the other calls.

GEThttps://server.scaledmail.com/api/v1/organizations
Token access
Read
Rate limit
120 read calls per minute per token

No organization_id is needed here. A workspace shows only while the person who made the token is still an owner or admin there.

Sub-workspaces are never listed: v1 tokens can't reach them (a sub-workspace's id answers 401 organization_not_allowed on every call). Use API v2 for sub-workspaces.

Headers

  • Authorizationstringrequired

    Bearer <your API token>. The token needs Read access.

Response (200)

  • totalintegerrequired

    How many workspaces are listed.

  • organizationsobject[]required

    The workspaces this token may use: the workspace it was made in first, then the others it covers, sorted by name.

    Show child fields
    • idstringrequired

      The workspace id (org_...). Pass it as organization_id on other calls.

    • namestringrequired

      The workspace name.

Responses

  • 200OK. Always, when the token is valid.
  • 401No token. The Authorization header is missing or not Bearer <token>.
  • 401Invalid token. The token is wrong, or only part of it was copied.
  • 401API v2 key. An API v2 key was sent. v1 needs a v1 token.
  • 429Rate limited. More than 120 read calls in a minute. Wait for the Retry-After seconds.
  • 500Server error. The list could not be loaded. Try again; if it keeps failing, send the requestId to support.