Skip to main content
POST
/
v1
/
devboxes
/
{id}
/
create_ssh_key
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const response = await client.devboxes.createSSHKey('id');

console.log(response.id);
{
  "id": "<string>",
  "url": "<string>",
  "ssh_private_key": "<string>",
  "ssh_user": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The Devbox ID.

Response

OK

id
string
required

The ID of the Devbox.

url
string
required

The host url of the Devbox that can be used for SSH.

ssh_private_key
string
required

The ssh private key, in PEM format.

ssh_user
string
required

The Linux user to use for SSH connections to this Devbox.