Configuration overview
GET
/orgs/{org}/config
const url = 'https://api.sloose.com/orgs/org_9f3c/config';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
The org id the session was issued for. A token for one org can never read another.
string
Example
org_9f3cThe org id the session was issued for. A token for one org can never read another.
Responses
Section titled “Responses”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"}