Skip to main content

Get SSH session details with comments and cast URL

get/v1/ssh_sessions/{session_id}

Request​

Authorization

  • Authorizationstringheaderrequired

    Key in the format Bearer <API-key>. Create a key on the API keys page.

Path Parameters

  • session_id stringrequired

Response

    author object
    avatar_urlstring

    Avatar URL

    Example: https://cdn.tuna.am/avatars/42.png
    idinteger<int64>

    User ID

    Example: 42
    namestring

    User name

    Example: Ivan Petrov
    can_view_with_linkboolean

    The recording can be viewed via a link

    cast_urlstring

    Link to the asciicast recording

    Example: https://tuna.am/ssh/2dBvKpR7Wm2vXtL8Hc6sFjY3bQe.cast
    comments object[]

    Recording comments

  • Array [
  • author object
    avatar_urlstring

    Avatar URL

    Example: https://cdn.tuna.am/avatars/42.png
    idinteger<int64>

    User ID

    Example: 42
    namestring

    User name

    Example: Ivan Petrov
    created_atstring<date-time>

    Creation date

    idstring

    Comment ID

    Example: 2dBvKpR7Wm2vXtL8Hc6sFjY3bQe
    is_anonymousboolean

    Anonymous comment

    is_editedboolean

    The comment was edited

    messagestring

    Comment text

    Example: we should roll back here
    reactions object[]

    Reactions to the comment

  • Array [
  • emojistring
    upvoted_users object[]
  • Array [
  • avatar_urlstring

    Avatar URL

    Example: https://cdn.tuna.am/avatars/42.png
    idinteger<int64>

    User ID

    Example: 42
    namestring

    User name

    Example: Ivan Petrov
  • ]
  • ]
  • session_idstring

    Session recording ID

    Example: 2dBvKpR7Wm2vXtL8Hc6sFjY3bQe
    timestampnumber<double>

    Timestamp in the recording, in seconds

    Example: 3.2
    updated_atstring<date-time>

    Update date

  • ]
  • created_atstring<date-time>

    Creation date

    durationnumber<double>

    Recording duration in seconds

    Example: 12.5
    heightinteger<int64>

    Terminal height in rows

    Example: 24
    idstring

    Session recording ID

    Example: 2dBvKpR7Wm2vXtL8Hc6sFjY3bQe
    is_completeboolean

    The recording is complete

    session_idstring

    SSH session ID

    Example: 2dBvKpR7Wm2vXtL8Hc6sFjY3bQe
    team object
    idinteger<int64>

    Team ID

    Example: 7
    namestring

    Name

    Example: Acme Inc
    slugstring

    Team slug, used as the suffix of dynamic subdomains

    Example: acme
    typestring

    Type

    Possible values: [personal, pro]

    Example: pro
    titlestring

    Title

    Example: deploy on prod
    tunnel_idinteger<int64>

    Tunnel ID

    Example: 42
    usernamestring

    SSH username

    Example: root
    widthinteger<int64>

    Terminal width in columns

    Example: 80