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

# Session status

> Check over HTTP whether a session is active and how it ended.

```http theme={null}
GET https://api.meetjamie.ai/v1/platform/sessions/{session_id}
Authorization: Bearer jp_…
```

```json theme={null}
{"session_id":"ps_8cad…","phase":"completed","completion":"finalized",
 "created_at_ms":1794316222000,"updated_at_ms":1794317240000,
 "last_connected_at_ms":1794316222000,"ended_at_ms":1794317240000}
```

| Field | Meaning |
| - | - |
| `session_id` | The session id |
| `phase` | `active`, `completed` or `failed` |
| `completion` | `null` while active; then `finalized`, `idle_timeout`, `max_duration`, `ahead_of_realtime` or `credit_exhausted` (completed), or `pod_lost` / `adapter_lost` (failed: the server lost the session; start a new one) |
| `*_at_ms` | Unix epoch milliseconds: when the session was created, last changed, last had a client connect or reconnect, and ended. `ended_at_ms` is `null` while active. |

`completion` matches the `reason` in `final`, except that `drain` shows as `finalized`, and a session that ended with `result_incomplete` shows phase `failed` with completion `adapter_lost`. Responses may contain additional fields; ignore the ones you do not recognise.

The status can lag the stream by up to about 15 s. A session you disconnected from without finalizing stays `active` until its 300 s reconnect window ends, and counts against your concurrent-session limit until then. Unknown ids, and sessions of other accounts, return `404 {"error":"session_not_found"}`. The status endpoint does not support browser cross-origin requests.


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