POST
/
api
/
v1
/
ssh_keys
/
Upload Ssh Key
curl --request POST \
  --url https://api.primeintellect.ai/api/v1/ssh_keys/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "publicKey": "<string>"
}'
{
  "id": "<string>",
  "userId": "<string>",
  "name": "<string>",
  "publicKey": "<string>",
  "isPrimary": true,
  "isUserKey": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

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

The name for the key.

publicKey
string
required

The public key part of the SSH key.

Response

Successful Response

id
string
required

Unique identifier for the SSH key.

userId
string
required

ID of the user associated with this pod, if applicable.

name
string
required

Name of the SSH key.

publicKey
string
required

The public key part of the SSH key.

isPrimary
boolean
required

Whether this SSH key is the primary key.

isUserKey
boolean
required

Whether this a custom key uploaded by the user.

createdAt
string<date-time>

Timestamp when the SSH key was added.

updatedAt
string<date-time>

Timestamp when the SSH key was last updated.