Userpoint Consent
Operations related to UserPoint Consent (UserChoices), the tracking of user privacy preferences and consent for data processing in compliance with GDPR and data protection regulations:
Legal basis types - CONSENT (opt-in required), LEGITIMATE_INTEREST (opt-out allowed)
Acceptance value - true (allow processing) or false (block processing)
Privacy walls - Automatic enforcement on channels, compartments, and segments
Capture methods - $set_user_choice events, dedicated APIs, JavaScript tag integration
UserChoices automatically block data processing when consent is missing or withdrawn, with changelog tracking for audit compliance.
Relevant documentation:
Get a user choice's change log
User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}/change_log HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"data": [
{
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
],
"first_result": 1,
"total": 1,
"max_results": 1,
"status": "ok"
}Get user choice by compartment id / user account id change log
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}/change_log HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"first_result": 1,
"status": "ok",
"total": 1,
"data": [
{
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
]
}Get a user choice
User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
}Upsert a user choice
User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$Force replace
false00falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 227
{
"choice_ts": 0,
"email_hash": "text",
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}{
"status": "ok",
"data": {
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
}Delete a user choice
User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get user choices by compartment id / user account id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"data": [
{
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
],
"status": "ok",
"first_result": 1,
"max_results": 1,
"total": 1
}Get user choice by compartment id / user account id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
}Upsert user choice by compartment id / user account id
Force replace
false00falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 227
{
"choice_ts": 0,
"email_hash": "text",
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}{
"status": "ok",
"data": {
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
}Delete user choice by compartment id / user account id
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"choice_ts": 0,
"choice_source_token": "text",
"email_hash": "text",
"creation_ts": 0,
"user_account_id": "text",
"user_agent_id": {},
"user_point_id": "text",
"processing_id": "text",
"choice_acceptance_value": false,
"channel_id": "text",
"compartment_id": "text",
"choice_source_id": "text"
}
],
"max_results": 1,
"total": 1,
"status": "ok",
"count": 1,
"first_result": 1
}Last updated
Was this helpful?