GREEN-API for MAX icon

GREEN-API for MAX

Send and receive MAX messages using Green-API.

Service → Get Chats

AI-generated

Summary

Retrieve all chats from the connected Green‑API WhatsApp instance.

Inputs

None.

Output shape

JSON payload returned by the Green‑API 'getChats' endpoint (typically an object containing a 'chats' array)

The node returns the response wrapped in an array; each workflow item receives the raw JSON response.

Examples

Example 1: Get the list of chats for the current WhatsApp instance

Resource: Service, Operation: Get Chats

Example 2: Consume the chat list in a subsequent node

Follow with a 'Split' or 'Function' node using {{$json[0].chats]}}

Example 3: Handle case when no chats are returned

Check {{$json[0]}} for presence before iterating

Links

Discussion