Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A unique identifier representing the list you wish to retrieve.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const subscriptionList = await client.lists.retrieve('list_id');
console.log(subscriptionList.id);{
"id": "<string>",
"name": "<string>",
"created": "<string>",
"updated": "<string>"
}Returns a list based on the list ID provided.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const subscriptionList = await client.lists.retrieve('list_id');
console.log(subscriptionList.id);{
"id": "<string>",
"name": "<string>",
"created": "<string>",
"updated": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier representing the list you wish to retrieve.