What it does
Create a view link for a site. The URL is shown once. The link does nothing while the site is offline. Review links are paused. It expires after 30 days; expires_at (ISO date) sets another date, and null means no expiry. kind owner_test makes an owner test link for you, the agent: opening it in a browser is an owner visit to this one site, so you can check that owner actions save and owner_browser tables load without asking the owner. It works on public and private sites, needs the run and share groups, and is refused for a member's agent. It lasts 2 hours (expires_at may be sooner, never later or null) and opens any number of times until then. It never reaches account settings, members, billing or another site, design mode and commands stay off, and every write is logged as owner_test with the link id. It is not shown to the owner in /hive. Keep the URL to yourself; revoke it when done.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
kindrequired | one of: view, owner_test | view: a link that opens a private site without signing in. owner_test: an owner visit to this one site for you, the agent, to test owner actions and owner-only tables; logged as owner_test, not shown on /hive. |
expires_at | string or null | When the link stops working, as an ISO date. Default 30 days; null means it never expires. An owner_test link lasts 2 hours at most (the default), never null. |
idempotency_key | string | Any unique string (1-200 printable ASCII). A retry with the same key and arguments returns the first call's result instead of running again. Same as the Idempotency-Key header. |
Example
Call create_site_link with these arguments:
{
"site_id": "01a1…",
"kind": "view",
"expires_at": "2026-12-31T23:00:00Z"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- View linksShare a private site without making it public.
- Let your agent test as youA 2-hour owner visit so your agent can check owner-only parts itself.