This section provides an overview of the key management API, which allows you to manage your encryption keys securely.
Key Creation
To create a new key, you can use the following endpoint:
- URL:
/api/key-management/create
- Method:
POST
Request Body
{
"key_name": "my-key",
"key_type": "AES",
"key_size": 256
}
Key Retrieval
To retrieve a key, you can use the following endpoint:
- URL:
/api/key-management/retrieve/<key_id>
- Method:
GET
Key Update
To update a key, you can use the following endpoint:
- URL:
/api/key-management/update/<key_id>
- Method:
PUT
Request Body
{
"key_name": "updated-key-name",
"key_type": "RSA",
"key_size": 4096
}
Key Deletion
To delete a key, you can use the following endpoint:
- URL:
/api/key-management/delete/<key_id>
- Method:
DELETE
Best Practices
When managing your encryption keys, it's important to follow best practices to ensure security:
Secure Key Management