Skip to main content
Expys has two environments, sandbox and live. They share one API host: the environment is a property of the credential, not the URL. Routing is enforced server-side from the token, so you never switch base URLs to change environments.

How the environment is selected

  1. You create a sandbox or live Org-API-Key in the portal.
  2. Your backend exchanges that key for a member token. The token carries the environment.
  3. The SDK’s environment option is declarative - it labels the credential (and appears in the User-Agent) but does not change the host. Set it to match the key you used so the two never disagree.
A sandbox key cannot read live data and vice versa. If you see empty results or 403s, confirm the key’s environment matches the environment you configured.

Configuring the environment

Base URL

The canonical host is https://api.expys.com - the default in all three SDKs. You can point at a different deployment with the baseUrl option. See the configuration reference.