Skip to main content
GET
/
sandbox
/
jobs
/
{jobId}
Get sandbox search job
curl --request GET \
  --url https://apigcp.trynia.ai/v2/sandbox/jobs/{jobId} \
  --header 'Authorization: Bearer <token>'
{
  "workspaceKind": "<string>",
  "job": {
    "id": "<string>",
    "status": "<string>",
    "query": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z"
  },
  "sandbox": {
    "daytonaSandboxId": "<string>",
    "sandboxName": "<string>",
    "status": "<string>",
    "workspacePath": "<string>",
    "preparedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  },
  "repository": {
    "provider": "<string>",
    "canonicalUrl": "<string>",
    "ref": "<string>",
    "commitSha": "<string>",
    "defaultBranch": "<string>",
    "deduplicateKey": "<string>",
    "daytonaVolumeId": "<string>",
    "volumeName": "<string>",
    "cacheSubpath": "<string>",
    "cacheLastRefreshedAt": "2023-11-07T05:31:56Z"
  },
  "result": {
    "answer": "<string>",
    "rawOutput": "<string>",
    "command": "<string>",
    "exitCode": 123,
    "workspacePath": "<string>",
    "volumeName": "<string>",
    "cacheSubpath": "<string>"
  },
  "error": {
    "message": "<string>",
    "name": "<string>",
    "code": "<string>",
    "stack": "<string>",
    "causeMessage": "<string>",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

jobId
string
required
Minimum string length: 1

Response

Successful Response

Serialized sandbox query job. Optional fields depend on workspace kind and job status.

workspaceKind
string
required
job
SandboxSearchJobInfo · object
required
sandbox
SandboxSearchRuntimeInfo · object
required
repository
SandboxSearchRepositoryInfo · object
result
SandboxSearchExecutionResult · object
error
SandboxSearchJobError · object