← Back to API Reference

POST /contacts/{contact_id}/segments/{segment_id}

Add Contact to Segment

Attach a contact to a segment.

Request (cURL)

curl -X POST "http://localhost:8080/v1/contacts/ct_123/segments/seg_123" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{}