viakite
Dashboard

API/Public pages/The project's public pages and share tokens

The project's public pages and share tokens

GET/v1/projects/{project}/shares
Secret keyNeeds analytics.viewapi.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Query parameters

limitinteger1–200default 50
How many rows to return, 1 to 200.
cursorstring
The next_cursor of the previous page. Opaque.

Responses

A page of shares, oldest first.

dataShare[]required
A public page or a share token.
Show 19 fields
idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
project_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
kindstringrequired
page: a public page on its own subdomain; token: an st_… token for components.
pagetoken
titlestringrequired
slugstring
A page's subdomain.
urlstring
A page's address: its verified custom domain, else its subdomain.
tokenstring
A share token's whole value; only in the answer to create.
token_hintstring
A share token's last four characters.
allowed_reportsstring[]required
A report a share can allow.
overviewrealtimesourcespagesjourneyslocationsdevicesgoalsfunnels
allowed_dimensionsstring[]required
has_passwordbooleanrequired
expires_atstring · date-time | nullrequired
is_indexedbooleanrequired
viewer_limitinteger | nullrequired
at_limitstringrequired
What a page does for a new viewer past its viewer limit.
keep_showingpause
custom_domainobject | nullrequired
Show 6 fields
domainstringrequired
cname_targetstringrequired
The host the domain's CNAME record must point to.
statusstringrequired
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.
pendingactivefailed
verified_atstring · date-time | nullrequired
When the domain was first seen pointing to Viakite.
checked_atstring · date-time | nullrequired
The last DNS check; null before the first.
foundstringrequired
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_atstring · date-time | nullrequired
When Viakite staff turned the page or token off; it is not served while set (share_disabled, 410).
created_atstring · date-timerequired
A time in UTC, ISO 8601.
updated_atstring · date-timerequired
A time in UTC, ISO 8601.
next_cursorstring
Example response
1{
2 "data": [
3 {
4 "id": "shr_01JD8Q2M4W9XK3T7B5",
5 "project_id": "prj_01JD8Q2M4W9XK3T7B5",
6 "kind": "page",
7 "title": "string",
8 "slug": "string",
9 "url": "https://example.com/hooks/viakite",
10 "token": "string",
11 "token_hint": "string",
12 "allowed_reports": [
13 "overview"
14 ],
15 "allowed_dimensions": [
16 "string"
17 ],
18 "has_password": true,
19 "expires_at": "2026-11-21T09:30:00Z",
20 "is_indexed": true,
21 "viewer_limit": 1,
22 "at_limit": "keep_showing",
23 "custom_domain": {
24 "domain": "stats.example.com",
25 "cname_target": "cname.p.vk.viabio.me",
26 "status": "pending",
27 "verified_at": "2026-11-21T09:30:00Z",
28 "checked_at": "2026-11-21T09:30:00Z",
29 "found": "string"
30 },
31 "disabled_at": "2026-11-21T09:30:00Z",
32 "created_at": "2026-11-21T09:30:00Z",
33 "updated_at": "2026-11-21T09:30:00Z"
34 }
35 ],
36 "next_cursor": "string"
37}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
404not_found