Used to get consent preferences information for a specific user profile.
This endpoint returns consent preference status for user profiles for projects where Consent Manager has been enabled.
Data returned includes details of the channel, type of preference status and any relevant consent-specific data, for example, channel (channel type). The response also includes an integer-boolean status (1 means the profile is currently subscribed to that channel and 0 is not.)
Get all consent preferences for a single user profile
{
"apptoken": "YOUR_APPTOKEN",
"condition": [
[
"user_id",
"=",
"USER_ID"
]
]
}Get all consent preferences for all user profiles which have status subscribed and have been updated after a specific point in time (timestamp must be provided in Unix)
{
"apptoken": "YOUR_APPTOKEN",
"condition": [
[
"status",
"=",
"1"
],
[
"update_time",
">",
"1717229073"
]
]
}Your app token
Order the results in either ascending or descending order based on any of the params, eg. ["name"] or ["update_time DESC"]
Select what attributes to return, eg. ["name", "profile_id", "update_time"]
Filter the user profiles based on some criteria, eg. [ ["user_id", "=", "USER_ID"] ,["status", "=", 0], ["update_time", ">", "1717229073"]
Used with offset for pagination, eg. "limit": 50, "offset": 0 returns a max of 50 results starting at position 0
Used with limit for pagination
200
{
"success": "True",
"code": "200",
"data": [
{
"profile_id": "11ebb2fd3ffc345a9fac061f43cf49c0",
"name": "GROUP_MARKETING_mortgage_info",
"type": "0",
"type_name": "Marketing",
"channel": "push",
"status": "1",
"update_time": "1725025235",
"source": "manual"
}
]
}400
{
"success": "False",
"code": "400",
"message": "apptoken is invalid."
}