Skip to content

Configuration overview

GET
/orgs/{org}/config
curl --request GET \
--url https://api.sloose.com/orgs/org_9f3c/config \
--header 'Authorization: Bearer <token>'

A cheap summary for a settings screen: how many modules were discovered, how many are enabled, and when discovery last ran.

org
required

The org id the session was issued for. A token for one org can never read another.

string
Example
org_9f3c

The org id the session was issued for. A token for one org can never read another.

The org and its configuration at a glance.

Media typeapplication/json
object
org
required
object
id
required
string
name
required
string
dc
required
string
registryVersion
required
number
modules
required
object
discovered
required
number
enabled
required
number
lastDiscoveryAt
required
string | null
Examplegenerated
{
"org": {
"id": "example",
"name": "example",
"dc": "example"
},
"registryVersion": 1,
"modules": {
"discovered": 1,
"enabled": 1
},
"lastDiscoveryAt": "example"
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

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"
}

The bearer’s role is too low, or it was issued for a different org.

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"
}