---
title: "GET /executions/{executionId}"
method: GET
path: "/executions/{executionId}"
---

# GET /executions/{executionId}

`GET /executions/{executionId}`

Get the code execution result. This is only supported for code-interpreter session pools.

## Path parameters

- `executionId` string, required

## Query parameters

- `api-version` string, required
- `identifier` string, required

## Response `200`

The request has succeeded.

- SessionCodeExecutionResource — The session code execution resource.
  - `id` string, required — Session code execution id.
  - `identifier` string, required — The identifier of the session.
  - `executionType` 'Synchronous' | 'Asynchronous' — Execution Type
  - `status` 'NotStarted' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled', required — Enum describing allowed operation states.
  - `error` AzureCoreFoundationsErrorResponse — A response containing error details.
    - `error` AzureCoreFoundationsError, required — The error object.
      - `code` string, required — One of a server-defined set of error codes.
      - `message` string, required — A human-readable representation of the error.
      - `target` string — The target of the error.
      - `details` AzureCoreFoundationsError[] — An array of details about specific errors that led to this reported error.
      - `innererror` AzureCoreFoundationsInnerError — An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.
        - `code` string — One of a server-defined set of error codes.
        - `innererror` AzureCoreFoundationsInnerError — recursive
  - `result` SessionCodeExecutionResult — The result of the code execution.
    - `stdout` string — The standard output of the code execution.
    - `stderr` string — The standard error of the code execution.
    - `executionResult` unknown
    - `executionTimeInMilliseconds` integer — The execution time of the code in milliseconds.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/app-dynamicsessions.md) · [All operations](https://skmtc.dev/azure/apis/app-dynamicsessions/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/app-dynamicsessions/revisions/acc255eeaad5/schema)
