WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation creates a new label within a specified session. It is useful for organizing and categorizing items or data by assigning meaningful labels with customizable names and colors. For example, in a CRM system, you might create labels like 'Lead' or 'Customer' to tag contacts accordingly.

Use Case Examples

  1. Creating a label named 'Lead' with a specific color to categorize potential customers.
  2. Adding a label to a session to help filter and organize data visually.

Properties

Name Meaning
Session The session name in which the label will be created.
Name The name of the label to be created.
Color Hex The color of the label in hexadecimal format.
Color The color of the label as a number (alternative to hex).
Request Options Additional request settings such as batching, SSL handling, proxy, and timeout options.

Output

JSON

  • id - The unique identifier of the created label.
  • name - The name of the created label.
  • colorHex - The hexadecimal color code of the created label.
  • color - The numeric color value of the created label.
  • session - The session name associated with the label.

Dependencies

  • Requires an API key credential or authentication token to interact with the label creation service.

Troubleshooting

  • Common issues include invalid session names or label names causing creation failures.
  • Timeout errors may occur if the server does not respond within the specified timeout period; increasing the timeout or checking network connectivity can help.
  • SSL certificate validation errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this reduces security.
  • Proxy misconfiguration can lead to request failures; ensure proxy settings are correct.

Discussion