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.delete('user_id');
console.log(list.status);{
"status": "SUCCESS"
}Removes all list subscriptions for given 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.delete('user_id');
console.log(list.status);{
"status": "SUCCESS"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier representing the user associated with the requested profile.
SUCCESS