> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Execution by ID

> Get a single workflow execution with its node-level detail.

Retrieve a single execution by ID, including per-node status and output. Use it to debug a run or show progress.

## Authentication

This endpoint is scoped to a linked account, so it accepts **either** authentication method.

**Option 1 — API key**

<ParamField header="x-api-key" type="string">Your Refold API key.</ParamField>
<ParamField header="linked_account_id" type="string">The linked account.</ParamField>

**Option 2 — Session token**

<ParamField header="Authorization" type="string">Session token. **Format:** `Bearer YOUR_SESSION_TOKEN`</ParamField>

## Path Parameters

<ParamField path="execution_id" type="string" required>The execution ID.</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    <ResponseField name="name" type="string">Execution name.</ResponseField>
    <ResponseField name="status" type="string">Overall status.</ResponseField>
    <ResponseField name="completion_percentage" type="number">Progress, 0–100.</ResponseField>
    <ResponseField name="config_id" type="string">The config that ran.</ResponseField>
    <ResponseField name="linked_account_id" type="string">The linked account.</ResponseField>

    <ResponseField name="nodes" type="array">
      Per-node execution detail.

      <Expandable title="properties">
        <ResponseField name="node_id" type="string">Node ID within the workflow.</ResponseField>
        <ResponseField name="node_name" type="string">Node label.</ResponseField>
        <ResponseField name="node_type" type="string">Node type, e.g. `start`.</ResponseField>
        <ResponseField name="node_status" type="string">Node status, e.g. `Success`.</ResponseField>
        <ResponseField name="is_batch" type="boolean">Whether the node processed batches.</ResponseField>
        <ResponseField name="attempts_made" type="integer">Retry attempts.</ResponseField>
        <ResponseField name="execution_time" type="integer">Node duration (ms).</ResponseField>
        <ResponseField name="latest_output" type="object">The node's most recent output.</ResponseField>
      </Expandable>
    </ResponseField>
  </Tab>

  <Tab title="404 Not Found">
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error_code" type="string">Internal error code.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  {
    "name": "Execution for workflow 6a106ba44480b80424a65289",
    "org_id": "6500a1b2c3d4e5f6a7b8c9d0",
    "environment": "test",
    "status": "COMPLETED",
    "completion_percentage": 100,
    "config_id": "user_12345",
    "linked_account_id": "user_12345",
    "nodes": [
      {
        "node_id": "1",
        "node_name": "Start",
        "node_type": "start",
        "node_status": "Success",
        "is_batch": false,
        "attempts_made": 1,
        "execution_time": 403,
        "latest_output": {
          "message": "Workflow started successfully",
          "node_id": "1",
          "node_type": "start",
          "status": "initialized"
        }
      }
    ]
  }
  ```

  ```json 404 theme={null}
  {
    "status_code": 404,
    "http_error_type": "NOT_FOUND",
    "error_code": "RESOURCE_NOT_FOUND",
    "message": "Execution not found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL (API key) theme={null}
  curl -X GET "https://app.refold.ai/api/v2/public/execution/{execution_id}" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"
  ```

  ```bash cURL (session token) theme={null}
  curl -X GET "https://app.refold.ai/api/v2/public/execution/{execution_id}" \
    -H "Authorization: Bearer YOUR_SESSION_TOKEN"
  ```
</RequestExample>
