Skip to content

Get one helper library

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

Manifest and source. Falls back to the global library of that namespace when the org has none of its own.

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.

namespace
required

The library namespace, as it appears in expressions.

string
Example
acme

The library namespace, as it appears in expressions.

The library, with its source.

Media typeapplication/json
object
library
required
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
{
"library": {
"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"
}

No such library, or it is not visible to this session.

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