Infra APISsh

Add SSH key to VM

Adds an SSH public key to a VM's authorized_keys

POST/api/v1/vms/{vm_id}/ssh/keys

Adds an SSH public key to a VM's authorized_keys

Authorization

BearerAuth
AuthorizationBearer <token>

Supabase JWT Bearer token

In: header

Path Parameters

vm_id*string

VM ID

Request Body

application/json

SSH key

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/vms/string/ssh/keys" \  -H "Content-Type: application/json" \  -d '{}'
{  "message": "string",  "success": true}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}