Usercentrics - PUBLIC

Does the Usercentrics API work with other APIs?

With our API users can Manage our CMP like suppressing the banner or showing the banner, Users can also use our API to get a lot of information related to consents, banner and implemented technologies.

To use our API you can check all the available functions here: 

https://docs.usercentrics.com/#/frontend-javascript-api

Our API works with other APIs but our API itself is a “stand-alone solution”. That means: we provide information. What users do with that information is beyond our sphere of influence. 

We cannot guarantee if the information that our API   retrieve could be handled by the other API, This should be checked by the provider of the other API.

To be easier retrieve information customers can be using JavaScripts tools (.fitter(),.map(), .find()) and the javascript operators (and, or)

Examples of some codes to retrieve info:

Get a name or a specific field from a templateId

UC_UI.getServicesBaseInfo().find(data => (data.id === "HkocEodjb7")).name

Get a List of arrays of all technologies that have consents

UC_UI.getServicesBaseInfo().filter(data => (data.consent.status === true))

 

Usercentrics - PUBLIC