Skip to main content
POST
/
api
/
servers
Register a root server
curl --request POST \
  --url https://app.telentir.com/api/servers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "mode": "generate",
  "publicKey": "<string>"
}
'
{
  "name": "<string>",
  "publicKey": "<string>",
  "privateKey": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
mode
enum<string>
required
Available options:
generate,
upload_public
publicKey
string

Base64URL encoded SPKI string (required when uploading your own key)

Response

Server record and public key material

name
string
publicKey
string
privateKey
string | null

Only returned when Telentir generated the keypair