Every org
GET
/staff/orgs
const url = 'https://api.sloose.com/staff/orgs';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sloose.com/staff/orgs \ --header 'Authorization: Bearer <token>'Backoffice route: a staff session, or ADMIN_TOKEN. Every org on this deployment, newest first, with its plan, subscription status, and how many people and connectors it has.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The orgs.
Media typeapplication/json
object
orgs
required
Array<object>
object
id
required
string
name
required
string
dc
required
string
kind
required
string
createdAt
required
string
closedAt
required
Set when the org has been closed.
string | null
purgeAfter
required
When a closed org may be erased.
string | null
planKey
required
string | null
planName
required
string | null
subscriptionStatus
required
string | null
trialEnd
required
string | null
members
required
integer
connectors
required
integer
Example
{ "orgs": [ { "kind": "production", "planKey": "free", "subscriptionStatus": "free" } ]}A bearer that is neither the token nor a live session (code: AUTH_REQUIRED).
Media typeapplication/json
The error envelope every non-2xx answer uses.
object
error
required
Human-readable explanation.
string
code
Machine-readable reason. Absent on a few legacy 400s.
string
key
additional properties
Examplegenerated
{ "error": "example", "code": "example"}A customer’s session, an API token, or no bearer at all — not staff, and not the ADMIN_TOKEN (code: ADMIN_REQUIRED).
Media typeapplication/json
The error envelope every non-2xx answer uses.
object
error
required
Human-readable explanation.
string
code
Machine-readable reason. Absent on a few legacy 400s.
string
key
additional properties
Examplegenerated
{ "error": "example", "code": "example"}