Use a Sandbox API key and one stored seed
Store two secrets in your CI system:SANNING_API_KEY: a Sandbox API key. Create it under Settings, API keys in the Sandbox. Do not put a Live API key in a test pipeline.SANNING_SIGNING_SEED: a signing seed you generate once, with the commands in the Quickstart.
agent_id is read as an
unauthorized identity rotation, and a new agent_id on every run enrolls a new agent
each time. The Sandbox holds at most 25 active agents, so a job that mints a new agent
per run eventually fails with SANDBOX_LIMIT_REACHED. See
Rate limits and ceilings.
Accept exit code 5
A Sandbox pack verifies, andverify exits 5 for it. A CI job that requires exit code 0
never passes, so assert 5 instead:
Wait for the stamp
A Sandbox stamp seals within about a minute. Until it does,bundle exits 3 with
no stamped records. Retry for a few minutes before you fail the job:
Keep the Sandbox tidy
Sandbox data older than 30 days is deleted daily, and you rarely need to clear it. If a suite fills the Sandbox, an owner or admin can reset it from Settings, Sandbox. A Reset keeps your API keys and signing keys, so the stored secrets keep working. See Sandbox and live. The Sandbox allows 5 requests per second per organization. A parallel test run that exceeds it getsSANDBOX_LIMIT_REACHED with status 429 and a Retry-After header.