Get list subscribers
Changed onAPI to fetch a cursor-based paginated list of all users in the list.
get/v1/subscriber_list/{list_id}/subscriber/
Request
- Base URLhttps://hub.suprsend.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
list_idstring required
The list_id of your subscriber list
Query parameters
limitinteger
beforestring
the 'id' before which the results need to be fetched
afterstring
the 'id' after which the results need to be fetched
sortstring
the sort order, ascending or descending, here it's decided by 'id': ascending and '-id': descending
Response
200
Example response
{
"meta": {
"before": "01HAZ8CZ111111",
"after": "01H9S626C33222222"
},
"results": [
{
"distinct_id": "distinct_id_1",
"created_at": "2023-11-07T16:55:23.736016+00:00"
}
]
}Changes
- breaking
added the pattern
^[a-z0-9_-]+$to thepathrequest parameterlist_id
- breaking