post
https://{hostname}/api/ot-insights/v1/bulk-export-jobs
Use this API to create a bulk export based on the specified criteria.
Things to Know
COOKIE_RECEIPTSexports are currently under Public Preview. Please contact OneTrust Support to request early access before running the export.- All historic data is not available by default.
COOKIE_RECEIPTSexports will become available once the feature is enabled.CONSENT_RECEIPTSexports are available from the OneTrust 202407.1.0 release or earlier if you had requested the feature while it was in preview.
Usage Guidelines
- Bulk Export Limits & Lifecycle:
- Each account is limited to 20 bulk exports per month. If you cancel a bulk export before it completes, it will not be counted towards this limit. To increase your export limit, contact OneTrust Support.
- The status of a bulk export will automatically change to
Expired10 days after its creation.- Data Volume & File Constraints:
- The maximum limit allowed is 1 million records, which is equivalent to approximately 8MB for
COOKIE_RECEIPTSandCONSENT_RECEIPTSexports.- For bulk exports less than 1 million records, we recommend using a report to pull the list. As it cannot be guaranteed that the bulk export reaches this maximum, the results will be split across multiple files up to 1 million records.
- Date & Time Constraints:
- The timespan for the
endDate-startDateis limited to 180 days.- The
endDatecan be as recent as yesterday, but cannot be the current day.- If a value is not provided for the
dateTypeparameter inDATA_SUBJECTSexports, this value will be set toCREATED_DATEby default.- Filtering:
CONSENT_RECEIPTSandCOOKIE_RECEIPTSonly support filtering based on eithercollectionPointGuidorpurposeGuid. Both cannot be used at the same time.- Bulk export filters are case-sensitive.
- Additional Information:
- For
DATA_SUBJECTSexports, only data subjects with a recorded consent transaction will be included.- For
DATA_SUBJECTS_BULK_ACTIONSexports, selectCSVas theexportFormatfor a compatible output with the Consent data subjects bulk actions import template in the OneTrust Platform. Once imported, related receipts will be deleted.
{
"exportType": "CONSENT_RECEIPTS",
"startDate": "2023-07-01",
"endDate": "2023-12-01",
"params": [
{
"name": "collectionPointGuid",
"values": [
"af01cad5-a39d-4585-9ee1-2062b1426bdd"
]
}
]
}{
"exportType": "COOKIE_RECEIPTS",
"startDate": "2023-11-01",
"endDate": "2023-12-01",
"params": [
{
"name": "purposeGuid",
"values": [
"af01cad5-a39d-4585-9ee1-2062b1426bdd"
]
}
]
}{
"exportType": "DATA_SUBJECTS",
"startDate": "2024-01-01",
"endDate": "2024-06-01",
"params": [
{
"name": "lastTransactionCollectionPointId",
"values": [
"c0431f94-664b-431e-bff3-3b341571c2af"
]
},
{
"name": "purposeId",
"values": [
"514780d1-7797-4952-84e7-d6c70b018fed",
"fb1ec920-68cd-4c9a-99da-77b21bd5b9d5",
"55ede8d8-0aab-40b8-a6b7-6c5221b62aa7"
]
},
{
"name": "status",
"values": [
"ACTIVE"
]
},
{
"name": "dataElementName",
"values":[
"FirstName"
]
},
{
"name": "dataElementValue",
"values":[
"George"
]
}
]
} 400Bad Request
401Unauthorized
403Forbidden
500Internal Server Error