Skip to main content

List Contacts in Segment

Retrieve a paginated list of contacts belonging to a specific segment.


Endpoint

GET https://api.campaignlark.com/v1/segments/:segment_id/contacts

Path Parameters

ParameterTypeRequiredDescription
segment_idintegerrequiredThe ID of the segment to retrieve contacts for.

Query Parameters

ParameterTypeRequiredDescription
pageintegeroptionalPage number for pagination. Defaults to 1.
limitintegeroptionalNumber of contacts per page. Defaults to 50.

Sample Request

GET https://api.campaignlark.com/v1/segments/1/contacts?page=1&limit=50

Response

Success — 200 OK

{
"data": {
"contacts": [
{
"id": "abc123",
"fields": {
"email_address": "user@example.com",
"first_name": "John"
},
"tags": [
{
"id": 1,
"name": "VIP"
}
],
"status": "SUBSCRIBED",
"score": 0,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-04-09T02:00:00Z",
"last_opened_at": "2026-04-08T14:00:00Z",
"last_clicked_at": null
}
],
"pagination": {
"current_page": 1,
"per_page": 50,
"total_pages": 10,
"total_count": 500
}
}
}

Contact Object Fields

FieldTypeDescription
idstringUnique contact ID.
fieldsobjectKey-value map of contact field values, keyed by merge_tag.
tagsarrayTags assigned to the contact. Each item has id (integer) and name (string).
statusstringContact status. One of SUBSCRIBED, UNSUBSCRIBED, UNCONFIRMED, BOUNCED, COMPLAINED.
scoreintegerContact engagement score.
created_atstringRFC 3339 timestamp of contact creation.
updated_atstringRFC 3339 timestamp of last update.
last_opened_atstring | nullRFC 3339 timestamp of the last email open.
last_clicked_atstring | nullRFC 3339 timestamp of the last link click.

Pagination Object

FieldTypeDescription
current_pageintegerThe current page number.
per_pageintegerNumber of items per page.
total_pagesintegerTotal number of pages.
total_countintegerTotal number of contacts in the segment.