share_create
Generate a shareable link for a file with control over access mode, permission, and expiry. Supports restricted access by email or domain.
Instructions
Create a public share link for a file so someone outside the workspace can view it. Returns the full link ONCE. accessMode "link" = anyone with the link; "restricted" = only allowlisted emails/domains (verified by emailed code). permission "view" or "download".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | UUID of the file to share | |
| accessMode | No | link (anyone) | restricted (specific people). Default link. | |
| permission | No | view | download. Default view. | |
| allowComments | No | Allow viewers to comment (after verifying their email). Default false. | |
| allowedEmails | No | restricted mode: allowlisted emails | |
| expiresInDays | No | Optional. Link expires after N days (omit for no expiry). | |
| allowedDomains | No | restricted mode: allowlisted domains, e.g. buddyboss.com |