> Markdown version of https://tuna.am/en/docs/api/ssh-session-get/. 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.

# Get SSH session details with comments and cast URL

get`/v1/ssh_sessions/{session_id}`

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

### Path Parameters

* **session_id** stringrequired

### Response

200application/json

* **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

  **cast_url**string

  Link to the asciicast recording

  **Example:&#x20;**`https://tuna.am/ssh/2dBvKpR7Wm2vXtL8Hc6sFjY3bQe.cast`

  **comments** object\[]

  Recording comments

  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`

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

  Creation date

  **id**string

  Comment ID

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

  **is_anonymous**boolean

  Anonymous comment

  **is_edited**boolean

  The comment was edited

  **message**string

  Comment text

  **Example:&#x20;**`we should roll back here`

  **reactions** object\[]

  Reactions to the comment

  Array \[
* **emoji**string

  **upvoted_users** object\[]

  Array \[
* **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`

  ]
* ]
* **session_id**string

  Session recording ID

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

  **timestamp**number\<double>

  Timestamp in the recording, in seconds

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

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

  Update date

  ]

  **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`

  **is_complete**boolean

  The recording is complete

  **session_id**string

  SSH session ID

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

  **team** object

  **id**integer\<int64>

  Team ID

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

  **name**string

  Name

  **Example:&#x20;**`Acme Inc`

  **slug**string

  Team slug, used as the suffix of dynamic subdomains

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

  **type**string

  Type

  **Possible values:** \[`personal`, `pro`]

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

  **title**string

  Title

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

  **tunnel_id**integer\<int64>

  Tunnel ID

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

  **username**string

  SSH username

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

  **width**integer\<int64>

  Terminal width in columns

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