Block until a sandbox is ready
Long-polls until the sandbox accepts traffic or timeout seconds elapse. Call this right after POST /sandboxes/provision.
On timeout the response is ready: false rather than an error — always check the field before using the sandbox, and call again to keep waiting. Keep timeout below any proxy idle limit on your side.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
x-workspace-id
UUID of the workspace that scopes this request. List the workspaces you belong to with GET /workspaces.
Request
This endpoint expects an object.
task_id
The name used when the sandbox was provisioned.
timeout
Seconds to wait before giving up. The call returns ready: false on timeout rather than failing.
poll_interval
Seconds between readiness checks.
Response
Successful Response
ready
True when the sandbox became ready. False means the timeout elapsed first — call again to keep waiting.
elapsed_seconds
How long the call actually waited.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error