Get List of Data Subjects
Use this API to retrieve a list of all data subjects. The response will include details for each data subject such as the associated data elements, data subject ID, and data subject identifier. By default, the response will return data subject details sorted in descending order of last modified date.
🗒 Things to Know
- This API is not designed to be used in synchronous workflows. As an alternative, the Gets preferences for a Data Subject API can be called.
🚧
Please note that the FTC Do Not Call List is updated once daily and not updated in real time. As such, there may be a possibility that a consumer's preferences may have changed and they may have opted out of receiving communication before the Do Not Call list gets refreshed. OneTrust is merely conveying information received from the FTC and is not responsible for compiling the lists.
Query parameters
Page number (0-based).
Number of records per page (1-50).
Filter Data Subject records that were last updated on or after the specified date. Formats accepted: yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss.
Filter Data Subject records that were last updated on or before the specified date. Must be used with updatedSince. Formats accepted: yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss.
Filter by data subject ID (UUID).
Filter by language code (e.g., 'en', 'fr').
Specify optional properties to control the response. Multiple values can be comma-separated.
- ignoreCount: Skip the total record count calculation (improves performance)
- linkTokens: Include link tokens in the response
- ignoreDefaultSort: Disable default sorting by last modified date
Include data subjects without purpose transactions (true/false).
Include Do Not Call list information (true/false).
Headers
Filter by data subject identifier (prefer using the header parameter).
Filter by data element name (must be used with dataElementValue).
Filter by data element value (must be used with dataElementName).
Response
OK - List of data subjects retrieved successfully.
Example response
{
"content": [
{
"id": "633ba071-61b0-485f-81a0-a2245777b432",
"identifier": "example@otprivacy.com",
"language": "en-us",
"lastUpdatedDate": "2020-01-12T16:11:25.479Z",
"dataElements": {
"Title": "Mr",
"FirstName": "Example"
},
"dataElementsMetaData": [
{
"name": "Work Email",
"linked": true,
"doNotCall": true
}
],
"linkToken": "jNJW2e8vm8eWb6DlWyGbZ/7PsfC+AHFN8JqvZHPGzJQ=",
"createdDate": "2020-01-12T16:11:25.479Z",
"identifierType": "Email"
}
],
"number": 1,
"size": 20
}