Skip to main content

GET /users/:user_id/preferences

GEThttps://api.courier.com/users/:user_id/preferences
Fetch all user preferences.
PATH PARAMS
user_idstringrequired
A unique identifier associated with the user whose preferences you wish to retrieve.
Responses
AUTH TOKEN
curl --request GET \
--url https://api.courier.com/users/example_user_id/preferences \
--header 'Accept: application/json'
Response Example
{
"paging": {
"cursor": "MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA==",
"more": true
},
"items": [
{
"default_status": "OPT_IN",
"has_custom_routing": true,
"custom_routing": [
"email"
],
"status": "OPTED_OUT",
"topic_id": "FW0YU64P4TMYKMMHH67D6FENX8VS",
"topic_name": "Invitations"
}
]
}

Example

Method: GET

URL: https://api.courier.com/users/example_user_id/preferences