Sandbox & test mode
The sandbox is a separate environment at
https://sandbox.api.vps-server.host/v1 for end-to-end testing without real
data or real charges.
| Trait | Production | Sandbox |
|---|---|---|
| Base URL | api.vps-server.host | sandbox.api.vps-server.host |
| Token prefix | pat_live_… | pat_test_… |
| Charges | Real | None — gateways are stubbed |
| Provisioning | Real | Fake — short-circuited |
| Webhook signatures | Real whsec_… | Same scheme, separate secret |
| Rate limits | Production limits | Same defaults |
The same client code talks to both — only the base URL and token change.
# Same code, different environment.
export VPSH_API_BASE=https://sandbox.api.vps-server.host/v1
export VPSH_API_TOKEN=pat_test_…
Test data is seeded with realistic fixtures: a couple of servers, a domain, a recent invoice, etc. The seed resets weekly.