Create a share link
artifact_site_shareCreate a reader link for an existing artifact, choosing public, signed-in, email-restricted, or passcode access. Returns the new link and any passcode, with original visibility unchanged.
Instructions
Create a reader link for an existing remote artifact when the user wants to share a report or page. Choose public, signed-in, email-restricted or passcode access explicitly. A public link opens only that share URL; the original artifact visibility stays unchanged. Returns the new link and any generated passcode; passcodes are shown once, while new link addresses can be retrieved later. Requires owner permission. Use get_site include:[shares] to inspect existing sharing records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Share role; edit requires sign-in and the latest version. | view |
| slug | Yes | Artifact identifier returned by find/publish, or the slug in its /s/ URL. Not a local path. | |
| label | No | Optional name to distinguish this link. | |
| policy | Yes | Required access policy: public, login, people, or passcode; email is a compatibility alias. | |
| passcode | No | Only for passcode policy; omitted means generate one. | |
| tenant_id | No | Destination tenant for creation; defaults to the account tenant. | |
| versionId | No | Pin a view/comment link to this version; omit for latest. | |
| share_token | No | Token from a user-provided share URL; carries only that share permission. | |
| expiresInDays | No | Optional expiration in days. |