Using the Privacy Service API
Last update: February 14, 2025
- Topics:
- Privacy
CREATED FOR:
- Beginner
- Developer
Learn how to make calls to API endpoints, including lists and lookups, creating a job request, and creating a consent request. For more information, please visit the Privacy Services documentation.
Transcript
In this video, we’re going to be making calls to the Privacy Service API using Postman. If you haven’t watched the previous video on getting started with the API, take a look now to learn how to gather required authentication headers before following along with this tutorial. Once we’ve gathered our access token, organization ID, and API key, we can start making requests to the API. Let’s start by making a request to list all current privacy jobs for a certain regulation. Here in Postman, you can see that we’re making a GET request to the Privacy Service API. The path includes the platform gateway, a route path to the Privacy Service API, and the endpoint. In this case, we’re making a call to the jobs endpoint. While listing privacy jobs, we can only list the jobs for one regulation at a time. Therefore, when using this endpoint, we have to provide a regulation query parameter. The value we give this parameter determines which regulation the response will display results for. We’ll use CCPA for this call. For a list of accepted values for the regulation query parameter, please refer to the Jobs Endpoint Guide in the Privacy Service API documentation. We’ll hit send and the response gives us a list of jobs under the CCPA regulation including details like ID, Action, and Status. If we want to see more details about one of these jobs, we can perform a lookup request. We’ll copy the ID of the job we want to retrieve from the list and we’ll add it to the end of the request path like so. Since we’re looking up a single job, we no longer need to use the regulation parameter. Hit send and we’re given the details of the job. The action property tells us whether this is an access or delete request and we can also see the current processing status. Under user IDs, we can see the customer identities that were sent as part of this request. Under product responses, we can see the status of each Experience Cloud product that is processing the request. If a product has completed its privacy job, the resulting message will be displayed here. Now let’s walk through the process of creating a new privacy request. Here you can see I’m making a POST request to the Jobs Endpoint in the Privacy API. If we take a look at the request body that I put together previously, we’ll start to get an idea of how to configure the request. Let’s go through each of the properties here and explain what they’re doing. Company Context is a required array where we must provide our organization ID for authentication purposes. This is the same ID value that you provide in one of the request headers. Users is where we provide information about the users or customers that this request applies to. In this request, we have two users, represented by the two objects in the array. Let’s break these down. Each user has a key, which serves as a unique temporary identifier for the user. This can be any string, though we recommend using a globally unique ID if possible. Next, each user has an action array. This is where we list the actions that we want to perform on this user’s data. We can specify access, delete, or both. Finally, each user has a set of user IDs. These are identifiers that link the user with their stored data in your Experience Cloud products. As discussed in previous videos, each of these identifiers consists of a namespace, a type, and a value. In this example, we’re providing an email and an ECID for one user, while the other user has an email and a CRM ID stored in Analytics. Under include, we’ll list the Experience Cloud products that we want to process this privacy request. In our case, we’re processing this request in Analytics, the platform data lake, and real-time customer profile respectively. To learn the included values for other Experience Cloud products, please refer to the Privacy Service API documentation. Finally, the regulation attribute determines what regulation this request will be filed under in Privacy Service. We’re creating a CCPA request here. Once we’re happy with our request, we’ll hit send, and a successful response returns the details of the newly created jobs. The last operation that we’ll show you how to perform is creating a consent request. Certain privacy regulations require customers to provide explicit consent before their data can be collected. The Privacy Service API allows you to process customer consent requests and integrate them into your privacy workflow. Here you can see that we’re making a post request to the consent endpoint. The request body accepts two properties. The first property, optOutOfSale, represents a consent value that you are setting for the customer in question. If the customer is opting in, this is set to false. If they’re opting out, set it to true. The entities property contains the identity data for the customer. This takes the form of an array of objects. Within each object is a namespace and a list of corresponding values for that namespace. In this example, we’re supplying two email addresses and one ECID for a customer. Let’s hit send. When we receive the response from the API, we can see that it returned HTTP status 202, meaning that our request was successful. You now know how to perform all core operations in the Privacy Service API. If you created privacy requests through the API, you can view and monitor their status on the Privacy Service UI dashboard. See the video on using the UI for more information. For the latest details on how to use the API, please refer to the Privacy Service documentation. Thanks for watching.
Previous pagePrivacy Service UI
Next pageSubscribe to Privacy Events
Experience Platform
- Platform Tutorials
- Introduction to Platform
- A customer experience powered by Experience Platform
- Behind the scenes: A customer experience powered by Experience Platform
- Experience Platform overview
- Key capabilities
- Platform-based applications
- Integrations with Experience Cloud applications
- Key use cases
- Basic architecture
- User interface
- Roles and project phases
- Introduction to Real-Time CDP
- Getting started: Data Architects and Data Engineers
- Authenticate to Experience Platform APIs
- Import sample data to Experience Platform
- Administration
- AI Assistant
- Audiences and Segmentation
- Introduction to Audience Portal and Composition
- Upload audiences
- Overview of Federated Audience Composition
- Connect and configure Federated Audience Composition
- Create a Federated Audience Composition
- Audience rule builder overview
- Create audiences
- Use time constraints
- Create content-based audiences
- Create conversion audiences
- Create audiences from existing audiences
- Create sequential audiences
- Create dynamic audiences
- Create multi-entity audiences
- Create and activate account audiences (B2B)
- Demo of streaming segmentation
- Evaluate batch audiences on demand
- Evaluate an audience rule
- Create a dataset to export data
- Segment Match connection setup
- Segment Match data governance
- Segment Match configuration flow
- Segment Match pre-share insights
- Segment Match receiving data
- Audit logs
- Data Collection
- Collaboration
- Dashboards
- Data Governance
- Data Hygiene
- Data Ingestion
- Overview
- Batch ingestion overview
- Create and populate a dataset
- Delete datasets and batches
- Map a CSV file to XDM
- Sources overview
- Ingest data from Adobe Analytics
- Ingest data from Audience Manager
- Ingest data from cloud storage
- Ingest data from CRM
- Ingest data from databases
- Streaming ingestion overview
- Stream data with HTTP API
- Stream data using Source Connectors
- Web SDK tutorials
- Mobile SDK tutorials
- Data Lifecycle
- Destinations
- Destinations overview
- Connect to destinations
- Create destinations and activate data
- Activate profiles and audiences to a destination
- Export datasets using a cloud storage destination
- Integrate with Google Customer Match
- Configure the Azure Blob destination
- Configure the Marketo destination
- Configure file-based cloud storage or email marketing destinations
- Configure a social destination
- Activate through LiveRamp destinations
- Adobe Target and Custom Personalization
- Activate data to non-Adobe applications webinar
- Identities
- Intelligent Services
- Monitoring
- Partner data support
- Profiles
- Understanding Real-Time Customer Profile
- Profile overview diagram
- Bring data into Profile
- Customize profile view details
- View account profiles
- Create merge policies
- Union schemas overview
- Create a computed attribute
- Pseudonymous profile expirations (TTL)
- Delete profiles
- Update a specific attribute using upsert
- Privacy and Security
- Introduction to Privacy Service
- Identity data in Privacy requests
- Privacy JavaScript library
- Privacy labels in Adobe Analytics
- Getting started with the Privacy Service API
- Privacy Service UI
- Privacy Service API
- Subscribe to Privacy Events
- Set up customer-managed keys
- 10 considerations for Responsible Customer Data Management
- Elevating the Marketer’s Role as a Data Steward
- Queries and Data Distiller
- Overview
- Query Service UI
- Query Service API
- Explore Data
- Prepare Data
- Adobe Defined Functions
- Data usage patterns
- Run queries
- Generate datasets from query results
- Tableau
- Analyze and visualize data
- Build dashboards using BI tools
- Recharge your customer data
- Connect clients to Query Service
- Validate data in the datalake
- Schemas
- Overview
- Building blocks
- Plan your data model
- Convert your data model to XDM
- Create schemas
- Create schemas for B2B data
- Create classes
- Create field groups
- Create data types
- Configure relationships between schemas
- Use enumerated fields and suggested values
- Copy schemas between sandboxes
- Update schemas
- Create an ad hoc schema
- Sources
- Use Case Playbooks
- Experience Cloud Integrations
- Industry Trends