JWT, подтверждающий, что пользователю разрешено развернуть ключ для resource_name . См. токены авторизации .
reason
string (UTF-8)
Сквозная строка JSON, предоставляющая дополнительный контекст операции. Предоставленный JSON должен быть очищен перед отображением. Максимальный размер: 1 КБ.
wrapped_key
string
Бинарный объект base64, возвращаемый функцией wrap .
Тело ответа
В случае успеха этот метод возвращает ключ шифрования документа.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-25 UTC."],[[["Returns the decrypted Data Encryption Key (DEK) when provided with a wrapped key, authentication, authorization, and reason."],["Requires a wrapped key generated by the `wrap` method, alongside authentication and authorization tokens for security and access control."],["Accepts an optional reason parameter for providing context about the operation, which should be sanitized before display."],["Returns the base64-encoded DEK on successful execution, or a structured error reply if the operation fails."],["Utilizes the KACLS URL for making the POST request and requires specifying the version in the URL path (e.g., /v1/unwrap)."]]],["The `unwrap` method decrypts a Data Encryption Key (DEK). It requires a `POST` request to the KACLS URL with a JSON body containing: `authentication` (user ID JWT), `authorization` (key unwrapping permission JWT), `reason` (operation context), and `wrapped_key` (base64 encrypted key). A successful response returns a JSON body with the decrypted `key` (base64-encoded DEK). Failure returns a structured error.\n"]]