Share a website, app, agent, or skill by email
share_serviceShare a website, an app, an agent, or a skill with specific people by email, whatever its access mode — sharing does not change who else can reach it. Each address is mailed a link from Valet that opens it; the recipient needs no Valet account of their own, only the link, so anyone holding the email can open it and forwarding it forwards access. An app runs server code, so a person it is shared with can use everything the app does, including anything that changes data. An agent can be shared only on a server with agent outside access turned on. Sharing again with an address that already has access re-sends the same link rather than creating a second one. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind you mean. Omit to share whatever the name holds; give it to have a name holding another kind refused. | |
| name | Yes | Required. The website's, app's, agent's, or skill's name. | |
| emails | Yes | Required. The email addresses to share it with, at most 10 at a time. Sharing again with an address that already has access re-sends the same link rather than creating a second one. | |
| message | No | An optional note included in the email, shown to the recipient as a quote beside the link. At most 500 characters. | |
| org_name | No | The Valet organization the website, app, agent, or skill belongs to. Omit to use the organization the account joined first. | |
| access_ttl | No | How long the first open starts access for, after which the link stops working, such as 30m or 7d (units: s, m, h, d). Omit for access that never expires this way. Composes with expires_in: the unopened deadline governs until the first open replaces it. | |
| expires_in | No | How long from now the link works if nobody has opened it yet, such as 24h or 7d (units: s, m, h, d). Omit for a link that never expires this way. |