Skip to main content
POST
/
profiles
/
{user_id}
/
lists
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const response = await client.profiles.lists.subscribe('user_id', { lists: [{ listId: 'listId' }] });

console.log(response.status);
{
  "status": "SUCCESS"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

A unique identifier representing the user associated with the requested user profile.

Body

application/json
lists
SubscribeToListsRequestItem · object[]
required

Response

status
enum<string>
required
Available options:
SUCCESS