Sandbox
2 operations in the WP Waterfall API.
Whether this company is a sandbox, and when it was last reset
get/sandboxPermalink to Whether this company is a sandbox, and when it was last reset
Test mode. Answers sandbox false for a normal company. Test keys work in a sandbox company and nowhere else. A sandbox keeps its sites until an Owner or Admin resets it. A key needs the sites:read scope.
Responses
| Status | Body | Description |
|---|---|---|
200 | SandboxStatus | The sandbox state |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The caller may not read sites |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
company_id required | one of string (uuid), string | UUIDv7 |
sandbox required | boolean | True when this company is a sandbox: test keys work here and nowhere else. |
last_reset_at required | string or null (date-time) | When an Owner or Admin last reset the sandbox. Null when it was never reset. |
Reset the sandbox now
post/sandbox/resetPermalink to Reset the sandbox now
- Dashboard session only, no API key
A signed-in session only. No API key may call it. For an Owner or Admin of a sandbox company. Removes the sandbox's sites and seeds it again. A company that is not a sandbox answers 404.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SandboxReset | The reset that ran |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The caller may not delete sites |
404 | Problem | This company is not a sandbox |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
company_id required | one of string (uuid), string | UUIDv7 |
reset_at required | string (date-time) | |
sites_removed required | integer | Sites the reset removed before it seeded the sandbox again. Range: 0 to any. |
sites_created required | integer | Sites the seed created. Range: 0 to any. |