List a segment's contacts

Page through the contacts that match a segment right now, ordered by id.

GEThttps://app.usenotix.dev/api/v1/contactBooks/{contactBookId}/segments/{segmentId}/contacts

Full access and read only keys can call this. Sending access keys cannot. Key permissions lists the extra rules some calls have.

Page through the contacts that match a segment right now, ordered by id. Pass nextCursor back as cursor for the next page; limit is 1 to 100 (50 by default).

Path parameters

contactBookIdstringrequired
segmentIdstringrequired

Query parameters

cursorstring
limitinteger

Contacts per page, 1 to 100. Defaults to 50.

Minimum 1. Maximum 100. Default 50.

Headers

Authorizationstringrequired

Bearer followed by your API key.

Errors

400

Invalid cursor or limit.

404

No segment with this id in the contact book for the calling team.

422

The segment took longer than 10 seconds to evaluate.

Every error has the same shape. See all error codes.

curl -X GET "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/segments/<segmentId>/contacts" \
  -H "Authorization: Bearer $NOTIX_API_KEY"
Response200
{
  "data": [
    {
      "id": "cm1x8f3k20001qz7v5b9d2e4a",
      "email": "customer@example.com",
      "firstName": "Acme",
      "lastName": "Acme",
      "subscribed": true,
      "properties": {},
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "nextCursor": "string",
  "total": 1
}
Open in ClaudeOpen in ChatGPT