Skip to main content
DELETE
/
api
/
{session}
/
labels
/
{labelId}
Delete a label
curl --request DELETE \
  --url https://{host}/api/{session}/labels/{labelId} \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "Label deleted successfully"
}

Description

This endpoint allows you to delete an existing label. When deleting a label, it will be removed from all chats that were using it.

URL Parameters

session
string
required
WhatsApp unique session ID
labelId
string
required
ID of the label to be deleted

Response

success
boolean
Indicates if the label was deleted successfully
{
  "success": true,
  "message": "Label deleted successfully"
}

Status Codes

  • 200 - Label deleted successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized
  • 404 - Label not found

Usage Example

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

Authorizations

apikey
string
header
required

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

Path Parameters

labelId
string
required

Response

200 - application/json

The response is of type object.

I