Grants
PreviewManage organizations, members, end users, invitations and connected identities.
GET
/v1/resources/{id}/grantsSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Resource ID
Responses
200Explicit access grants
Explicit access grants
Media typeapplication/json
Array<object>
Metadata for an explicit resource use grant, without credential values.
object
constraints
consumer_id
Consumer identifier; absent for an organization-wide service grant.
string | null format: uuid
consumer_label
Human-readable consumer name, when available.
string | null
consumer_scope
required
Scope of the consumer authorized by this grant.
string
expires_at
Absolute grant expiry in UTC, if configured.
string | null format: date-time
id
required
Stable grant identifier used for revocation.
string format: uuid
usage
required
Required invocation identity for use through this grant.
string
Example
[ { "constraints": { "provider": "github" }, "consumer_scope": "session", "usage": "user" }]