Contacts

Remove a contact from a segment

DELETE
/contacts/{id}/segments/{segment_id}

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

The contact's id or email address

segment_id*string

A static segment (or legacy audience)

Formatuuid

Response Body

Success

application/json
  1. response

The answer to removing a contact from a segment (Resend's shape: the contact's id and the segment's audienceId).

audienceId*string
Formatuuid
deleted*boolean
id*string
Formatuuid
object*string
Example Request
curl -X DELETE 'https://api.exx.sh/contacts/string/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "audienceId": "9a7801af-334b-4ef5-a6a4-a23abb92f9dd",  "deleted": true,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}