Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve a list of segments for a contact

GET/contacts/{contact_id}/segmentsRetrieve a list of segments for a contact

Parameters

contact_idstringpathrequired

The Contact ID or email address.

limitintegerquery

Number of items to return.

maximum 100 · minimum 1

afterstringquery

Return items after this cursor.

beforestringquery

Return items before this cursor.

Responses

200OKapplication/json
objectListContactSegmentsResponseSuccess
dataarray of object

Array containing segment information for this contact.

Show child attributes
Show array items
created_atstring · date-time

Timestamp indicating when the contact was added to the segment.

idstring

Unique identifier for the segment.

namestring

Name of the segment.

has_moreboolean

Indicates if there are more results available.

objectstring

Type of the response object.

Example response
{
  "data": [
    {
      "created_at": "2026-06-09T00:00:00Z",
      "id": "string",
      "name": "string"
    }
  ],
  "has_more": true,
  "object": "list"
}
Documentation menu