Chat-id routes
Revoke a document share link
Revoke a public document share link.
DELETE
/
api
/
v2
/
documents
/
{id}
/
share-links
/
{link_id}
/
Revoke share link
curl --request DELETE \
--url https://api.example.com/api/v2/documents/{id}/share-links/{link_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{id}/share-links/{link_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/documents/{id}/share-links/{link_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Stops the public
/s/<token>/ page. Existing grants keep serving until you revoke. Not gated on the share-links feature — withdrawing a grant is always allowed.⌘I
Revoke share link
curl --request DELETE \
--url https://api.example.com/api/v2/documents/{id}/share-links/{link_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/documents/{id}/share-links/{link_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/documents/{id}/share-links/{link_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
