Create a public page or a share token
POST/ v1/ projects/ {project}/ shares
A token's st_… value is in this answer once and never again. A page counts against the plan's public pages: on Free a second page answers page_limit_reached (402); on a paid plan pages beyond the plan's are billed by the day, unless a spend cap set to stop was reached (spend_cap_reached, 402).
Path parameters
project
The project's id (
prj_…).Body
kind
page: a public page on its own subdomain; token: an st_… token for components.pagetokentitle
slug
A page's subdomain: 3 to 40 lower-case letters, digits or dashes.
allowed_reports
A report a share can allow.
overviewrealtimesourcespagesjourneyslocationsdevicesgoalsfunnelsallowed_dimensions
password
A page's password, 8 to 200 characters; none when empty.
expires_at
is_indexed
viewer_limit
at_limit
What a page does for a new viewer past its viewer limit.
keep_showingpauseResponses
The new share; token is set for a share token.
id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).project_id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).kind
page: a public page on its own subdomain; token: an st_… token for components.pagetokentitle
slug
A page's subdomain.
url
A page's address: its verified custom domain, else its subdomain.
token
A share token's whole value; only in the answer to create.
token_hint
A share token's last four characters.
allowed_reports
A report a share can allow.
overviewrealtimesourcespagesjourneyslocationsdevicesgoalsfunnelsallowed_dimensions
has_password
expires_at
is_indexed
viewer_limit
at_limit
What a page does for a new viewer past its viewer limit.
keep_showingpausecustom_domain
Show 6 fieldsHide fields
domain
cname_target
The host the domain's CNAME record must point to.
status
pending: its CNAME not seen yet. active: it points to Viakite and the page is served there. failed: it stopped pointing to Viakite (three checks in a row), or never did within 72 hours of being added; checks go on, and it is active again once its CNAME is right.pendingactivefailedverified_at
When the domain was first seen pointing to Viakite.
checked_at
The last DNS check; null before the first.
found
What the domain pointed to at the last check that didn't find Viakite; empty when it had no record or the check passed.
disabled_at
When Viakite staff turned the page or token off; it is not served while set (
share_disabled, 410).created_at
A time in UTC, ISO 8601.
updated_at
A time in UTC, ISO 8601.
Example response
1{2"id": "shr_01JD8Q2M4W9XK3T7B5",3"project_id": "prj_01JD8Q2M4W9XK3T7B5",4"kind": "page",5"title": "string",6"slug": "string",7"url": "https://example.com/hooks/viakite",8"token": "string",9"token_hint": "string",10"allowed_reports": [11"overview"12],13"allowed_dimensions": [14"string"15],16"has_password": true,17"expires_at": "2026-11-21T09:30:00Z",18"is_indexed": true,19"viewer_limit": 1,20"at_limit": "keep_showing",21"custom_domain": {22"domain": "stats.example.com",23"cname_target": "cname.p.vk.viabio.me",24"status": "pending",25"verified_at": "2026-11-21T09:30:00Z",26"checked_at": "2026-11-21T09:30:00Z",27"found": "string"28},29"disabled_at": "2026-11-21T09:30:00Z",30"created_at": "2026-11-21T09:30:00Z",31"updated_at": "2026-11-21T09:30:00Z"32}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
validation_error | |
slug_taken | |
page_limit_reached | |
spend_cap_reached | |
forbidden | |
not_found |