API reference

Add an SSH key

Add a new SSH public key to the authenticated user's organization

View Markdown

POST/keys/add

Add a new SSH public key to the authenticated user's organization

Request body

application/json

FieldTypeDescription
nameRequiredstring
public_keyRequiredstring

Responses

200 · OK
FieldTypeDescription
keythundertypes.SSHKey
messagestring
400 · Bad Request
FieldTypeDescription
codeinteger
errorstring
messagestring
401 · Unauthorized
FieldTypeDescription
codeinteger
errorstring
messagestring
409 · Conflict
FieldTypeDescription
codeinteger
errorstring
messagestring
500 · Internal Server Error
FieldTypeDescription
codeinteger
errorstring
messagestring

Operation specification

The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.