Contacts

Add a contact to a segment

POST
/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 adding a contact to a segment: the segment's id.

id*string
Formatuuid
Example Request
curl -X POST 'https://api.exx.sh/contacts/string/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}