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

Read one event of a session's stream by its id. The [session events](https://docs.blobhub.io/blob-types/workflow/workflows/session-events.md)
page describes the record.

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

### Request Body

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `command` | string | Yes | Must be `get_session_event`. |
| `session` | string | Yes | The ID or alias of the session. It must belong to the route's revision. |
| `id` | string | Yes | The event's `id`, as [List Session Events](https://docs.blobhub.io/blob-types/workflow/operations/list-session-events.md) returns it. |

### Response

| Parameter | Type | Description |
| :- | :- | :- |
| `event` | object | The event record: `id`, `session_id`, `revision_id`, `created_at`, `type`, `source`, the block its type adds, and `expires_at`. See [Record](https://docs.blobhub.io/blob-types/workflow/workflows/session-events.md#record). |

A deleted session is still served by id while its stream lasts, so the `session.deleted` event can be read by its id
for 24 hours after the purge. An alias of a deleted session no longer resolves.

### Errors

| Status | Error | Cause |
| :- | :- | :- |
| 404 | `not_found` | The session's stream holds no event with that `id`, or retention has removed it. |
| 403 | `forbidden` | Missing read access, or `session` does not resolve to a session of the route's revision. |

### Example

```json Request theme={null}
{
  "command": "get_session_event",
  "session": "primary",
  "id": "00065fdaf3076d80-7kq2m9zt"
}
```

```json Response theme={null}
{
  "status": "success",
  "event": {
    "id": "00065fdaf3076d80-7kq2m9zt",
    "session_id": "8d41b7e3-5c2a-4f90-a1b6-3e7d9c0f2a15",
    "revision_id": "rev_001",
    "created_at": "2026-11-09T17:04:05.123456Z",
    "type": "session.closing",
    "source": {"kind": "api", "user_id": "usr_001", "depth": 0},
    "session": {"status": "closing"},
    "expires_at": 1796835845
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.