v1

latestOpenAPI 3.0.12026-07-2471135326.0 KB
Segments

List Segment Contacts

This endpoint allows you to retrieve the contacts from a certain segment of a list previously created.

get/v3/lists/{listId}/segments/{segmentId}/subscribers

Path parameters

listIdinteger required

Provide the unique ID of the list

segmentIdstring required

Provide the unique ID of the segment

Query parameters

limitinteger

Use limit operator to limit the number of records returned

skipinteger

Use skip operator to skip the specified number of records.

offsetstring

Use offset operator to search the next record to be consulted

sortstring

Useful to sort returned records

selectstring

Useful to limit fields to return in each records

Response

Successfully retrieved the contacts from a segment of a list

Example response

{
  "meta": {
    "timestamp": 1597166699457,
    "transactionId": "70169d77-c165-4795-9932-35b8a3af96fb",
    "explain": "a descriptive text"
  },
  "pagination": {
    "offset": "e3293115e2ec5f466c67e047",
    "limit": 6,
    "next": "5f466c67e047e3293115e2ec",
    "page": 1,
    "pages": 10,
    "total": 1000
  },
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "to": "584000000001,email@example.com",
      "reason": "UNSUBSCRIBED, BOUNCED_PERMANENT,COMPLAINED"
    }
  ]
}