Skip to content

Every org

GET
/staff/orgs
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.

The orgs.

Media typeapplication/json
object
orgs
required
Array<object>
object
id
required
string
name
required
string
dc
required
string
kind
required
string
Allowed values: production sandbox
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
Allowed values: free team business enterprise
planName
required
string | null
subscriptionStatus
required
string | null
Allowed values: free trialing active past_due suspended cancelled
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"
}