API to retrieve all lists that a user is part of.
cURL
curl --request GET \ --url https://hub.suprsend.com/v1/user/{distinct_id}/subscribed_to/list/ \ --header 'Authorization: Bearer <token>'
{ "meta": { "count": 8, "limit": 10, "has_prev": false, "before": null, "has_next": false, "after": "01HPMFF5V2CFCF5882QX9FQXYB" }, "results": [ { "list": { "list_description": "List of users to send newsletter to (Qualified leads + Product Users)", "list_id": "product_update", "list_name": "", "list_type": "static_list", "source": "csv_upload", "subscribers_count": 2, "updated_at": "2024-09-26T10:20:33.636698+00:00" }, "created_at": "2024-08-04T13:16:12.825+00:00" } ] }
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
Bearer <API_KEY>
Unique identifier of the user in your system
number of results to be returned in API response
200 - OK
Metadata related to pagination.
Show child attributes
List of user lists.
Was this page helpful?