Skip to main content
POST
Create an ephemeral evaluation sandbox

Authorizations

Authorization
string
header
default:dav_gr_execution_grant
required

The grant injected into a running Code object's container. It delegates the reach of whoever started the execution over the one project the Code object lives in, and it expires with the container.

On this mount it can create, inspect, and clean up the evaluation sandboxes that execution owns. It cannot select an existing project as a target, and a sandbox-bound purpose=evaluation grant is refused here so an evaluation cannot start another one.

Body

application/json
name
string

Human-readable sandbox name used in logs.

Maximum string length: 120
ttlSeconds
integer
default:900

Hard cleanup deadline, independent of Code execution timeout.

Required range: 60 <= x <= 3600

Response

The target sandbox is ready and its grant has been attached.

runId
string<uuid>
required
sourceProjectId
string
required
status
enum<string>
required

ready means the target is pinned and its grant can be used. failed is an infrastructure failure, not a low quality score. cleaned and expired are terminal and carry no usable grant.

Available options:
provisioning,
ready,
running,
cleaning,
cleaned,
failed,
expired
sandbox
object
required
cleanup
object
required
createdAt
string<date-time>
required
expiresAt
string<date-time>
required
testId
string | null

The Test whose Results Value started the Code, when a Test did. Absent for a Code object run directly.

testRunId
string<uuid> | null

The Test run that started the Code, when one did.

codeExecutionId
string
sessionId
string<uuid>

Headless target session attached to the evaluation data-plane grant.

dataPlane
object

Everything needed to address the data plane: where to send, what to send with, and the path parameters that are not obvious from the project id alone.

evidence
object
quality
object
failure
object
updatedAt
string<date-time>