List the groups a number belongs to
list_groupsList the WhatsApp groups this number is a member of.
The list is built when the number connects: every group it belongs to is picked up then, whether or not anything has been said in it. A group joined since then is picked up from the join itself, without waiting for anyone to speak in it.
name filters by group name. include_left=true also returns groups
this number has left, which are otherwise hidden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only groups whose name matches. | |
| limit | No | How many items to return, 1-200. Defaults to 50. | |
| cursor | No | Opaque cursor for the next page. Pass back the `cursor` from the previous response, with the same filters; omit it for the first page. | |
| include_left | No | Include groups this number has left. Off by default, so a plain listing shows only groups the number is currently in. | |
| number_alias | No | Which of the organization's WhatsApp numbers this acts on: `main`, the alias of an extra number, or the number's `id` (`num_…`), which stays the same when the alias is renamed. Call `list_numbers` to see them. Defaults to the main number. | main |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||