revoke_link
Deactivate a share link permanently to stop access to a document. Use after identifying the link token with list_links. Requires admin access.
Instructions
Revoke a share link, making it permanently inactive. Use list_links first to find the token of the link to revoke. Requires admin access. If the document is in this MCP server's local store, 'key' is optional.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>",
"link_token": "<link_token>"
},
"name": "revoke_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Document ID (used to look up the admin key when 'key' is omitted) | |
| key | No | Admin key. Optional if the document is in this MCP server's local store. | |
| link_token | Yes | The token of the link to revoke (from list_links) |