Skip to main content

Get user subscription topic

GEThttps://api.courier.com/users/:user_id/preferences/:topic_id
Fetch user preferences for a specific subscription topic.
PATH PARAMS
user_idstringrequired
A unique identifier associated with the user whose preferences you wish to retrieve.
topic_idstringrequired
A unique identifier associated with a subscription topic.
Responses
AUTH TOKEN
curl --request GET \
--url https://api.courier.com/users/example_user_id/preferences/FW0YU64P4TMYKMMHH67D6FENX8VS \
--header 'Accept: application/json'
Response Example
{
"topic": {
"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/FW0YU64P4TMYKMMHH67D6FENX8VS