Protect link
protect_linkProtect an owned link by enabling capability token and readable secret protection, returning a share URL and secret code. Optionally specify a label or duration (defaults to 24 hours).
Instructions
Enable capability token and readable secret protection on an owned link (Pro plan required). Returns the share URL (with #cap=...) and the human-readable secret code. If label is omitted, the first owned link returned by links is protected. If ttl is omitted, protection lasts 24 hours. Calling this on an already-protected link replaces the existing credentials, so previous share URLs stop working. To rotate credentials instead, use renew_link; to change only the duration, use update_ttl.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Optional protection duration (e.g. 24h, 3d, 7d); defaults to 24 hours. | |
| label | No | Label of the link to protect (optional; defaults to the first owned link returned by links). |