WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

🏷️ **LABELS** · Get Labels For Chat

AI-generated

Summary

Retrieve all labels assigned to a specified WhatsApp chat.

Inputs

  • Session Mode — Choose how the sender session is selected: Auto, By Session Name, or Select Session (recommended).
  • Session — Select a specific session if 'Select Session' mode is chosen.
  • Session Name — Provide the WAHA session name if 'By Session Name' mode is chosen.
  • Chat ID (required) — Specify the destination chat ID to retrieve its labels. This can be mapped from trigger data.

Output shape

a JSON object containing the labels for the specified chat

Requires the Chat ID input. Returns the labels that are assigned to the chat in the response JSON. Handles multiple input items independently, each returning its labels. Errors on missing chat ID or credentials are thrown as NodeOperationError with item context.

Examples

Example 1: Get labels assigned to a chat

Set the Operation to '🏷️ LABELS · Get Labels For Chat', provide the Chat ID of the target chat, and optionally configure session selection. Upon execution, the node outputs the JSON data listing labels assigned to that chat.

Links

Discussion