PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Grupo → Listar Grupos

AI-generated

Summary

List all WhatsApp groups associated with a specified instance ID.

Inputs

  • ID da Instância (required) — ID da instância WhatsApp to specify which WhatsApp instance to query for groups.

Output shape

a list of group objects with details as returned by the PAPI WhatsApp API

Returns all groups for the given instance without pagination. Errors such as unauthorized access or instance not found are thrown as operation errors.

Examples

Example 1: List all groups of a WhatsApp instance

Set the 'ID da Instância' to the target WhatsApp instance ID and select the 'Listar Grupos' operation under 'Grupo' resource.

Discussion