Skip to content
Reference/Contacts/Add / Remove Contact Tag

Add / Remove Contact Tag

PATCHhttps://public.leadpattern.com/customer/:waId/tags
application/json60 req/min

Add or remove a single tag on a contact.

Headers

1 field
Authorizationstring
required
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.

Path Parameters

1 field
waIdstring
required
Contact WhatsApp ID.

Body Parameters

2 fields
tagIdstring
required
Tag ID.
actionenum
required
Add or remove the tag.
Allowed values:
addremove

Responses

JSON Response
{
  "type": "success",
  "message": "Tags updated successfully."
}

Sample Request Body

{
  "tagId": "664abc123def456789012345",
  "action": "add"
}