Getting started with the Privacy Service API
Last update: February 14, 2025
- Topics:
- Privacy
CREATED FOR:
- Beginner
- Developer
Learn how to set up and authenticate to the Privacy Service API. For more information, please visit the Privacy Services documentation.
Transcript
Adobe Experience Platform Privacy Service provides a RESTful API that allows you to programmatically manage customer access and delete requests from your Experience Cloud applications. In this video, we’re going to walk through the steps for gathering the required authentication values that you’ll need in order to make calls to the API. In order to generate access credentials for the API, you must first be added as a developer to a platform product profile in Adobe Admin Console. You may need to contact a system administrator if you do not have appropriate admin permissions to manage a product profile. Please refer to the Admin Console documentation for more information on managing developers for product profiles. Once we’ve been added as a developer, we can sign in to Adobe Developer Console and select APIs and Services in the top nav. We’ll select the APIs tab and use the search bar to narrow down the listed services to find the Privacy Service API. Once we locate it, we’ll select Create Project. The first step is to create a key pair, which will be used later to create an authentication token. We can choose to upload a public key if we generated our own key pair earlier, but in our case, we’ll pick the option for Developer Console to generate the key pair for us. Select Generate Key Pair, and after a moment a zip file is automatically created and downloaded by our browser. This will come back in a later step. For now, we’ll select Save Configured API to continue. The API has now been added to the project. Under Service Account, we can see that several credential values have been generated for us. Two of these values, our Organization ID and our Client ID, are required in headers in all calls made to the Privacy Service API. These values do not change and can be reused indefinitely. From here, we only need one more value before we can use the API, an access token. Access tokens are temporary and must be regenerated every 24 hours in order to continue using the API. We can quickly obtain this value under Generate Access Token. We’ll open the private key file, copy the text, then we’ll paste it into the dialog before selecting Generate Token. Our access token is generated, and we can copy it to start using the API right away. If we wanted to create protocols to generate our access tokens automatically, we can do that through an API call. To start, we’ll need to generate a JSON Web Token, or JWT. Select Service Account in the left nav, then select Generate JWT. We’re given a sample payload which we can use with the JWT creation tool of our choice. Note the EXP property, which indicates when the token will expire. It is recommended that you only use a token that will expire a few minutes after creation for the most security. To learn more about generating JWTs using this method, please refer to the Adobe IO Authentication Documentation. For this demo, under Generate Custom JWT, we’ll paste the contents of our private key, then select Generate JWT. Once it’s done, we can see our generated JWT, and we’re given a sample cURL command. This command uses our client ID, client secret, and JWT credentials to generate a new access token. Here’s what the call looks like in Postman. We’re making a POST request to the IMS Exchange endpoint, and under Body, we’ve selected form data for our payload type. Here we can see our client ID, client secret, and JWT credentials provided. Let’s hit send to test it out, and there we have our access token. Now we have everything we need to start making calls to the Privacy Service API. Let’s put together a simple request to see if everything’s working as expected. We’ll set up a GET request and use the path for the jobs endpoint in the Privacy Service API, which you can see here. Notice that we’ve added the required regulation query parameter as well, and set it to CCPA. Next, we have our authentication headers. For authorization, use the word BEARER, followed by the access token we just generated. For XAPI key, copy and paste the client ID from Developer Console. For IMS Org ID, copy and paste the organization ID from Developer Console. We’ll hit send, and we can see the list of privacy jobs in the response, confirming that our credentials are working. By following along with this video, you should now have access to the different functionalities provided by the Privacy Service API. See the video on using the Privacy Service API for more information on how to use the available endpoints. Thanks for watching!
NOTE
This video is part of a playlist Get Started with Privacy Service in Adobe Experience Platform!
Previous pagePrivacy labels in Adobe Analytics
Next pagePrivacy Service UI
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