Skip to main content

Get access token by link

note

[Since 2021.03]

A request to get access token by the public link.

POST /api/v1/public/{linkUid}/access HTTP/1.1
  1. Path parameters
ParameterDescription
linkUidThe UID of the link for the file.
  1. Request parameters
PathTypeDescription
passwordStringPassword for the public link
  1. Example request
curl 'http://localhost:8080/api/v1/public/afd6fec0-8647-4fb3-89e4-82116edc1822/access' -i -X POST \
-H 'Content-Type: application/json' \
-H 'X-co-auth-token: 17281326cbce235f64eaccfd5486ab60' \
-d '{
"password" : "AcsdH76-n"
}'
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: 45755458425a714d474877374c4a7778
Content-Type: application/vnd.ncloudtech.cloudoffice.file+json;v=1;charset=UTF-8
Content-Length: 56
{
"accessToken": "oksepzuxmjlmldnkkwauegjcemyxcekn"
}