Get subscribers
Get subscribers from a subscriber list
Endpoint URI
1 |
|
Endpoint parameters
- LIST_ID : the email list you want to read
Headers
- X-Ownpage-Client-Token : a valid token
Query string parameters
- STATUS (values
subscribed|unsubscribed|all
, defaultsubscribed
): filter to get only the subscribed users (subscribed
) or the unsubscribed ones (unsubscribed
) or all subscribers (all
) - OFFSET (default
0
): Initial position in the list - COUNT (default
1 000
, max10 000
): number of subscribers to return - SEARCH: filter to get only the matching email addresses.
- EXACT (default
false
): boolean used to perform an exact matching of the search string.
Response (JSON)
Returns an array of subscribers. Each subscriber can contain have these fields :
- email: the user's email address
- guid: the unique identifier of this user
- data_*: additional data you may have attached to the user. Example :
data_firstname
- subscribed: (
true|false
) the status subscribed/unsubscribed. - subscribed_at: date of subscription
- unsubscribed_at: date of unsubscription (if unsubscribed)
- unsubscribed_cause: unsubscription cause (
READER
: reader decision,PUBLISHER
: publisher decision), used whensubscribed = false
. Default value isREADER
- last_sent_at: last email sent to this user
- last_open_at: last email opened by this user
- last_click_at: last click made by this user in a newsletter
- send_count: number of emails sent to this user
- open_count: number of emails opened by this user
- click_count: number of emails the user clicked in
Example
We get all subscribed users of our list with id #123
1 |
|
Response example:
1 2 3 4 |
|