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

# motus serve get

> Get details for a session, with optional long-polling.

Get details for a session. Supports long-polling so you can block until a running turn completes. This maps directly to `GET /sessions/{id}` described in the [Sessions API reference](/reference/api/sessions).

## Usage

```bash theme={null}
motus serve get <url> <id> [options]
```

## Options

| Flag        | Default | Description                                          |
| ----------- | ------- | ---------------------------------------------------- |
| `--wait`    | `false` | Block until the session is no longer `"running"`     |
| `--timeout` | —       | Maximum seconds to wait (only applies with `--wait`) |

## Examples

### Get session details

```bash theme={null}
motus serve get http://localhost:8000 550e8400-e29b-41d4-a716-446655440000
```

### Long-poll until complete

```bash theme={null}
motus serve get http://localhost:8000 550e8400-e29b-41d4-a716-446655440000 --wait --timeout 30
```

```json theme={null}
{
  "session_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "idle",
  "response": { "role": "assistant", "content": "hi there" }
}
```
