Data Subjects V4
Get Purpose Details by Data Subject
Use this API to retrieve a data subject’s purpose details for a specific purpose. The response will include details such as the last transaction date, consent date, and purpose preferences.
get/rest/api/consent/v4/datasubjects/profiles/{purposeGuid}
Path parameters
purposeGuidstring uuid required
The unique identifier of the purpose.
Headers
identifierstring required
The data subject identifier of the data subject.
Response
OK
Example response
{
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"identifier": "example@otprivacy.com",
"lastReceiptId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"name": "Marketing Communications",
"version": 2,
"status": "ACTIVE",
"firstTransactionDate": "2020-01-05T11:34:30.974Z",
"lastTransactionDate": "2020-01-12T16:11:25.479Z",
"withdrawalDate": "2020-01-12T16:11:25.479Z",
"consentDate": "2020-01-07T13:18:23.123Z",
"expiryDate": "2020-01-07T13:18:23.123Z",
"totalTransactionCount": 3,
"topics": [
{
"id": "497c4383-2c61-4906-aed0-660e3fd03ef0",
"name": "Car Marketing"
}
],
"customPreferences": [
{
"id": "c4a57a38-3774-45ad-9fa4-dbc545542232",
"name": "Email Frequency",
"options": [
{
"id": "ca0fc41b-b28a-4335-804c-44d1f0f782ed",
"name": "Weekly"
}
]
}
],
"purposeNote": {
"noteId": "f312dd9b-58b4-4f34-b5ff-10b9b464bc4f",
"noteType": "UNSUBSCRIBE_REASON",
"noteLanguage": "en-us",
"noteText": "I did not sign up for this.",
"isValidNote": true
},
"lastUpdatedDate": "2020-01-05T11:34:30.974Z",
"lastInteractionDate": "2020-01-05T11:34:30.974Z",
"geolocation": {
"dataSubjectId": "633ba071-61b0-485f-81a0-a2245777b432",
"receiptGuid": "633ba071-61b0-485f-81a0-a2245777b432",
"country": "US",
"state": "GA",
"stateName": "Georgia"
},
"attachments": [
{
"attachmentId": "25d9ccac-db88-4d34-849c-3d602a629961",
"fileName": "policy.pdf",
"uploadedBy": "John Doe",
"uploadDate": "2024-01-01T00:00:00"
}
],
"source": {
"dataSubjectId": "633ba071-61b0-485f-81a0-a2245777b432",
"receiptGuid": "633ba071-61b0-485f-81a0-a2245777b432",
"sourceType": "WEB",
"sourceContent": "https://example.com/consent"
}
}