Skip to main content

Adding security to a Word document

Adding security will allow you to set encyrption and/or write protection on a word document.

You can view the full Swagger documentation here.

Request

curl --location 'https://word-api.doclabs.cloud/api/v1/MyDocument.docx/security/protect?storageName=MyBucketName' \
--header 'Content-Type: application/json' \
--header 'x-api-key: ••••••' \
--data '{
"ownerPassword": "MyStrongPassword"
}'

Response

{
"bucketName": "MyBucketName",
"contentPathName": "CopyOfTheOriginal.docx"
}