Skip to content

The apps allowed into this org

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

Every consent a member has given an MCP client for this org: which client, who allowed it, what it may do. Session only, administrators.

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 grants.

Media typeapplication/json
object
consents
required
Array<object>
object
id
required
string
clientId
required

The client’s id — for a Client ID Metadata Document client, the HTTPS URL of that document.

string
clientName
required
string | null
clientUri
required
string | null
userId
required
string | null
scopes
required
Array<string>
grantedAt
required
string
Examplegenerated
{
"consents": [
{
"id": "example",
"clientId": "example",
"clientName": "example",
"clientUri": "example",
"userId": "example",
"scopes": [
"example"
],
"grantedAt": "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"
}

Report a problem with this page