API call to return Union profile view | Community
Skip to main content
brekrut
Adobe Employee
Adobe Employee
January 26, 2024
Solved

API call to return Union profile view

  • January 26, 2024
  • 2 replies
  • 1032 views

Hello

 

Is there a call which can return all of the schemas and profiles attributes ?  I am looking for an single /POST call which mimics the union schema view of Adobe RTCDP > Profiles > Union schema view.  We can request all schemas using schema registry API, but this does not display all attributes.

 

Looking into the UI calls we can see there is a /POST to https://platform.adobe.io/data/xql/graphql.

It appears however the api_key need for this endpoint requires specific authorization.  Is there a API which can be added to a developer project to request this information?

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 abhinavbalooni

Hey @brekrut 

I am trying to look into this endpoint which should give you the union schema https://experienceleague.adobe.com/docs/experience-platform/xdm/api/unions.html#lookup

 

Got it working. 

 

Use the below endpoint:

 

https://platform.adobe.io/data/foundation/schemaregistry/tenant/unions/https%3A%2F%2Fns.adobe.com%2Fxdm%2Fcontext%2Fprofile__union

 

with the 'Accept' Header set to: application/vnd.adobe.xed-full+json;version=1

 

This would provide you with all the attributes within the union schema. I just tried it out and got close to 91000 lines of json with all the details of the schema.

 

Cheers,

Abhinav

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
January 29, 2024

Hello @brekrut 

 

If this is a one-time requirement, you can copy the complete request from developer tools and use it in Postman to get the JSON format.

Manoj     Find me on LinkedIn
abhinavbalooni
Community Advisor
abhinavbalooniCommunity AdvisorAccepted solution
Community Advisor
January 29, 2024

Hey @brekrut 

I am trying to look into this endpoint which should give you the union schema https://experienceleague.adobe.com/docs/experience-platform/xdm/api/unions.html#lookup

 

Got it working. 

 

Use the below endpoint:

 

https://platform.adobe.io/data/foundation/schemaregistry/tenant/unions/https%3A%2F%2Fns.adobe.com%2Fxdm%2Fcontext%2Fprofile__union

 

with the 'Accept' Header set to: application/vnd.adobe.xed-full+json;version=1

 

This would provide you with all the attributes within the union schema. I just tried it out and got close to 91000 lines of json with all the details of the schema.

 

Cheers,

Abhinav

brekrut
Adobe Employee
brekrutAdobe EmployeeAuthor
Adobe Employee
January 29, 2024

Yes this is the information I am looking for.  Thank you for the feedback.