# Environments

> Sandbox and production share one API and nothing else. Keys, data and webhooks never cross between them.

| Environment | Base URL | Token lifetime | Money |
|---|---|---|---|
| **Production** | `https://api.antonpayments.com` | 1 hour | Real |
| **Sandbox** | `https://api.antonpayments.dev` | 8 hours | None. Rails are simulated |

A credential belongs to one environment, and its `client_id` says which: sandbox IDs start `ant_oc_test_` and production IDs `ant_oc_live_`. A sandbox token sent to the production API is refused with `403 key_environment_mismatch`, and a sandbox client asking the production token endpoint for a token gets `403 invalid_client`. A production token sent to the sandbox returns `401 invalid_token`, because each environment signs tokens with its own key. Every object carries `livemode`, `true` in production and `false` in the sandbox, so stored data can always say where it came from. [Authentication](/authentication) covers the token and the proof.

## Sandbox

The same endpoints, schemas, statuses, idempotency and signed webhooks as production. Rails are simulated, so nothing reaches a bank or a chain, and a payout finishes in seconds. It opens before your business is verified. One call funds a balance: see [Fund your balance](/guides/fund-your-balance).

## Production

Production opens once your business is verified through KYB, Anton has underwritten the account, and the corridors you plan to use are enabled. Nothing is promoted from the sandbox. You create production credentials, subscriptions and payees again, and your code is the only thing that carries over. [Go live](/guides/go-live) is the checklist.
