Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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.

SaravananKa_1-1716550982449.png

 

1 Accepted Solution

Avatar

Correct answer by
Employee

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=ja...' \
-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.

 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

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=ja...' \
-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.

 

Avatar

Level 1

Example:-
curl --location 'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.profile&entityId=XX...' \
--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=XX...