URL Variables for APIs & SDKs

Environment URLs

Environment URLs are the base URLs used to access the OneTrust Platform. These URLs are critical for configuring API calls, SDKs, and other integrations with the OneTrust Platform, typically represented by the {hostname}, {$$.env.host}, and customer.my.onetrust.com variables in your code.

For those variables, you will need to input the OneTrust environment URL in which your OneTrust account is hosted, such as app.onetrust.com, app-eu.onetrust.com, etc. for shared environments, or if applicable, yourcompany.my.onetrust.com for dedicated environments.

The following table details shared environments and their respective environment URL.

EnvironmentEnvironment URL
APPapp.onetrust.com
APP-AEapp-ae.onetrust.com
APP-APACapp-apac.onetrust.com
APP-AUapp-au.onetrust.com
APP-BRapp-br.onetrust.com
APP-CAapp-ca.onetrust.com
APP-CHapp-ch.onetrust.com
APP-DEapp-de.onetrust.com
APP-EUapp-eu.onetrust.com
APP-FRapp-fr.onetrust.com
APP-HCna01.onetrust.com
APP-INapp-in.onetrust.com
APP-JPapp-jp.onetrust.com
APP-UKapp-uk.onetrust.com
TRIALtrial.onetrust.com
UATuat.onetrust.com
UAT-DEuat-de.onetrust.com
UAT-HCuat-na01.onetrust.com

Privacy Portal URLs

Privacy Portal URLs are the base URLs used for configuring API calls, SDKs, and other integrations with the Privacy Portal, typically represented by the ${privacyportal-domain} variable in your code.

For that variable, you will need to input the corresponding Privacy Portal URL as listed in the table below. If you have configured a custom domain or custom subdomain, you are encouraged to input that unique Privacy Portal URL or use the standard privacy portal URL.

EnvironmentPrivacy Portal URL
APPprivacyportal.onetrust.com
APP-AEprivacyportal.onetrust.com
APP-APACprivacyportal.onetrust.com
APP-AUprivacyportal.onetrust.com
APP-BRprivacyportal.onetrust.com
APP-CAprivacyportal.onetrust.com
APP-CHprivacyportal-eu.onetrust.com
APP-DEprivacyportal-eu.onetrust.com
APP-EUprivacyportal-eu.onetrust.com
APP-FRprivacyportal-eu.onetrust.com
APP-HCprivacyportal.onetrust.com
APP-INprivacyportal.onetrust.com
APP-JPprivacyportal.onetrust.com
APP-UKprivacyportal-eu.onetrust.com
TRIALprivacyportaltrial.onetrust.com
UATprivacyportaluat.onetrust.com
UAT-DEprivacyportaluateu.onetrust.com
UAT-HCprivacyportaluat.onetrust.com

👍

For more information on Privacy Portal, see Setting Up the Privacy Portal and Privacy Portal FAQ.