> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/app-maker-open-apis/profile/public-key.md).

# Public Key

Manage user public keys.

## Get my public keys

> Get my public keys by me (logged in user)

```json
{"openapi":"3.0.3","info":{"title":"AppMaker API - OAS 3.0","version":"1.0.0"},"tags":[{"name":"me","description":"Endpoints for the authenticated user."},{"name":"public-key","description":"Manage user public keys."}],"servers":[{"url":"https://abp-api.akinon.net/api/v1","description":"Production server"},{"url":"https://abptest-api.akinon.net/api/v1","description":"Test server"},{"url":"http://localhost:5001/api/v1","description":"Local server"}],"security":[{"bearerAuth":[]},{"accessToken":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"accessToken":{"type":"apiKey","in":"header","name":"x-access-token"}},"responses":{"GetMyPublicKeysResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicKey"}}}}},"UnauthorizedErrorResponse":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"ForbiddenErrorResponse":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}}},"schemas":{"PublicKey":{"required":["_id","label","status","publicKey","awsPublicKeyId","user","createdAt","updatedAt"],"properties":{"_id":{"$ref":"#/components/schemas/ReadOnlyMongoId"},"label":{"type":"string","minLength":3,"maxLength":100,"description":"Public key label"},"status":{"$ref":"#/components/schemas/Status"},"publicKey":{"type":"string","minLength":1024,"maxLength":16384,"description":"Public key"},"awsPublicKeyId":{"type":"string","readOnly":true},"filePath":{"type":"string","description":"Public key file path"},"createdAt":{"$ref":"#/components/schemas/ReadOnlyDate"},"updatedAt":{"$ref":"#/components/schemas/ReadOnlyDate"}}},"ReadOnlyMongoId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Entity ID","readOnly":true},"Status":{"type":"integer","description":"Status","enum":[0,1]},"ReadOnlyDate":{"type":"string","format":"date-time","readOnly":true,"description":"Date"},"UnauthorizedError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}},"ForbiddenError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}}}},"paths":{"/me/public-keys":{"get":{"tags":["public-key","me"],"summary":"Get my public keys","description":"Get my public keys by me (logged in user)","operationId":"getMyPublicKeys","responses":{"200":{"$ref":"#/components/responses/GetMyPublicKeysResponse"},"401":{"$ref":"#/components/responses/UnauthorizedErrorResponse"},"403":{"$ref":"#/components/responses/ForbiddenErrorResponse"}}}}}}
```

## Create a public key

> Create a public key by me (logged in user)

```json
{"openapi":"3.0.3","info":{"title":"AppMaker API - OAS 3.0","version":"1.0.0"},"tags":[{"name":"me","description":"Endpoints for the authenticated user."},{"name":"public-key","description":"Manage user public keys."}],"servers":[{"url":"https://abp-api.akinon.net/api/v1","description":"Production server"},{"url":"https://abptest-api.akinon.net/api/v1","description":"Test server"},{"url":"http://localhost:5001/api/v1","description":"Local server"}],"security":[{"bearerAuth":[]},{"accessToken":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"accessToken":{"type":"apiKey","in":"header","name":"x-access-token"}},"requestBodies":{"CreateMyPublicKeyRequest":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label","publicKey"],"properties":{"label":{"type":"string","minLength":3,"maxLength":100,"description":"Public key label"},"publicKey":{"type":"string","minLength":1024,"maxLength":16384,"description":"Public key"},"filePath":{"type":"string","description":"Public key file path"}}}}}}},"responses":{"CreateMyPublicKeyResponse":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKey"}}}},"GenericErrorResponse":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"validationError":{"type":"object","properties":{}},"apiError":{"type":"array","items":{}}}}}}}},"schemas":{"PublicKey":{"required":["_id","label","status","publicKey","awsPublicKeyId","user","createdAt","updatedAt"],"properties":{"_id":{"$ref":"#/components/schemas/ReadOnlyMongoId"},"label":{"type":"string","minLength":3,"maxLength":100,"description":"Public key label"},"status":{"$ref":"#/components/schemas/Status"},"publicKey":{"type":"string","minLength":1024,"maxLength":16384,"description":"Public key"},"awsPublicKeyId":{"type":"string","readOnly":true},"filePath":{"type":"string","description":"Public key file path"},"createdAt":{"$ref":"#/components/schemas/ReadOnlyDate"},"updatedAt":{"$ref":"#/components/schemas/ReadOnlyDate"}}},"ReadOnlyMongoId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Entity ID","readOnly":true},"Status":{"type":"integer","description":"Status","enum":[0,1]},"ReadOnlyDate":{"type":"string","format":"date-time","readOnly":true,"description":"Date"}}},"paths":{"/me/public-keys":{"post":{"tags":["public-key","me"],"summary":"Create a public key","description":"Create a public key by me (logged in user)","operationId":"createMyPublicKey","requestBody":{"$ref":"#/components/requestBodies/CreateMyPublicKeyRequest"},"responses":{"201":{"$ref":"#/components/responses/CreateMyPublicKeyResponse"},"400":{"$ref":"#/components/responses/GenericErrorResponse"}}}}}}
```

## Get a public key

> Get a public key by me (logged in user)

```json
{"openapi":"3.0.3","info":{"title":"AppMaker API - OAS 3.0","version":"1.0.0"},"tags":[{"name":"me","description":"Endpoints for the authenticated user."},{"name":"public-key","description":"Manage user public keys."}],"servers":[{"url":"https://abp-api.akinon.net/api/v1","description":"Production server"},{"url":"https://abptest-api.akinon.net/api/v1","description":"Test server"},{"url":"http://localhost:5001/api/v1","description":"Local server"}],"security":[{"bearerAuth":[]},{"accessToken":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"accessToken":{"type":"apiKey","in":"header","name":"x-access-token"}},"parameters":{"PublicKeyIdPathParam":{"name":"publicKeyId","in":"path","required":true,"description":"Public key ID","schema":{"$ref":"#/components/schemas/MongoId"}}},"schemas":{"MongoId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Entity ID"},"PublicKey":{"required":["_id","label","status","publicKey","awsPublicKeyId","user","createdAt","updatedAt"],"properties":{"_id":{"$ref":"#/components/schemas/ReadOnlyMongoId"},"label":{"type":"string","minLength":3,"maxLength":100,"description":"Public key label"},"status":{"$ref":"#/components/schemas/Status"},"publicKey":{"type":"string","minLength":1024,"maxLength":16384,"description":"Public key"},"awsPublicKeyId":{"type":"string","readOnly":true},"filePath":{"type":"string","description":"Public key file path"},"createdAt":{"$ref":"#/components/schemas/ReadOnlyDate"},"updatedAt":{"$ref":"#/components/schemas/ReadOnlyDate"}}},"ReadOnlyMongoId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Entity ID","readOnly":true},"Status":{"type":"integer","description":"Status","enum":[0,1]},"ReadOnlyDate":{"type":"string","format":"date-time","readOnly":true,"description":"Date"},"UnauthorizedError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}},"ForbiddenError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}}},"responses":{"GetMyPublicKeyResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKey"}}}},"UnauthorizedErrorResponse":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"ForbiddenErrorResponse":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"NotFoundRepsonse":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"apiError":{"type":"array","items":{}}}}}}}}},"paths":{"/me/public-keys/{publicKeyId}":{"get":{"tags":["public-key","me"],"summary":"Get a public key","description":"Get a public key by me (logged in user)","operationId":"getMyPublicKey","parameters":[{"$ref":"#/components/parameters/PublicKeyIdPathParam"}],"responses":{"200":{"$ref":"#/components/responses/GetMyPublicKeyResponse"},"401":{"$ref":"#/components/responses/UnauthorizedErrorResponse"},"403":{"$ref":"#/components/responses/ForbiddenErrorResponse"},"404":{"$ref":"#/components/responses/NotFoundRepsonse"}}}}}}
```

## Delete a public key

> Delete a public key by me (logged in user)

```json
{"openapi":"3.0.3","info":{"title":"AppMaker API - OAS 3.0","version":"1.0.0"},"tags":[{"name":"me","description":"Endpoints for the authenticated user."},{"name":"public-key","description":"Manage user public keys."}],"servers":[{"url":"https://abp-api.akinon.net/api/v1","description":"Production server"},{"url":"https://abptest-api.akinon.net/api/v1","description":"Test server"},{"url":"http://localhost:5001/api/v1","description":"Local server"}],"security":[{"bearerAuth":[]},{"accessToken":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"accessToken":{"type":"apiKey","in":"header","name":"x-access-token"}},"parameters":{"PublicKeyIdPathParam":{"name":"publicKeyId","in":"path","required":true,"description":"Public key ID","schema":{"$ref":"#/components/schemas/MongoId"}}},"schemas":{"MongoId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","description":"Entity ID"},"BadRequestError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}},"UnauthorizedError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}},"ForbiddenError":{"type":"object","properties":{"apiError":{"type":"array","items":{"type":"string"},"description":"Error message"}}}},"responses":{"NoContentResponse":{"description":"No Content"},"BadRequestResponse":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestError"}}}},"UnauthorizedErrorResponse":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"ForbiddenErrorResponse":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}}}},"paths":{"/me/public-keys/{publicKeyId}":{"delete":{"tags":["public-key","me"],"summary":"Delete a public key","description":"Delete a public key by me (logged in user)","operationId":"deleteMyPublicKey","parameters":[{"$ref":"#/components/parameters/PublicKeyIdPathParam"}],"responses":{"204":{"$ref":"#/components/responses/NoContentResponse"},"400":{"$ref":"#/components/responses/BadRequestResponse"},"401":{"$ref":"#/components/responses/UnauthorizedErrorResponse"},"403":{"$ref":"#/components/responses/ForbiddenErrorResponse"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apidocs.akinon.com/app-maker-open-apis/profile/public-key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
