# Environments

Digital ID provides sandbox and production environments. The API contract is
the same in both environments.

| Environment | API base URL | Widget base URL |
| --- | --- | --- |
| Sandbox | `https://stg-api-digitalid.privy.id` | `https://stg-digitalid.privy.id` |
| Production | `https://api-digitalid.privy.id` | `https://digitalid.privy.id` |

Use the sandbox environment for integration and tests. Use the production
environment for live traffic.

Privy issues API keys for a specific environment. A sandbox key does not work
in production, and a production key does not work in the sandbox.

Contact the Privy team for API-key provisioning, callback configuration, origin
allowlisting, and widget settings in each environment.
