Skip to navigation

Get an access grant

Fetch one grant by id, in the same shape as a list item. Admin only (a member key is rejected with 403). A non-UUID id is rejected with 400; a grant from another organization is invisible and returns 404.

Authentication

AuthorizationBearer

WorkOS API key (Authorization: Bearer sk_…). Scope comes from the key’s permissions: a key carrying passport:admin has admin scope (full catalog CRUD), any other key has member scope (reads + access requests). Organization-owned keys are admin by ownership and carry no associated user; keys minted for a user carry theirs, which is what access requests and createdBy are attributed to.

Path parameters

accessGrantIdstringRequiredformat: "uuid"

The grant’s id (from the list). A non-UUID value is rejected with 400.

Response headers

RateLimit-LimitintegerOptional
Requests allowed in the current window.
RateLimit-RemainingintegerOptional
Requests remaining in the current window.
RateLimit-ResetintegerOptional
Unix epoch seconds when the window resets.

Response

OK
dataobject

A live access grant — who (userId) can reach what scope in a namespace. Minted when an access request is approved; revoke flips status to revoked and stamps revokedAt while keeping the row for history. teamId is omitted (implicit from the API key’s organization).

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error