Access
PreviewList role bindings
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
limit?integerPage size. Defaults to 50, at most 200.
Range
1 <= value <= 200Default
50cursor?stringOpaque cursor from a previous page's nextCursor.
roleId?stringFormat
uuidsubjectKind?stringValue in
"team""group""member""agent"subjectId?stringscopeKind?stringValue in
"org""team""environment""cluster""pipeline""app""deployment""label"scopeId?stringOnly grants on this place, such as one team. Use with scopeKind.
A page of bindings.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/role-bindings'Example Response
{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "roleName": "string", "scope": { "kind": "org", "id": "string", "label": "string" }, "subject": { "kind": "team", "id": "string", "label": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string" } ], "nextCursor": "string"}