FlaresendDocs
Audiences

Remove contacts from an audience

Take up to 5,000 contacts out of an audience without deleting them.

DELETE/v1/audiences/{id}/contactsAPI key

Removes contacts from the audience. The contacts stay in the project and in their other audiences. IDs that are not in the audience are ignored, so this call does not fail on unknown IDs.

This DELETE request takes a JSON body.

Path parameters

idstringpathrequired

The audience ID.

Body parameters

contactIdsstring[]required

1 to 5,000 contact IDs.

Response

removednumber

How many contacts were actually in the audience and are now removed.

Errors

StatusCodeWhen
400missing_bodyThe request has no body.
400invalid_bodycontactIds is missing, empty or has more than 5,000 entries.
404audience_not_foundNo audience with that ID in this project.