Set a cookie for a password-protected external link

POST /api/2.0/files/sharedlink/password

Request

Sets a cookie after verifying the password for a password-protected external link and returns a link to the shared file.

Headers

Acceptenum of string

Can be one of: application/json.

Content-Typeenum of string

Can be one of: application/json.

Body

keystring

Link signature

passwordHashstring

Password hash

isFolderboolean

Specifies if a link is to the shared folder or not

Examples

POST /api/2.0/files/sharedlink/password HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: example.com
curl --request POST \
  --url https://example.com/api/2.0/files/sharedlink/password \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json'

Responses

200

Shared file link

Get Help

  • If you have any questions about ONLYOFFICE Workspace, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).