Excel Password Protection Tool – Set Open & Modify Passwords - Secure Your Spreadsheets
Automate Excel password protection at scale with our developer API—apply both open and modify passwords programmatically. Ideal for enterprise workflows, compatible with .xlsx and legacy formats. Get documentation and start your free integration today.
Protect Spreadsheet API
API Endpoint
PUT http://api.aspose.cloud/v4.0/cells/protection/spreadsheet
Request Parameters:
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
|---|---|---|---|
| Spreadsheet | File | FormData | The Excel spreadsheet file to be uploaded and protected with password encryption. |
| password | String | Query | The password required to open (decrypt) the protected spreadsheet. |
| modifyPassword | String | Query | The password required to enable editing or modification of the spreadsheet contents. |
| outPath | String | Query | (Optional) Specifies the output folder path where the protected workbook will be saved. If not provided, the file is returned in the response. |
| outStorageName | String | Query | The name of the cloud storage used for storing the output protected file. |
| region | String | Query | Specifies the regional/cultural settings (e.g., date format, number formatting) applied to the spreadsheet during processing. |
Response
[
{
"Name": "ResponseFile",
"DataType": {
"Identifier": "File",
"Reference": "Stream",
"Name": "file"
}
}
]
Error Codes
- 400 Bad Request: Invalid Aspose.Cells Cloud API URI.
- 401 Unauthorized: Invalid access token. Or invalid client id and secret.
- 404 Not Found: The spreadsheet file not accessible.
- 500 Server Error: The spreadsheet has encountered an anomaly in obtaining calculation data.
Where should we use the Protect Spreadsheet API?
- Secure Sensitive Financial Data – Protect Excel files containing budgets, invoices, or payroll information with open and modify passwords to prevent unauthorized access or edits.
- Share Confidential Reports Safely – Ensure only authorized recipients can view or alter business, audit, or compliance reports when distributing internally or externally.
- Automate Document Security in Workflows – Integrate the API into enterprise systems (e.g., ERP, CRM) to automatically password-protect generated spreadsheets before storage or email delivery.
- Enforce Read-Only Access – Allow users to open reports for viewing while restricting modifications using a separate modify password—ideal for templates or finalized datasets.
- Meet Regulatory Compliance – Help satisfy GDPR, HIPAA, or SOX requirements by encrypting sensitive spreadsheet data at rest and in transit through automated protection.
Why should you use the Protect Spreadsheet API?
- Developer-Friendly: Aspose.Cells Cloud offers SDK libraries in multiple languages, enabling quick development and comes with comprehensive documentation. Compared to building custom chart rendering solutions, this significantly reduces the development workload.
- Reduced Labor Costs: Reduced the need for positions dedicated to document consolidation.
- Pay-per-use: No upfront investment, only pay for API calls actually used.
- Zero Maintenance Costs: No need to maintain servers, update software, or deal with compatibility issues.
- Preserves complex Excel formatting in universally accessible PDF format.
How to Use the Protect Spreadsheet API with SDKs
OpenAPI Specification
The OpenAPI Specification provides a detailed programming interface for executing REST interactions directly from a web browser.
Use Aspose.Cells Cloud SDKs
Using the SDK is the best way to accelerate development. The SDK handles the underlying details, allowing you to simply implement protect spreadsheets for cells with minimal code. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to interact with Aspose.Cells web services using various SDKs: