How to get an audience list based on a particular CDP customer profile[like Audience membership tab] using API call? | Community
Skip to main content
May 24, 2024
Solved

How to get an audience list based on a particular CDP customer profile[like Audience membership tab] using API call?

  • May 24, 2024
  • 1 reply
  • 920 views

Hi Team,

Could you please help me to get the audiences list against the particular customer profile[like Audience membership tab from CDP] using API call.


I want the API response data like below for particular customer profile.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by brekrut

Hello @saravananka 

 

You can use the /GET Profile Entity API to return the segment membership of a profile.

 

https://experienceleague.adobe.com/en/docs/experience-platform/profile/api/entities.

 

example: 

curl -X GET \
'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.profile&entityId=janedoe@example.com&entityIdNS=email&fields=identities,person.name,workEmail' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'

 

 

Within the payload of a profile which is returned there will be a section named  segmentMembership as an object and a listing of segments will be shown.

 

1 reply

brekrut
Adobe Employee
brekrutAdobe EmployeeAccepted solution
Adobe Employee
May 24, 2024

Hello @saravananka 

 

You can use the /GET Profile Entity API to return the segment membership of a profile.

 

https://experienceleague.adobe.com/en/docs/experience-platform/profile/api/entities.

 

example: 

curl -X GET \
'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.profile&entityId=janedoe@example.com&entityIdNS=email&fields=identities,person.name,workEmail' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'

 

 

Within the payload of a profile which is returned there will be a section named  segmentMembership as an object and a listing of segments will be shown.

 

May 27, 2024

Example:-
curl --location 'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.profile&entityId=XXXXXXXXXXXXXXXXXXXX&fields=segmentMembership' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer XXXXXXXXXX' \
--header 'x-api-key: XXXXXXXXXXXXXXXX' \
--header 'x-gw-ims-org-id: XXXXXXXXXXXXXXXXXXXXX' \
--header 'x-sandbox-name: XXXXXX'

https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.profile&entityId=XXXXXXXX&fields=segmentMembership