Skip to main content

Environments

Learn about the different environments available, and tips to reduce latency by choosing the best base URL for your integration.

UID2 Testing and Production Environments

The following table lists all current testing and production environments for UID2.

EnvironmentCloud RegionCodeBase URL
Integration TestingAWS US East (Ohio)us-east-2https://operator-integ.uidapi.com
ProductionAutomatically optimized region routing via the AWS Global Acceleratorn/ahttps://global.prod.uidapi.com
ProductionAWS US East (Ohio)us-east-2https://prod.uidapi.com
ProductionAWS US West (Oregon)us-west-2https://usw.prod.uidapi.com
ProductionAWS Asia Pacific (Sydney)ap-southeast-2https://au.prod.uidapi.com
ProductionAWS Asia Pacific (Tokyo)ap-northeast-1https://jp.prod.uidapi.com
ProductionAWS Asia Pacific (Singapore)ap-southeast-1https://sg.prod.uidapi.com

For example, https://operator-integ.uidapi.com/v2/token/generate.

Notes:

  • All UID2 endpoints use the same base URL.
  • The integration environment and the production environment require different API keys.
  • The expiration time of the UID2 token returned by the POST /token/generate or POST /token/refresh endpoints is subject to change, but is always significantly shorter in the integration environment than it is in the production environment.

Specifying the Base URL to Reduce Latency

The latency of API calls depends on the proximity of the client to the UID2 servers. To reduce the latency, especially when making API calls from consumer devices, you might consider choosing a server closer to your users.

For example, a publisher in Singapore can set the base URL to https://sg.prod.uidapi.com. This is still the UID2 production environment, but the servers are in Singapore.

By explicitly setting the base URL, you can direct all requests to be processed within a particular country or region.

You might also consider leveraging the AWS global accelerator, which automatically directs requests to the UID2 servers closest to the caller. This option is also great for ensuring higher availability, in case servers in one region are temporarily down.

note

By default, some implementation options make API calls to a UID2 production environment server in the USA. To verify the default value, and for instructions on how to update the setting, check the documentation for your integration.