Profiles
Subscribe to one or more lists
Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Profiles
Subscribe to one or more lists
Subscribes the given user to one or more lists. If the list does not exist, it will be created.
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"
}