Jobs
/jobsReturns a paginated list of jobs for the runner, optionally filtered by status.
API Key access
In: header
Query Parameters
Page number of the results
1 <= value1Maximum number of jobs to return (default: 100, max: 500)
1 <= value <= 200100Filter jobs by status
Value in
- "PENDING"
- "IN_PROGRESS"
- "COMPLETED"
- "FAILED"
Number of jobs to skip for pagination (default: 0)
Response Body
application/json
curl -X GET "https://example.com/jobs"{ "items": [ { "id": "job123", "type": "CREATE_SANDBOX", "status": "PENDING", "resourceType": "SANDBOX", "resourceId": "sandbox123", "payload": "string", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "errorMessage": "Failed to create sandbox", "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z" } ], "total": 0, "page": 0, "totalPages": 0}/jobs/pollLong poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds.
API Key access
In: header
Query Parameters
Timeout in seconds for long polling (default: 30, max: 60)
Maximum number of jobs to return (default: 10, max: 100)
Response Body
application/json
curl -X GET "https://example.com/jobs/poll"{ "jobs": [ { "id": "job123", "type": "CREATE_SANDBOX", "status": "PENDING", "resourceType": "SANDBOX", "resourceId": "sandbox123", "payload": "string", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "errorMessage": "Failed to create sandbox", "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z" } ]}/jobs/{jobId}API Key access
In: header
Path Parameters
ID of the job
Response Body
application/json
curl -X GET "https://example.com/jobs/string"{ "id": "job123", "type": "CREATE_SANDBOX", "status": "PENDING", "resourceType": "SANDBOX", "resourceId": "sandbox123", "payload": "string", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "errorMessage": "Failed to create sandbox", "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z"}/jobs/{jobId}/statusAPI Key access
In: header
Path Parameters
ID of the job
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/jobs/string/status" \ -H "Content-Type: application/json" \ -d '{ "status": "IN_PROGRESS" }'{ "id": "job123", "type": "CREATE_SANDBOX", "status": "PENDING", "resourceType": "SANDBOX", "resourceId": "sandbox123", "payload": "string", "traceContext": { "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" }, "errorMessage": "Failed to create sandbox", "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z"}