For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

get
/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}/change_log
Path parameters
datamart_idinteger · int64Required
user_point_identifierstringRequired

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

Pattern: ^([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+)$
processing_idstringRequired
Responses
200

Success !

application/json
countintegerRequired
first_resultintegerRequired
totalintegerRequired
max_resultsintegerRequired
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}/change_log
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

get
/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}/change_log
Path parameters
datamart_idinteger · int64Required
compartment_idstringRequired
user_account_idstringRequired
processing_idstringRequired
Responses
200

Success !

application/json
countintegerRequired
max_resultsintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
get/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}/change_log
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

get
/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}
Path parameters
datamart_idinteger · int64Required
user_point_identifierstringRequired

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

Pattern: ^([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+)$
processing_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}
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

put
/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}
Path parameters
datamart_idinteger · int64Required
user_point_identifierstringRequired

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

Pattern: ^([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+)$
processing_idstringRequired
Query parameters
force_replacebooleanOptional

Force replace

Default: false
Body
choice_tsinteger · int64RequiredDefault: 0
choice_source_tokenstringRead-onlyOptional
email_hashstringOptional
creation_tsinteger · int64Read-onlyRequiredDefault: 0
user_account_idstringOptional
user_agent_idobject · UserIdentifierOptional
user_point_idstringOptional
processing_idstringOptional
choice_acceptance_valuebooleanRequiredDefault: false
channel_idstringOptional
compartment_idstringOptional
choice_source_idstringOptional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}
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

delete
/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}
Path parameters
datamart_idinteger · int64Required
user_point_identifierstringRequired

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

Pattern: ^([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+)$
processing_idstringRequired
Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices/processing_id={processing_id}
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

get
/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices
Path parameters
datamart_idinteger · int64Required
compartment_idstringRequired
user_account_idstringRequired
Query parameters
consent_valuebooleanOptional
processing_idstring[]Optional
Responses
200

Success !

application/json
countintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
max_resultsintegerRequired
totalintegerRequired
get/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices
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

get
/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}
Path parameters
datamart_idinteger · int64Required
compartment_idstringRequired
user_account_idstringRequired
processing_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}
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

put
/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}
Path parameters
datamart_idinteger · int64Required
compartment_idstringRequired
user_account_idstringRequired
processing_idstringRequired
Query parameters
force_replacebooleanOptional

Force replace

Default: false
Body
choice_tsinteger · int64RequiredDefault: 0
choice_source_tokenstringRead-onlyOptional
email_hashstringOptional
creation_tsinteger · int64Read-onlyRequiredDefault: 0
user_account_idstringOptional
user_agent_idobject · UserIdentifierOptional
user_point_idstringOptional
processing_idstringOptional
choice_acceptance_valuebooleanRequiredDefault: false
channel_idstringOptional
compartment_idstringOptional
choice_source_idstringOptional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}
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

delete
/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}
Path parameters
datamart_idinteger · int64Required
compartment_idstringRequired
user_account_idstringRequired
processing_idstringRequired
Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/datamarts/{datamart_id}/user_points/compartment_id={compartment_id}/user_account_id={user_account_id}/user_choices/processing_id={processing_id}
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"
}

Get user choices

get
/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices
Path parameters
datamart_idinteger · int64Required
user_point_identifierstringRequired

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

Pattern: ^([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+)$
Query parameters
consent_valuebooleanOptional
processing_idstring[]Optional
Responses
200

Success !

application/json
max_resultsintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
countintegerRequired
first_resultintegerRequired
get/datamarts/{datamart_id}/user_points/{user_point_identifier}/user_choices
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?