Jobs
Returns a paginated list of jobs for the runner, optionally filtered by status.
AuthorizationBearer <token>API Key access
page?integerPage number of the results
1 <= value1limit?integerMaximum number of jobs to return (default: 100, max: 500)
1 <= value <= 200100status?stringFilter jobs by status
"PENDING""IN_PROGRESS""COMPLETED""FAILED"offset?integerNumber of jobs to skip for pagination (default: 0)
List of jobs for the runner
application/json- response
items*array<>total*integerpage*integertotalPages*integercurl -X GET 'http://localhost:3000/jobs'{ "total": 0, "totalPages": 1, "page": 6, "items": [ { "createdAt": "2024-10-01T12:00:00Z", "resourceId": "sandbox123", "payload": "payload", "errorMessage": "Failed to create sandbox", "id": "job123", "type": "CREATE_SANDBOX", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "status": "PENDING", "resourceType": "SANDBOX", "updatedAt": "2024-10-01T12:00:00Z" }, { "createdAt": "2024-10-01T12:00:00Z", "resourceId": "sandbox123", "payload": "payload", "errorMessage": "Failed to create sandbox", "id": "job123", "type": "CREATE_SANDBOX", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "status": "PENDING", "resourceType": "SANDBOX", "updatedAt": "2024-10-01T12:00:00Z" } ]}Long poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds.
AuthorizationBearer <token>API Key access
timeout?integerTimeout in seconds for long polling (default: 30, max: 60)
limit?integerMaximum number of jobs to return (default: 10, max: 100)
List of jobs for the runner
application/json- response
jobs*array<>List of jobs
curl -X GET 'http://localhost:3000/jobs/poll'{ "jobs": [ { "createdAt": "2024-10-01T12:00:00Z", "resourceId": "sandbox123", "payload": "payload", "errorMessage": "Failed to create sandbox", "id": "job123", "type": "CREATE_SANDBOX", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "status": "PENDING", "resourceType": "SANDBOX", "updatedAt": "2024-10-01T12:00:00Z" }, { "createdAt": "2024-10-01T12:00:00Z", "resourceId": "sandbox123", "payload": "payload", "errorMessage": "Failed to create sandbox", "id": "job123", "type": "CREATE_SANDBOX", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "status": "PENDING", "resourceType": "SANDBOX", "updatedAt": "2024-10-01T12:00:00Z" } ]}AuthorizationBearer <token>API Key access
jobId*stringID of the job
Job details
application/json- response
id*stringThe ID of the job
type*stringThe type of the job
"CREATE_SANDBOX""START_SANDBOX""STOP_SANDBOX""DESTROY_SANDBOX""RESIZE_SANDBOX""CREATE_BACKUP""BUILD_SNAPSHOT""PULL_SNAPSHOT""RECOVER_SANDBOX""INSPECT_SNAPSHOT_IN_REGISTRY""REMOVE_SNAPSHOT""UPDATE_SANDBOX_NETWORK_SETTINGS""UPDATE_SANDBOX_SECRETS""SNAPSHOT_SANDBOX""FORK_SANDBOX""PAUSE_SANDBOX"status*stringThe status of the job
"PENDING""IN_PROGRESS""COMPLETED""FAILED"resourceType*stringThe type of resource this job operates on
"SANDBOX""SNAPSHOT""BACKUP"resourceId*stringThe ID of the resource this job operates on (sandboxId, snapshotRef, etc.)
payload?stringJob-specific JSON-encoded payload data (operational metadata)
traceContext?OpenTelemetry trace context for distributed tracing (W3C Trace Context format)
errorMessage?stringError message if the job failed
createdAt*stringThe creation timestamp of the job
updatedAt?stringThe last update timestamp of the job
curl -X GET 'http://localhost:3000/jobs/string'{ "createdAt": "2024-10-01T12:00:00Z", "resourceId": "sandbox123", "payload": "payload", "errorMessage": "Failed to create sandbox", "id": "job123", "type": "CREATE_SANDBOX", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "status": "PENDING", "resourceType": "SANDBOX", "updatedAt": "2024-10-01T12:00:00Z"}AuthorizationBearer <token>API Key access
jobId*stringID of the job
registryId*stringRegistry credential reference from the job payload
Ephemeral registry mTLS credentials
application/json- response
certificatePem*stringPEM-encoded client certificate chain
privateKeyPem*stringPEM-encoded unencrypted client private key
caBundlePem?stringPEM-encoded registry CA bundle
curl -X POST 'http://localhost:3000/jobs/string/registry-mtls/string'{ "certificatePem": "certificatePem", "privateKeyPem": "privateKeyPem", "caBundlePem": "caBundlePem"}AuthorizationBearer <token>API Key access
jobId*stringID of the job
application/json- body
status*stringThe new status of the job
"PENDING""IN_PROGRESS""COMPLETED""FAILED"errorMessage?stringError message if the job failed
resultMetadata?stringResult metadata for the job
Job status updated successfully
application/json- response
id*stringThe ID of the job
type*stringThe type of the job
"CREATE_SANDBOX""START_SANDBOX""STOP_SANDBOX""DESTROY_SANDBOX""RESIZE_SANDBOX""CREATE_BACKUP""BUILD_SNAPSHOT""PULL_SNAPSHOT""RECOVER_SANDBOX""INSPECT_SNAPSHOT_IN_REGISTRY""REMOVE_SNAPSHOT""UPDATE_SANDBOX_NETWORK_SETTINGS""UPDATE_SANDBOX_SECRETS""SNAPSHOT_SANDBOX""FORK_SANDBOX""PAUSE_SANDBOX"status*stringThe status of the job
"PENDING""IN_PROGRESS""COMPLETED""FAILED"resourceType*stringThe type of resource this job operates on
"SANDBOX""SNAPSHOT""BACKUP"resourceId*stringThe ID of the resource this job operates on (sandboxId, snapshotRef, etc.)
payload?stringJob-specific JSON-encoded payload data (operational metadata)
traceContext?OpenTelemetry trace context for distributed tracing (W3C Trace Context format)
errorMessage?stringError message if the job failed
createdAt*stringThe creation timestamp of the job
updatedAt?stringThe last update timestamp of the job
curl -X POST 'http://localhost:3000/jobs/string/status' \ -H 'Content-Type: application/json' \ -d '{ "resultMetadata": "resultMetadata", "errorMessage": "Failed to create sandbox", "status": "IN_PROGRESS"}'{ "createdAt": "2024-10-01T12:00:00Z", "resourceId": "sandbox123", "payload": "payload", "errorMessage": "Failed to create sandbox", "id": "job123", "type": "CREATE_SANDBOX", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "status": "PENDING", "resourceType": "SANDBOX", "updatedAt": "2024-10-01T12:00:00Z"}