Skip to main content
POST
Create an SSH public key for the current user or organization

Authorizations

Authorization
string
header
required

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

Body

application/json
publicKey
string
required
Required string length: 1 - 16384
name
string
Maximum string length: 255

Response

Successful response

An SSH public key saved to a user's account or an organization. userId is the member who added it; orgId is set when the key belongs to an organization.

id
integer
required
Required range: -2147483648 <= x <= 2147483647
publicKey
string
required
name
string | null
required
Maximum string length: 255
createdAt
string<date-time>
required
Example:

"2025-01-31T12:00:00.000Z"

userId
string
required
orgId
string | null
required
createdBy
object
required

The user who added an SSH public key.