---
title: "Get an execution result"
method: GET
path: "/executions/{id}"
tags: ["Execution"]
---

# Get an execution result

`GET /executions/{id}`

## Request

- Base URL: `https://sandbox-as-a-service.com/v1`
- URL: `https://sandbox-as-a-service.com/v1/executions/{id}`
- Auth: HTTP bearer

## Response `200`

The execution record.

- Execution
  - `object` 'execution'
  - `id` string
  - `sandbox_id` string
  - `status` 'running' | 'completed' | 'timeout' | 'failed' | 'cancelled': `cancelled` means the client disconnected from a streamed execution; the command was killed.
  - `exit_code` integer, nullable
  - `stdout` string
  - `stderr` string
  - `truncated` boolean: True when output exceeded 1 MiB per stream and was cut off.
  - `duration_ms` integer, nullable
  - `started_at` string, date-time, nullable
  - `finished_at` string, date-time, nullable

## Other responses

- `404`: No execution with that id for this account.

---

[API](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api.md) · [All operations](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api/revisions/4f1ea2cf8333?raw)
