> For the complete documentation index, see [llms.txt](https://fusionauth.io/docs/llms.txt)

# Key API | FusionAuth Docs

Learn about the APIs for generating, importing, retrieving, updating and deleting keys.

# Key API

[Edit on GitHub](https://github.com/FusionAuth/fusionauth-site/blob/main/astro/src/content/docs/apis/keys/index.mdx)

[View Markdown](https://fusionauth.io/docs/apis/keys.md)

Available since `1.6.0`

Use this API to view, create, and update keys, certificates, and secret values (see the [Key Master documentation](https://fusionauth.io/docs/operate/secure/key-master.md) for an overview of this functionality).

Use the following APIs to manage Keys:

| Operation | Method | Endpoint |
| --- | --- | --- |
| [Retrieve a Key](https://fusionauth.io/docs/apis/keys/retrieve-a-key.md) | `GET` | `/api/key`  
`/api/key/{keyId}` |
| [Update a Key](https://fusionauth.io/docs/apis/keys/update-a-key.md) | `PUT` | `/api/key/{keyId}` |
| [Delete a Key](https://fusionauth.io/docs/apis/keys/delete-a-key.md) | `DELETE` | `/api/key/{keyId}` |
| [Search for Keys](https://fusionauth.io/docs/apis/keys/search-for-keys.md) | `GET`  
`POST` | `/api/key/search?algorithm=RS256&name={name}&type=RSA`  
`/api/key/search` |
| [Generate a Key](https://fusionauth.io/docs/apis/keys/generate-a-key.md) | `POST` | `/api/key/generate`  
`/api/key/generate/{keyId}` |
| [Import a Key](https://fusionauth.io/docs/apis/keys/import-a-key.md) | `POST` | `/api/key/import`  
`/api/key/import/{keyId}` |