Test mode and the sandbox
wpw_test_ keys work only against a sandbox company, so you can build without touching real sites.
WP Waterfall has two kinds of API key, told apart by their prefix.
| Prefix | Works against | Made by |
|---|---|---|
wpw_live_ |
Your real company and its sites | Integrations, API keys tab, in any company |
wpw_test_ |
A sandbox company only | Integrations, API keys tab, in a sandbox company |
A key made before November 14, 2026 starts with hk_live_ or hk_test_. It works the same way until it expires or you revoke it, and an hk_test_ key is a test key.
A test key can never read or change a live company. The API checks the company behind every test key before it accepts the call. A test key minted for a company that is not a sandbox answers 401 on every route, and a test key that names a live company's site or environment answers 404, the same as any other company's resource would.
Getting a sandbox
Ask support to flag a company as a sandbox. In the sandbox:
POST /v1/siteswith"test": truecreates a simulated site on the demo node in a few seconds and costs nothing. A company with a live key can make test sites too, up to 10 at a time.- Every route behaves as it does in production, with the same scopes, confirmations, rate limits, idempotency, webhooks, and job events.
- Nothing reaches a real server, a real DNS zone, or a payment provider.
Check whether your key's company is a sandbox and when it was last reset:
curl -s https://api.wpwaterfall.com/v1/sandbox \
-H "Authorization: Bearer wpw_test_YOUR_SECRET"
{
"company_id": "01J9K2Q7M4Z8X0T6Y3B5N1C2D4",
"sandbox": true,
"last_reset_at": "2026-10-05T14:04:12.000Z"
}
Resetting the sandbox
A sandbox keeps its sites and data until you reset it. WP Waterfall never resets it for you. A signed-in Owner or Admin runs the reset with POST /v1/sandbox/reset, which answers with how many sites were removed and created. last_reset_at is null until the first reset.
The reset wipes the sandbox and seeds it again:
- Every site is removed. Environments that reached the demo node leave through
delete_environmentjobs, so you see them inGET /v1/jobsand in webhooks like any other delete. - Labels and domains are removed.
- The seed creates one site with a live and a staging environment, two labels (
client-aanddemo), and one cron entry. The site is namedtest-and the last six characters of your company id.
API keys, members, and the activity log survive the reset. Site ids do not, so fetch them from GET /v1/sites after a reset. Run the reset once on a new sandbox to get the seeded site.
Does the base URL change?
No. A sandbox uses https://api.wpwaterfall.com/v1 like production, so the same code runs against both. Only the key differs.
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.