chat
Backup private key
Save encrypted private key backup. The private key should be encrypted client-side with the backup password (using PBKDF2/Argon2 for key derivation) before sending. The server only stores the encrypted version and cannot decrypt it. The backup password is separate from Keycloak password and works for all users (including OAuth users).
post/api/chat/backup/private-key
Request body
Example request
{
"backup_password": "mySecureBackupPassword123",
"device_id": "device-uuid-optional",
"encrypted_private_key": "base64-encrypted-private-key...",
"encryption_iv": "base64-iv...",
"encryption_salt": "base64-salt...",
"key_type": "RSA-2048"
}Response
Successful Response
Example response
{
"backup_enabled": true,
"device_id": "device-uuid",
"message": "Chiave privata salvata nel backup con successo"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.