DPO info
GET
/dpoUse this endpoint to retrieve the Data Protection Officer (DPO) information registered for your organization. Display this to users who need to know who is responsible for their data, as required by many privacy regulations.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | Yes | Your tenant API key |
Response
200 OK
| Field | Type | Description |
|---|---|---|
id | string | UUID of the DPO record |
full_name | string | Full name of the Data Protection Officer |
email | string | Contact email address of the DPO |
appointment_date | string or null | Date the DPO was formally appointed. null if not recorded. |
qualifications | string or null | Professional qualifications. null if not recorded. |
responsibilities | string or null | Description of the DPO’s role and responsibilities. null if not recorded. |
created_at | string | ISO 8601 timestamp when the record was created |
updated_at | string | ISO 8601 timestamp of the most recent update |
Errors
| Status | Classification | Details |
|---|---|---|
400 | Validation Error | X-Org-Id header required |
401 | Unauthenticated | Invalid or missing API key |
403 | Forbidden | API key lacks required scope |
404 | Not Found | No DPO record has been configured for your organization |
500 | Internal Error | Internal server error |
Example
curl --request GET \ --url https://api.truConsent.io/dpo \ --header "X-API-Key: YOUR_API_KEY"const response = await fetch('https://api.truConsent.io/dpo', { headers: { 'X-API-Key': 'YOUR_API_KEY', },});const data = await response.json();import requests
response = requests.get( 'https://api.truConsent.io/dpo', headers={ 'X-API-Key': 'YOUR_API_KEY', },)data = response.json(){ "id": "e5f6a7b8-c9d0-1234-efgh-456789012345", "full_name": "Priya Sharma", "email": "dpo@example.com", "appointment_date": null, "qualifications": null, "responsibilities": null, "created_at": "2024-01-10T08:00:00", "updated_at": "2024-01-10T08:00:00"}