Workspaces
List workspaces
List the workspaces this token may use, with their ids. Use an id as organization_ on the other calls.
GET
https://server.scaledmail.com/api/v1/organizations- Token access
- Read
- Rate limit
- 120 read calls per minute per token
No organization_ 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_ on every call). Use API v2 for sub-workspaces.
Headers
AuthorizationstringrequiredBearer <your API token>. The token needs Read access.
Response (200)
totalintegerrequiredHow many workspaces are listed.
organizationsobject[]requiredThe workspaces this token may use: the workspace it was made in first, then the others it covers, sorted by name.
ShowHide child fields
idstringrequiredThe workspace id (
org_). Pass it as. . . organization_on other calls.id namestringrequiredThe workspace name.
Responses
- 200OK. Always, when the token is valid.
- 401No token. The
Authorizationheader is missing or notBearer <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-Afterseconds. - 500Server error. The list could not be loaded. Try again; if it keeps failing, send the
requestIdto support.
