> ## 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.

# Get Session Thread Item

Fetch a single thread item by id.

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

### Request Body

| Parameter    | Type   | Required | Description                                         |
| :----------- | :----- | :------- | :-------------------------------------------------- |
| `engine`     | string | Yes      | Must be `workflow_blobhub`.                         |
| `command`    | string | Yes      | Must be `get_session_thread_item`.                  |
| `session_id` | string | Yes      | The ID of the session.                              |
| `alias`      | string | Yes      | Alias of the thread session object.                 |
| `item_id`    | string | Yes      | The item id returned by `post_session_thread_item`. |

### Response

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

### Errors

* `not_found` — the item does not exist, or its stored `session_id`/`alias`/`revision_id` does not
  match the request.

### Example

<CodeGroup>
  ```json Request theme={null}
  {
    "engine": "workflow_blobhub",
    "command": "get_session_thread_item",
    "session_id": "sess_001",
    "alias": "onboarding_thread",
    "item_id": "itm_01H..."
  }
  ```

  ```json Response theme={null}
  {
    "item": {
      "id": "itm_01H...",
      "session_id": "sess_001",
      "revision_id": "rev_001",
      "alias": "onboarding_thread",
      "created_at": "2026-05-22T22:00:00.000000+00:00",
      "user_id": "usr_001",
      "content": [{ "type": "text", "text": "Hello, world." }]
    }
  }
  ```
</CodeGroup>

### See also

* [BlobHub Worker — thread items](/worker/session-agent-harness/thread-items) — content/metadata
  shape and `metadata.type` values used by the worker.
