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

Workspaces

Create workspace

Create a new workspace. The person who made the token becomes its owner, and the same token can use the new workspace right away.

POSThttps://server.scaledmail.com/api/v1/organizations
Token access
Read and write
Rate limit
15 calls per minute per token (the buy limit), and at most 10 new workspaces per hour per person (portal included)

The token needs "Can create workspaces" turned on in Settings › API tokens. Without it the call answers 403 not_allowed.

No organization_id is needed here. You can own up to 200 workspaces. v1 always makes a main workspace: sub-workspaces can only be made with API v2 (or in the portal).

Headers

  • Authorizationstringrequired

    Bearer <your API token>. The token needs Read and write access and "Can create workspaces" turned on.

Body

  • namestringrequired1 to 30 characters

    Name of the new workspace. Up to 30 characters after spaces at the ends are removed. Letters, numbers and spaces only. Must not match the name of a workspace you already own (upper and lower case count as the same).

Response (200)

  • idstringrequired

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

  • namestringrequired

    The workspace name.

Responses

  • 201Created. The workspace was made.
  • 400Invalid name. name is missing (name_required), longer than 30 characters (name_too_long) or has other characters than letters, numbers and spaces (name_invalid).
  • 400Name taken. You already own a workspace with this name (upper and lower case count as the same).
  • 400Too many workspaces. You own 200 workspaces already.
  • 403Not allowed. The token does not have "Can create workspaces" turned on. A read-only token gets missing_scope instead. The name is checked first, so a bad name gets 400 even without this setting.
  • 429Too many. The person who made the token tried to make more than 10 workspaces within an hour (portal and API together; tries that failed with a taken name count too). This answer has no details and no Retry-After: try again later. Over 15 calls a minute gives rate_limited with details and Retry-After.
  • 500Server error. The workspace could not be made. Try again; if it keeps failing, send the requestId to support.