Create a share link
create_linkCreate a new tracked share link for a document with its own settings (download, passcode, expiry, views limit, watermark, e-mail gate, forwarding). Returns the URL to send.
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>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Who the link is for, e.g. "ACME – Anna" (shown in statistics) | |
| passcode | No | Password the viewer must enter | |
| watermark | No | Watermark pages with the viewer's e-mail and date | |
| expires_on | No | Last day the link works, YYYY-MM-DD | |
| document_id | Yes | ||
| views_limit | No | Maximum number of views | |
| require_email | No | Ask for the viewer's e-mail before opening | |
| allow_download | No | Allow download & print (default false) | |
| disallow_forwarding | No | Only the first person who opens it can use it | |
| one_viewer_at_a_time | No | Only one person can view at the same time |