Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
SSH Keys

Add an SSH public key (computes fingerprint)

POST
/v1/orgs/{orgId}/ssh-keys/create
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer vl_….

In: header

Path Parameters

orgId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/ssh-keys/create" \  -H "Content-Type: application/json" \  -d '{    "name": "work-laptop",    "publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5ro6Vg2mXKC3jExample user@laptop"  }'
{
  "id": "string",
  "name": "string",
  "publicKey": "string",
  "fingerprint": "string",
  "createdAt": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}

Command line

The orl CLI wraps this endpoint:

orl ssh-keys create --name <name> --public-key <public-key>