Remove Custom Fields and/or Tags from Customer
Effortlessly remove assigned tags or custom fields from a customer using the DoubleTick API to keep customer data clean and up-to-date. π
API Endpoint
Use the following endpoint to remove fields or tags from a customer:
POST https://public.doubletick.io/customer/remove-tags-custom-fields
Request Headers
{
"Authorization": "YOUR_API_KEY",
"Content-Type": "application/json"
}
Request Body Parameters
{
"phone": "customer_number",
"tags": ["tag_name", "tag_name"],
"customFields": ["field_name", "field_name"],
"wabaNumber": "your_waba_number"
}
Parameters
phone
(string, required): The phone number of the customer in international format.tags
(array of strings, optional): An array of tag names to be removed.customFields
(array of strings, optional): An array of custom field names to be removed.wabaNumber
(string, required, optional): Integration WABA number with country code.
Response
Success Response (201)
{
"customFields": {
"removed": ["new field1", "new field"],
"errored": []
},
"tags": {
"removed": ["team lead", "team member"],
"errored": []
}
}
Bad Request (400)
{
"message": "error_message",
"error": "Bad Request",
"statusCode": 400
}
Unauthorized (401)
{
"message": "Invalid public api key",
"error": "Unauthorized",
"statusCode": 401
}
Unprocessable Entity (422)
{
"message": "invalid file type for audio: text/html; charset=utf-8",
"error": "Unprocessable Entity",
"statusCode": 422
}
Internal Server Error (500)
{
"statusCode": 500,
"message": "Internal server error"
}
Best Practices
- Ensure that customer phone number and custom field/tag names are valid before making the request.
- Use this API to maintain clean and relevant customer data.
- Regularly update and manage customer fields/tags for better segmentation.
Updated 14 days ago
Whatβs Next
Explore more message types and enhance your WhatsApp communication with DoubleTick API