Purposes V2
Get Purpose
Use this API to retrieve a single Purpose by its unique identifier along with the associated attributes, Purpose Preferences, and created date.
🗒 Things to Know
- This API returns Purpose descriptions inside <p> and </p> HTML tags. These can be sanitized depending on your formatting needs.
get/api/consentmanager/v2/purposes/{purposeId}
Path parameters
purposeIdstring uuid required
Example:550e8400-e29b-41d4-a716-446655440000
Unique identifier of the Purpose
Query parameters
status'ACTIVE' | 'DRAFT'
The status of the Purpose to be retrieved (ACTIVE or DRAFT). By default, ACTIVE is returned.
versioninteger
Example:2
Version number of the Purpose to be retrieved
Response
OK - Successfully retrieved purpose
Example response
{
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"label": "Marketing Communications",
"description": "Collect customer emails for marketing purposes",
"status": "ACTIVE",
"version": 2,
"consentLifeSpan": 31536000,
"implicitConsentLifeSpan": 31536000,
"implicitConsentConfirmDesc": "I agree to the processing of my personal data for this purpose",
"purposeType": "STANDARD",
"parentPurposeId": "ba54eb25-90f0-4633-ab12-c7bf5afdd856",
"retireOnDate": "2025-12-31T23:59:59Z",
"createdBy": "304F7D36-75A2-4967-81A5-5A7D604C6A19",
"createdDate": "2023-01-01T00:00:00Z",
"lastModifiedBy": "304F7D36-75A2-4967-81A5-5A7D604C6A19",
"lastModifiedDate": "2023-01-15T15:30:45Z",
"publishedBy": "304F7D36-75A2-4967-81A5-5A7D604C6A19",
"publishedDate": "2023-01-10T10:15:30Z",
"customPreferences": [
{
"id": "c4a57a38-3774-45ad-9fa4-dbc545542232",
"name": "Email Frequency",
"displayAs": "BUTTONS"
}
],
"topics": [
{
"id": "497c4383-2c61-4906-aed0-660e3fd03ef0",
"transactionType": "OPT_IN",
"name": "Car Marketing",
"integrationKey": "Marketing-Communications_Car-Marketing",
"canDelete": true
}
],
"expiryDateType": "LAST_TRANSACTION_DATE",
"enableGeolocation": true,
"HardOptOutDisplayFormat": "HIDE",
"HardOptOutMessage": "This purpose is required and cannot be opted out",
"languages": [
{
"name": "Marketing Communications",
"description": "Collect customer emails for marketing purposes",
"implicitConsentConfirmDesc": "I agree to the processing of my personal data for this purpose",
"language": "en-US",
"default": true,
"hardOptOutMessage": "This purpose is required and cannot be opted out"
}
]
}