How to Decrypt an Excel Workbook Using Aspose.Cells Cloud API
Contents
[
Hide
]
Prerequisites
- A valid JWT access token.
- The workbook must be uploaded to Aspose Cloud storage and its path specified in the
folderquery parameter.
DeleteDecryptWorkbook API
DELETE https://api.aspose.cloud/v3.0/cells/{name}/encryption
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
Query Parameters
| Parameter Name | Type | Description |
|---|---|---|
| folder | string | Folder path of the original workbook. |
| storageName | string | Name of the storage where the workbook resides. |
Request Body Parameter
| Parameter Name | Type | Description |
|---|---|---|
| encryption | WorkbookEncryptionRequest | Encryption settings required for decryption. |
WorkbookEncryptionRequest
| Parameter Name | Type | Description |
|---|---|---|
| EncryptionType | string | Encryption algorithm (XOR, Compatible, EnhancedCryptographicProviderV1, StrongCryptographicProvider). |
| KeyLength | integer | Length of the encryption key in bits. |
| Password | string | Password used for decryption. |
Response
{
"Status":"OK",
"Code":200
}
Sample Error Responses
{
"Code": "400",
"Message": "Invalid request parameters."
}
{
"Code": "401",
"Message": "Authentication failed. Invalid or missing JWT token."
}
{
"Code": "413",
"Message": "Payload too large. The uploaded file exceeds the allowed size."
}
{
"Code": "500",
"Message": "Internal server error. Please try again later."
}
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Filter applied successfully; response contains operation details. |
| 400 | Bad Request | Missing or invalid parameters (e.g., unsupported file type). |
| 401 | Unauthorized | Invalid or missing JWT token. |
| 413 | Payload Too Large | Uploaded file exceeds size limit. |
| 500 | Internal Server Error | Unexpected server error. |
How to Use the DeleteDecryptWorkbook API with SDKs
DeleteDecryptWorkbook API Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use cURL to access Aspose.Cells web services easily. The following example shows how to call the Cloud API with cURL.