Segments

List a segment's contacts

Newest first, 20 a page unless `limit` says otherwise: a static segment's members, a dynamic one's contacts its rule selects now (what the SDKs' `contacts.list` with a segment id reads).

GET
/segments/{id}/contacts

Newest first, 20 a page unless limit says otherwise: a static segment's members, a dynamic one's contacts its rule selects now (what the SDKs' contacts.list with a segment id reads).

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Query Parameters

limit?integer

1–100, default 20.

Range0 <= value
after?string

A contact id: the page of older contacts after it.

before?string

A contact id: the page of newer contacts before it.

Response Body

Success

application/json
  1. response

A list response (object: "list").

data*array<>
has_more*boolean
object*string
Example Request
curl -X GET 'https://api.exx.sh/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08/contacts'
Example Response
{  "data": [    {      "created_at": "string",      "email": "string",      "first_name": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "last_name": "string",      "unsubscribed": true    }  ],  "has_more": true,  "object": "string"}