Access
Preview

List groups

Groups such as leads or on-call that role bindings and rules can target.

GET
/groups
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.

teamId?string

Response Body

A page of groups.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/groups'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "teamId": "string",      "name": "string",      "kind": "static",      "memberUserIds": [        "string"      ]    }  ],  "nextCursor": "string"}