Skip to main content

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.

TraitProductionSandbox
Base URLapi.vps-server.hostsandbox.api.vps-server.host
Token prefixpat_live_…pat_test_…
ChargesRealNone — gateways are stubbed
ProvisioningRealFake — short-circuited
Webhook signaturesReal whsec_…Same scheme, separate secret
Rate limitsProduction limitsSame 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.