List groups
listGroupsFetches groups from the Level API, supporting parent filtering and pagination to browse hierarchical group structures.
Instructions
List groups. Returns a list of your groups. Level API endpoint: GET /v2/groups
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. | |
| parent_id | No | Filter to only include groups with the given parent id. If not provided, all groups are returned. If 'null' is provided, only root groups are returned. | |
| ending_before | No | A cursor for use in pagination. ending_before is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with ID '1234', your subsequent call can include 'ending_before=1234' in order to fetch the previous page of the list. | |
| starting_after | No | A cursor for use in pagination. starting_after is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with ID '1234', your subsequent call can include 'starting_after=1234' in order to fetch the next page of the list. |