pagehive

create_site_link

Create a view link for a site.

Sharing and keysChanges dataAll plans

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.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
kindrequiredone of: viewview: a link that opens a private site without signing in.
expires_atstring or nullWhen the link stops working, as an ISO date. Default 30 days; null means it never expires.
idempotency_keystringAny 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.