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

# List Sessions

List workflow sessions in the revision.

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

### Request Body

| Parameter          | Type   | Required | Description                 |
| :----------------- | :----- | :------- | :-------------------------- |
| `engine`           | string | Yes      | Must be `workflow_blobhub`. |
| `command`          | string | Yes      | Must be `list_sessions`.    |
| `start_session_id` | string | No       | Pagination cursor.          |

### Response

| Parameter         | Type   | Description              |
| :---------------- | :----- | :----------------------- |
| `sessions`        | array  | List of session objects. |
| `last_session_id` | string | Cursor for next page.    |

### Example

<CodeGroup>
  ```json Request theme={null}
  {
    "engine": "workflow_blobhub",
    "command": "list_sessions"
  }
  ```

  ```json Response theme={null}
  {
    "sessions": [
      {
        "id": "sess_001",
        "status": "open"
      }
    ],
    "last_session_id": "sess_001"
  }
  ```
</CodeGroup>
