GET/api/v1/projects/{project_id}/lists/{list_id}/subscribers
list_subscribers
Lists a list’s subscribers, ordered by id, at most 100 per call, with an optional status filter.
- Call it
- to page through a list’s subscribers.
- Needs
- the list’s id and an admin key with
project_id, or a project key with scoperead(its own project; the argument is ignored). - Returns
items(subscribers asget_subscriberreturns them) andnext_cursor: pass it ascursorfor the next page; null on the last page. The same asGET /api/v1/projects/{project_id}/lists/{list_id}/subscribers.
Arguments
- object
-
list_idstring · uuidrequiredThe list whose subscribers to list.
-
cursorstring | nullnext_cursorof the previous page; leave it out for the first. -
limitinteger · int64 | nullPage size, 1 to 100; default 50.
1–100
-
project_idstring · uuid | nullThe subscribers’ project. An admin key must pass it; a project key’s own project is used and this is ignored.
-
statusstring | nullOnly this status:
pending,active,unsubscribed,bouncedorcomplained.
No other arguments are accepted.
Result
The result comes back as structuredContent, with the same JSON as a text block.
- object · all fields required
-
itemsarray of SubscriberOrdered by id.
12 fields
- Subscriber object · all fields required
-
attributesmap of string → string | number | booleanThe subscriber’s attributes: a map of string, number or boolean values.
-
confirmed_atstring · date-time | nullWhen the subscriber confirmed a double opt-in;
nullotherwise. -
created_atstring · date-time -
emailstring · email -
idstring · uuid -
list_idstring · uuidThe list the subscriber is on.
-
project_idstring · uuidThe subscriber’s project.
-
soft_bounce_streakinteger · uint32Soft bounces in a row; reset by a delivery (P4+).
≥ 0
-
sourcestringHow the subscriber was added:
api,importorconfirm. -
statusstringpending,active,unsubscribed,bouncedorcomplained. -
unsubscribed_atstring · date-time | nullWhen the subscriber unsubscribed;
nullotherwise. -
updated_atstring · date-timeThe latest change: creation, an attribute merge.
-
next_cursorstring | nullPass as
cursorfor the next page;nullon the last page.
Definitions
Subscriber
A subscriber of a list (add_subscriber, find_subscriber,
get_subscriber, update_subscriber_attributes).
- object · all fields required
-
attributesmap of string → string | number | booleanThe subscriber’s attributes: a map of string, number or boolean values.
-
confirmed_atstring · date-time | nullWhen the subscriber confirmed a double opt-in;
nullotherwise. -
created_atstring · date-time -
emailstring · email -
idstring · uuid -
list_idstring · uuidThe list the subscriber is on.
-
project_idstring · uuidThe subscriber’s project.
-
soft_bounce_streakinteger · uint32Soft bounces in a row; reset by a delivery (P4+).
≥ 0
-
sourcestringHow the subscriber was added:
api,importorconfirm. -
statusstringpending,active,unsubscribed,bouncedorcomplained. -
unsubscribed_atstring · date-time | nullWhen the subscriber unsubscribed;
nullotherwise. -
updated_atstring · date-timeThe latest change: creation, an attribute merge.
Errors
A failed call answers isError: true with a code from the same table as the HTTP API, and detail. How tools report errors
HTTP API
The same operation over HTTP: GET /api/v1/projects/{project_id}/lists/{list_id}/subscribers