Audiences
Delete Audience
Deletes an audience by ID
DELETE
/
audiences
/
{id}
curl --request DELETE \
--url https://wt.ls/api/v4/audiences/{id} \
--header 'apiKey: <api-key>'
{
"data": {
"audience": {
"id": "<string>",
"name": "<string>",
"filters": "<string>",
"mode": "smart",
"listId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"subs": [
{
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"points": 123,
"referrals": 123,
"listId": "<string>",
"isVerified": true,
"unsubscribed": true,
"customData": {},
"address": "<string>",
"isGDPR": true,
"name": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"website": "<string>",
"company": "<string>",
"country": "<string>",
"city": "<string>",
"list": {},
"audiences": [
"<any>"
],
"referralLink": "<string>",
"privateLink": "<string>"
}
]
}
}
}
Authorizations
API key to authorize requests
Path Parameters
ID of the audience to delete
Response
200
application/json
Audience deleted successfully
The response is of type object
.
curl --request DELETE \
--url https://wt.ls/api/v4/audiences/{id} \
--header 'apiKey: <api-key>'
{
"data": {
"audience": {
"id": "<string>",
"name": "<string>",
"filters": "<string>",
"mode": "smart",
"listId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"subs": [
{
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"points": 123,
"referrals": 123,
"listId": "<string>",
"isVerified": true,
"unsubscribed": true,
"customData": {},
"address": "<string>",
"isGDPR": true,
"name": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"website": "<string>",
"company": "<string>",
"country": "<string>",
"city": "<string>",
"list": {},
"audiences": [
"<any>"
],
"referralLink": "<string>",
"privateLink": "<string>"
}
]
}
}
}