API to retrieve all lists that a user is part of.
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.
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
Total number of records returned.
8
Maximum number of records per page.
10
Indicates if there is a previous page.
false
Cursor for the previous page.
"01HPMFF5V2CFCF5882QX9FQXYB"
Indicates if there is a next page.
false
Cursor for the next page.
"01HPMFF5V2CFCFti5882QX9FQXYB"
List of user lists.
Show child attributes
Show child attributes
Unique identifier for the list.
"product_update"
Name of the list.
"Newsletter subscriber users"
Brief description of the list.
"List of users to send newsletter to"
Type of list (static_list, query_based)
"static_list"
Source from which the list was created (csv_upload, database_sync, mixpanel)
"csv_upload"
Number of subscribers in the list.
2
Timestamp when the list was last updated.
"2024-09-26T10:20:33.636698+00:00"
Timestamp when the user was added to the list.
"2024-09-26T10:20:33.636698+00:00"
Was this page helpful?
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"
}
]
}