Skip to main content

POST /profiles/:recipient_id/lists

POSThttps://api.courier.com/profiles/:recipient_id/lists
Subscribes the given {recipient_id} to the lists. If the list does not exist, Courier will create it
PATH PARAMS
recipient_idstringrequired
A unique identifier representing the recipient associated with the requested profile.
BODY PARAM
listsarray
Responses
AUTH TOKEN
curl --request POST \
--url https://api.courier.com/profiles/0460766e-8463-4905-ae98-b72c7aef41d6/lists \
--header 'Accept: application/json'
Response Example
{
"status": "SUCCESS"
}

Example

Method: POST

URL: https://api.courier.com/profiles/abcdefgh12345678/lists

Body: ​

{
"notifications": {
"{notificationKey}": {
"channel_preferences": [
{
"channel": "direct_message"
}
],
"rules": [
{
"type": "snooze"
}
],
"status": "OPTED_IN"
}
}
}