V1 to V4 Migration Guide

ℹ️

Please contact your account representative or OneTrust Support for assistance if you need help with the migration.

This guide outlines how to transition from OneTrust’s v1/datasubjects/profiles (Get List of Data Subjects API) to the v4 suite. V4 provides a modular, performant, and more predictable experience.

Key differences between v1 and v4

Featurev1v4
Endpoint/v1/datasubjects/profilesMultiple (/v4/datasubjects, /v4/datasubjects/details, /v4/datasubjects/profiles, etc.)
ResponseMonolithic, nested, largeModular, granular, purpose-driven.
FilteringQuery params + headersStrict query/header separation, improved filters.
PaginationrequestContinuation onlyStandard page, size, and requestContinuation support.
Purpose DetailsEmbedded under data subject recordSeparated under purpose-specific endpoints.

Endpoint Mapping Guide

V1 FeatureV4 Equivalent
Get all data subjects with preferencesGET /v4/datasubjects (basic), GET /v4/datasubjects/details (detailed).
Filter by purposeUse /v4/datasubjects/profiles/{purposeGuid} with identifier header.
Get purpose history per data subjectGET /v4/datasubjects/ds-profiles (all purposes per data subject).
Get updated records across data subjectsGET /v4/datasubjects/profiles (date range, status, etc.)

Schema Comparison (v1 vs. v4)

Field NameV1 LocationV4 LocationNotes
identifierDataSubjectProfile.IdentifierDataSubjectResponseDto.identifierRenamed and separated.
PurposesNested under each data subjectRetrieved via separate endpointsNow modular.
CustomPreferencesNested under PurposesPresent under ds-profilesStructure consistent but split.
NoticesNested under data subjectOptional parameter in detailsControlled via query param.
requestContinuationRequired for paginationOptional and supports page and sizeMore flexible and RESTful.

Migration recommendations

  1. Define your use cases: Whether you need full data subject records or just consent status for a given purpose, select the v4 API that best fits your needs.
  2. Refactor pagination: Replace legacy requestContinuation logic with v4-style pagination, which includes page, size, and sort support.
  3. Adjust filtering: Migrate from v1's hybrid query/header filter model to v4's consistent and stricter structure.
  4. Test in staging: Response payloads and field structures have changed significantly. Make sure to validate any contract updates to ensure compatibility.
  5. Handle rate limits: Watch for new rate-limiting headers such as Retry-After, ot-ratelimit-event-id, and other headers along with backoff logic.

Benefits at a glance

V4 delivers faster, clearer, and more reliable APIs for modern consent and preference use cases. While v1 combined everything into a single massive response, v4 gives you tools to precisely control and extract what you need.

Transitioning to v4 APIs will bring significant benefits, including better performance, improved maintainability, and more transparent consent data workflows.