MillionSend Docs

/segments/{id}/contacts

GET
/segments/{id}/contacts

Newest first, as on Resend, with cursor pagination: after takes the last id of a page and pages toward older items, before takes the first id and pages back toward newer ones.

Path Parameters

id*string
Formatuuid

Query Parameters

limit?integer

Page size, 1-100 (default 20)

Range1 <= value <= 100
after?string

Cursor: id of the last item of the current page; returns the next page. Must be an id this list returned; there is no sentinel value.

Formatuuid
before?string

Cursor: id of the first item of the current page; returns the previous page; same rule as after.

Formatuuid
include?string

MillionSend extension: comma-separated facets attached to every item — properties (the {type, value} map GET /contacts/{id} returns) and topics (the rows GET /contacts/{id}/topics returns). Omitted, each item has the Resend shape.

Response Body

Contacts the segment resolves to

application/json
  1. response
object*"list"
Value in"list"
data*array<>
has_more*boolean
Example Request
curl -X GET 'https://api.millionsend.com/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08/contacts'
Example Response
{  "object": "list",  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "email": "string",      "first_name": "string",      "last_name": "string",      "created_at": "string",      "unsubscribed": true,      "properties": {        "property1": {          "type": "string",          "value": "string"        },        "property2": {          "type": "string",          "value": "string"        }      },      "topics": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "description": "string",          "subscription": "opt_in",          "explicit": true,          "visibility": "public"        }      ]    }  ],  "has_more": true}