create_link
Share a document: a link to a page that plays it, an embed for other sites, and HLS playback. Nothing plays until a link exists. A link follows an alias (latest by default) or plays one fixed version.
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 |
|---|---|---|---|
| name | No | A name people recognize it by, such as "For Acme's review". | |
| alias | No | An alias, such as `latest`; `latest` when neither this nor `version` is given. | |
| version | No | A version, by number. | |
| autoplay | No | Start playing as soon as the page opens. | |
| controls | No | Show the player's controls. | |
| password | No | A password viewers enter before it plays, 4 to 128 characters; anyone with the link watches without one. | |
| expires_at | No | When the link stops working, as an RFC 3339 time; never when absent. | |
| document_id | Yes | The document the link plays, `doc_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `lnk_…`. | |
| url | Yes | The view page. | |
| name | No | A name people recognize it by; absent when it has none. | |
| autoplay | Yes | Whether the video starts playing when the page opens. | |
| controls | Yes | Whether the player shows its controls. | |
| embed_url | Yes | The page to put in an iframe. | |
| created_at | Yes | RFC 3339. | |
| created_by | Yes | The API key or member that created it. | |
| expires_at | No | RFC 3339. | |
| project_id | Yes | The document's project. | |
| revoked_at | No | RFC 3339. | |
| document_id | Yes | The document it plays. | |
| password_protected | Yes | Whether viewers need a password to watch it. The password itself is never shown. |