API call to fetch Seegment id on condition | Community
Skip to main content
_Saurabh_
February 2, 2025
Question

API call to fetch Seegment id on condition

  • February 2, 2025
  • 2 replies
  • 471 views

I used Entity API to pull data of particular profile. In this case i am geting list of all segments profile had qualified.

Requirement is to fetch only one Segments ID based on condition.

Example : Pull all attributes value with segment ID for a profile based on Opaque Id

 

Kindly let me know if this is possible

 

Entity Api i used : 

https://platform.adobe.io/data/core/ups/access/entities

Body : 

{
  "schema": {
    "name""_xdm.context.profile"
  },
 
  "fields": [
   "person.name.firstName",
   "person.name.lastName",
   "personalEmail.address",
   "person.birthDate",
   "mobilePhone.number",
   "homePhone.number",
   "segmentMembership",
   "membershipDetails.enrollMemberMpi"
  ],
  "identities": [
    {
      "entityId""09fea7d8-6671-48bb-9472-30bb7ce84b7e",
      "entityIdNS": {
        "code""opaqueId"
      }
    }
  ],
  "limit"100,
  "orderby""timestamp",
  "withCA"false
}
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
February 3, 2025

@davidross91 @john_man@itsme_ssj@nitesh_kumar-1@krishna_musku@calisecheung

Kindly take a moment to review this question and share your valuable insights. Your expertise would be greatly appreciated!

 

Kautuk Sahni
brekrut
Adobe Employee
Adobe Employee
February 3, 2025

@_saurabh_ 

 

Are you attempting to filter down your results to a specific segment a profile qualifies for?