> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blobhub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Download Session Object

Download an object from the session storage.

## **POST** `/revisions/:id/data/query` (Command: `download_session_object`)

### Request Body

| Parameter    | Type   | Required | Description                        |
| :----------- | :----- | :------- | :--------------------------------- |
| `engine`     | string | Yes      | Must be `workflow_blobhub`.        |
| `command`    | string | Yes      | Must be `download_session_object`. |
| `session_id` | string | Yes      | The ID of the session.             |
| `alias`      | string | Yes      | Alias of the object to download.   |

### Response

| Parameter | Type   | Description           |
| :-------- | :----- | :-------------------- |
| `object`  | object | The retrieved object. |

> When `object.value.type` is `"thread"`, the returned envelope contains only `attributes` and
> `metadata`. Items are fetched separately via `list_session_thread_items` / `get_session_thread_item`.

> When `object.value.type` is `"graph"`, the returned envelope contains only `attributes` and
> `metadata`. Elements are fetched separately via the six graph commands. See the
> [graph session object](/blob-types/workflow/session-objects/graph/introduction) for the element schema.

### Example

<CodeGroup>
  ```json Request theme={null}
  {
    "engine": "workflow_blobhub",
    "command": "download_session_object",
    "session_id": "sess_001",
    "alias": "config"
  }
  ```

  ```json Response theme={null}
  {
    "object": { "debug": true }
  }
  ```
</CodeGroup>
