Public Key
Manage user 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
401
Unauthorized
application/json
403
Forbidden
application/json
get
/me/public-keysGET /api/v1/me/public-keys HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[]Create a public key by me (logged in user)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
labelstring · min: 3 · max: 100RequiredExample:
Public key label
<label>publicKeystring · min: 1024 · max: 16384RequiredExample:
Public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...filePathstringOptional
Public key file path
Responses
201
Created
application/json
400
Bad Request
application/json
post
/me/public-keysPOST /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 by me (logged in user)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
publicKeyIdstringRequiredPattern:
Entity ID
^[0-9a-fA-F]{24}$Responses
200
OK
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
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 by me (logged in user)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
publicKeyIdstringRequiredPattern:
Entity ID
^[0-9a-fA-F]{24}$Responses
204
No Content
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
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?

