Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Add a contact to a segment

POST/contacts/{contact_id}/segments/{segment_id}Add a contact to a segment

Parameters

contact_idstringpathrequired

The Contact ID or email address.

segment_idstringpathrequired

The Segment ID.

Responses

200OKapplication/json
objectAddContactToSegmentResponseSuccess
contact_idstring

The ID of the contact.

objectstring

The object type.

segment_idstring

The ID of the segment.

Example response
{
  "contact_id": "string",
  "object": "contact_segment",
  "segment_id": "string"
}
Documentation menu