Access
Preview

List role bindings

GET
/role-bindings
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

roleId?string
Formatuuid
subjectKind?string
Value in"team""group""member""agent"
subjectId?string
scopeKind?string
Value in"org""team""environment""cluster""pipeline""app""deployment""label"
scopeId?string

Only grants on this place, such as one team. Use with scopeKind.

Response Body

A page of bindings.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -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"}