viakite
Dashboard

API/Goals and settings/The channel rules in use, or the defaults

The channel rules in use, or the defaults

GET/v1/projects/{project}/channel-rules
Secret keyus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Responses

The ChannelRules.

rulesChannelRule[]required
The channel of a visit whose field matches.
Show 4 fields
channelstringrequiredup to 50 chars
fieldstringrequired
What a rule tests; referrer_type is search_engine, social_network or ai_assistant.
click_idutm_mediumutm_sourceutm_campaignreferrer_domainreferrer_type
operatorstringrequired
isstarts_withcontainsexists
valuesstring[]up to 100 items
1 to 100 values; none with exists.
otherwisestringrequired
is_defaultbooleanrequired
True while the project uses Viakite's rules.
updated_atstring · date-time | nullrequired
Example response
1{
2 "rules": [
3 {
4 "channel": "string",
5 "field": "click_id",
6 "operator": "is",
7 "values": [
8 "string"
9 ]
10 }
11 ],
12 "otherwise": "Direct",
13 "is_default": true,
14 "updated_at": "2026-11-21T09:30:00Z"
15}