> Markdown version of https://tuna.am/en/docs/api/ssh-session-list/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# List SSH sessions

get`/v1/ssh_sessions`

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Query Parameters

* **page_size** integer\<int64>

* **page** integer\<int64>

* **search** string

  Case-insensitive search by title, SSH user, author name or email; exact match by ID

* **access** string

  Access: link (open via link), team (team only)

* **username** string

  Exact SSH login

* **tunnel_id** integer\<int64>

  Only recordings of the tunnel with this ID

* **order_by** string

  Sort order: created_at (default, newest first), duration (longest first), username

### Response

200application/json

* Array \[
* **author** object

  **avatar_url**string

  Avatar URL

  **Example:&#x20;**`https://cdn.tuna.am/avatars/42.png`

  **id**integer\<int64>

  User ID

  **Example:&#x20;**`42`

  **name**string

  User name

  **Example:&#x20;**`Ivan Petrov`

  **can_view_with_link**boolean

  The recording can be viewed via a link

  **created_at**string\<date-time>

  Creation date

  **duration**number\<double>

  Recording duration in seconds

  **Example:&#x20;**`12.5`

  **height**integer\<int64>

  Terminal height in rows

  **Example:&#x20;**`24`

  **id**string

  Session recording ID

  **Example:&#x20;**`2dBvKpR7Wm2vXtL8Hc6sFjY3bQe`

  **title**string

  Title

  **Example:&#x20;**`deploy on prod`

  **username**string

  SSH username

  **Example:&#x20;**`root`

  **width**integer\<int64>

  Terminal width in columns

  **Example:&#x20;**`80`

  ]
