viakite
Dashboard

API/Goals and settings/The shared segments and the caller's own

The shared segments and the caller's own

GET/v1/projects/{project}/segments
Secret keyus.api.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, oldest first.

dataSegment[]required
A saved set of filters; match all is AND, any is OR.
Show 9 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).
owner_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
visibilitystringrequired
Personal (only its owner sees it) or shared with the team.
personalshared
namestringrequired
matchstringrequired
allany
filtersSegmentFilter[]required
One filter of a segment.
Show 3 fields
dimensionstringrequiredup to 255 chars
operatorstringrequired
isis_notcontainsstarts_withregex
valuesstring[]required1–100 items
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": "seg_01JD8Q2M4W9XK3T7B5",
5 "project_id": "prj_01JD8Q2M4W9XK3T7B5",
6 "owner_id": "id_01JD8Q2M4W9XK3T7B5",
7 "visibility": "personal",
8 "name": "Production",
9 "match": "all",
10 "filters": [
11 {
12 "dimension": "country",
13 "operator": "is",
14 "values": [
15 "string"
16 ]
17 }
18 ],
19 "created_at": "2026-11-21T09:30:00Z",
20 "updated_at": "2026-11-21T09:30:00Z"
21 }
22 ],
23 "next_cursor": "string"
24}