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.
https://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_.
No organization_ 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
AuthorizationstringrequiredBearer <your API token>. The token needs Read and write access and "Can create workspaces" turned on.
Body
namestringrequired1 to 30 charactersName 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)
idstringrequiredThe workspace id (
org_). Pass it as. . . organization_on other calls.id namestringrequiredThe workspace name.
Responses
- 201Created. The workspace was made.
- 400Invalid name.
nameis missing (name_), longer than 30 characters (required name_) or has other characters than letters, numbers and spaces (too_ long 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_instead. The name is checked first, so a bad name getsscope 400even 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
detailsand noRetry-After: try again later. Over 15 calls a minute givesrate_withlimited detailsandRetry-After. - 500Server error. The workspace could not be made. Try again; if it keeps failing, send the
requestIdto support.
