Skip to content

List helper libraries

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

Every library the org can use: its own, plus the global ones shipped with the product. Manifests only unless you ask for source.

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.

source

Set to 1 to include each library’s source.

string
Example
1

Set to 1 to include each library’s source.

Org and global libraries.

Media typeapplication/json
object
libraries
required
Array<object>
object
namespace
required
string
version
required
string
scope
required
string
Allowed values: global org
manifest
required
object
key
additional properties
source

Only when asked for with ?source=1.

string
updatedAt
required
string
Example
{
"libraries": [
{
"scope": "global"
}
]
}

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