Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
User Preferences
Get user's preferences
Fetch all user preferences.
GET
/
users
/
{user_id}
/
preferences
Copy
Ask AI
curl --request GET \
--url https://api.courier.com/users/{user_id}/preferences \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"paging": {
"cursor": "<string>",
"more": true
},
"items": [
{
"custom_routing": [
"direct_message"
],
"default_status": "OPTED_IN",
"has_custom_routing": true,
"status": "OPTED_IN",
"topic_id": "<string>",
"topic_name": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
A unique identifier associated with the user whose preferences you wish to retrieve.
Query Parameters
Query the preferences of a user for this specific tenant context.
Response
200
application/json
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://api.courier.com/users/{user_id}/preferences \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"paging": {
"cursor": "<string>",
"more": true
},
"items": [
{
"custom_routing": [
"direct_message"
],
"default_status": "OPTED_IN",
"has_custom_routing": true,
"status": "OPTED_IN",
"topic_id": "<string>",
"topic_name": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.