Skip to main content
GET
/
api
/
{session}
/
labels
Get all labels
curl --request GET \
  --url https://{host}/api/{session}/labels \
  --header 'apikey: <api-key>'
{
  "labels": [
    {
      "id": "label123",
      "name": "VIP Clients",
      "color": 1
    },
    {
      "id": "label456",
      "name": "Support",
      "color": 2
    }
  ]
}

Description

This endpoint returns all labels created in the WhatsApp session, allowing you to view all available categories for organizing conversations.

URL Parameters

session
string
required
WhatsApp unique session ID

Response

labels
array
List of all created labels
{
  "labels": [
    {
      "id": "label123",
      "name": "VIP Clients",
      "color": 1
    },
    {
      "id": "label456",
      "name": "Support",
      "color": 2
    }
  ]
}

Status Codes

  • 200 - List returned successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/labels

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

Session name (instanceName)

Response

200 - application/json
id
string
required

Label ID

Example:

"1"

name
string
required

Label name

Example:

"Lead"

color
number
required

Color number, not hex

Example:

0

colorHex
string
required

Color in hex

Example:

"#ff9485"

I