Remove Customer from Audience

Removes from the audience every customer whose phoneNumber matches the parameter sent.

DELETE https://api.platica.mx/v1/campaigns/{campaignId}/audience/{phoneNumber}

URL parameters

ParameterTypeDescriptionRequirement
campaignIdstringUnique identifier of the campaignrequired
phoneNumberstringPhone number of the customer to remove, with country code and no symbolsrequired

Response 200 OK

{
  "status": "success",
  "message": "Client removed from campaign successfully",
  "data": {
    "success": true,
    "message": "Client removed from campaign successfully",
    "removedCount": 1
  }
}

Notes

  • Removing a customer from the audience does not delete them from the workspace; it only removes the campaign tag
  • If no customer with that phoneNumber exists, the endpoint responds 200 with removedCount: 0
  • If multiple customers share the same phoneNumber, the campaign tag is removed from all of them