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.
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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'
Views
Replies
Total Likes