SSH Key

Get all SSH Keys

GET https://www.allnodes.com/api/v1/ssh-key

This endpoint allows to get list of all your ssh keys.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

{
  sshKeys: [
    {
      id: number;
      alias: string;
      publicKey: string;
    }
  ]
}

Add a new SSH Key

POST https://www.allnodes.com/api/v1/ssh-key

This endpoint allows to add a new ssh key.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Body

Name
Type
Description

alias

string

Alias of your SSH Key

publicKey

string

SSH Public Key

Remove a SSH Key

DELETE https://www.allnodes.com/api/v1/ssh-key/{id}

This endpoint allows you to remove a ssh key.

Path Parameters

Name
Type
Description

id*

string

SSH Key you want to remove. ID can be extracted from the “Get all SSH Keys” call

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Last updated