Skip to content

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

StatusBodyDescription
200SandboxStatusThe sandbox state
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe caller may not read sites
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
company_id requiredone of string (uuid), stringUUIDv7
sandbox requiredbooleanTrue when this company is a sandbox: test keys work here and nowhere else.
last_reset_at requiredstring 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
200SandboxResetThe reset that ran
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe caller may not delete sites
404ProblemThis company is not a sandbox
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
company_id requiredone of string (uuid), stringUUIDv7
reset_at requiredstring (date-time)
sites_removed requiredintegerSites the reset removed before it seeded the sandbox again. Range: 0 to any.
sites_created requiredintegerSites the seed created. Range: 0 to any.