Audiences
Audit Events
AuthTokens
Inbound
Lists
Messages
Notifications
Profiles
Tenants
Translations
User Preferences
User Tenants
Profiles
Subscribe to list
POST
/
profiles
/
{user_id}
/
lists
curl --request POST \
--url https://api.courier.com/profiles/{user_id}/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"lists": [
{
"listId": "<string>",
"preferences": {
"categories": {},
"notifications": {}
}
}
]
}'
{
"status": "SUCCESS"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
A unique identifier representing the user associated with the requested profile.
Body
application/json
Response
200
application/json
Available options:
SUCCESS
curl --request POST \
--url https://api.courier.com/profiles/{user_id}/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"lists": [
{
"listId": "<string>",
"preferences": {
"categories": {},
"notifications": {}
}
}
]
}'
{
"status": "SUCCESS"
}