Skip to main content
Shell Users

Create a short lived token for WebSSH

Use this token within 120 seconds to establish an authenticated session in our WebSSH client. The response includes a ready-to-use web_ssh_url that you can open directly in a browser or webview.

POST
/servers/{serverSlug}/shellUsers/WebsshToken
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

The shell user you want to get a WebSSH token for

usernamestringrequired

Shell user name. The user must exist and be a valid shell user on the server.

Response

application/json

WebSSH Token

tokenstring

The WebSSH token

webSshUrlstring

Full URL to the WebSSH client with the token included