import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const list = await client.profiles.lists.retrieve('user_id');
console.log(list.paging);{
"paging": {
"more": true,
"cursor": "<string>"
},
"results": [
{
"id": "<string>",
"name": "<string>",
"created": "<string>",
"updated": "<string>",
"preferences": {
"categories": {},
"notifications": {}
}
}
]
}Returns the subscribed lists for a specified user.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const list = await client.profiles.lists.retrieve('user_id');
console.log(list.paging);{
"paging": {
"more": true,
"cursor": "<string>"
},
"results": [
{
"id": "<string>",
"name": "<string>",
"created": "<string>",
"updated": "<string>",
"preferences": {
"categories": {},
"notifications": {}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier representing the user associated with the requested user profile.
A unique identifier that allows for fetching the next set of message statuses.
An array of lists
Show child attributes
List name
The date/time of when the list was created. Represented as a string in ISO format.
The date/time of when the list was updated. Represented as a string in ISO format.
Show child attributes
Show child attributes
Show child attributes
OPTED_IN, OPTED_OUT, REQUIRED Show child attributes
Show child attributes
OPTED_IN, OPTED_OUT, REQUIRED