Public Key

Manage user public keys.

Get my public keys

get
/me/public-keys

Get my public keys by me (logged in user)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
get
/me/public-keys
GET /api/v1/me/public-keys HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[]

Create a public key

post
/me/public-keys

Create a public key by me (logged in user)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
labelstring · min: 3 · max: 100Required

Public key label

Example: <label>
publicKeystring · min: 1024 · max: 16384Required

Public key

Example: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...
filePathstringOptional

Public key file path

Responses
post
/me/public-keys
POST /api/v1/me/public-keys HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "label": "<label>",
  "publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...",
  "filePath": "text"
}
{
  "_id": "63ea10b94a472e003305232b",
  "label": "text",
  "status": 0,
  "publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...",
  "awsPublicKeyId": "text",
  "filePath": "text",
  "createdAt": "2025-12-06T05:08:47.572Z",
  "updatedAt": "2025-12-06T05:08:47.572Z"
}

Get a public key

get
/me/public-keys/{publicKeyId}

Get a public key by me (logged in user)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
publicKeyIdstringRequired

Entity ID

Pattern: ^[0-9a-fA-F]{24}$
Responses
200

OK

application/json
get
/me/public-keys/{publicKeyId}
GET /api/v1/me/public-keys/{publicKeyId} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "_id": "63ea10b94a472e003305232b",
  "label": "text",
  "status": 0,
  "publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...",
  "awsPublicKeyId": "text",
  "filePath": "text",
  "createdAt": "2025-12-06T05:08:47.572Z",
  "updatedAt": "2025-12-06T05:08:47.572Z"
}

Delete a public key

delete
/me/public-keys/{publicKeyId}

Delete a public key by me (logged in user)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
publicKeyIdstringRequired

Entity ID

Pattern: ^[0-9a-fA-F]{24}$
Responses
delete
/me/public-keys/{publicKeyId}
DELETE /api/v1/me/public-keys/{publicKeyId} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?