kenso 0.1.40 → 0.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/README.md CHANGED
@@ -22,7 +22,7 @@ To run it once without installing, use `npx kenso --version`.
22
22
 
23
23
  ```bash
24
24
  echo $KEY | kenso auth login --with-key
25
- kenso workspace list --q acme
25
+ kenso workspace list --search acme
26
26
  kenso workspace use 1234
27
27
  kenso campaigns list --limit 5
28
28
  kenso contacts import --campaign 812 --file leads.csv --dry-run
@@ -64,6 +64,7 @@ Every page is in the package and prints offline with `kenso docs <topic>`.
64
64
  | [CRM (beta)](crm.md) | `crm` | Accounts, people, opportunities and CRM sync |
65
65
  | [Studio (beta)](studio.md) | `studio` | Pull, push, validate, preview and fill templates |
66
66
  | [Agent work (beta)](work.md) | `work` | My agent: your own coding agent writes Kenso AI work with `kenso work run`, or pull and submit |
67
+ | [Webhooks](webhooks.md) | `webhooks` | Build a webhook handler locally: `kenso webhooks listen --forward-to`, `trigger`, the signature |
67
68
  | [Coding agents](agents.md) | `agents` | Claude Code, Codex, Cursor, the Agent Skill, environment variables, sandboxes |
68
69
  | Command reference | `reference` | Every command with its flags, generated from the CLI at build time: `kenso docs reference`, or `docs/reference.md` in the installed package |
69
70
 
package/docs/auth.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The CLI calls the Kenso API with a Kenso API key (`ken_` plus 43 characters). It sends the key as `Authorization: Bearer <key>` and never prints it, logs it or puts it in an error.
4
4
 
5
+ `kenso login`, `kenso logout` and `kenso whoami` are the same commands as `kenso auth login`, `kenso auth logout` and `kenso auth status`.
6
+
5
7
  ## Log in with an API key
6
8
 
7
9
  1. In app.ken.so, go to Settings > Integrations > API keys and create a key.
@@ -18,7 +20,7 @@ The CLI checks the key with `GET /v1/me`, then saves it to `~/.kenso/config.json
18
20
  {"profile":"default","email":"you@acme.io","workspaceId":"1234","workspaceCount":1}
19
21
  ```
20
22
 
21
- When the key reaches several workspaces and you did not pass `--workspace`, no workspace is saved and the output carries `"next":"kenso workspace list --q <name>"`. A key in the wrong format exits 2 (`invalid_key_format`). A key Kenso rejects exits 3.
23
+ When the key reaches several workspaces and you did not pass `--workspace`, no workspace is saved and the output carries `"next":"kenso workspace list --search <name>"`. A key in the wrong format exits 2 (`invalid_key_format`). A key Kenso rejects exits 3.
22
24
 
23
25
  ## Browser login
24
26
 
@@ -56,12 +58,12 @@ A key reaches every workspace its user belongs to. Each command runs in one work
56
58
  3. the workspace saved in the profile (`kenso workspace use`)
57
59
 
58
60
  ```bash
59
- kenso workspace list --q acme
61
+ kenso workspace list --search acme
60
62
  kenso workspace use 1234
61
63
  kenso campaigns list --workspace 5678
62
64
  ```
63
65
 
64
- `workspace list` prints one page and says on stderr when there are more: add `--all` for every page. A command that needs a workspace when none is picked fails with `workspace_required` (exit 2) and `"next":"kenso workspace list --q <name>"`.
66
+ `workspace list` prints one page and says on stderr when there are more: add `--all` for every page. A command that needs a workspace when none is picked fails with `workspace_required` (exit 2) and `"next":"kenso workspace list --search <name>"`.
65
67
 
66
68
  ## Profiles
67
69
 
@@ -6,7 +6,9 @@ Every command follows one contract, so a script or an agent can parse any of the
6
6
 
7
7
  - **stdout carries data only.** Progress, warnings, notices and errors go to stderr.
8
8
  - No colors, spinners or pagers. On a terminal you get readable tables; in a pipe you get JSON.
9
- - The CLI never prompts. A batch command (an import, update, remove, tag or `--each` write) takes `--yes`; without it, the command plans or refuses. A single generated write, such as `kenso tags delete --tag-id 7`, and a write through `kenso api` or `kenso mcp call` send at once: add `--dry-run` to print the request first (it sends nothing), then run the command without it.
9
+ - A batch command (an import, update, remove, tag or `--each` write) takes `--yes`; without it, the command plans or refuses.
10
+ - A command that deletes, archives or removes, such as `kenso tags delete --tag-id 7`, `kenso campaigns archive` or `kenso api DELETE /v1/tags/7`, needs `--yes` too. Without it, a person at a terminal is asked to confirm; anywhere else (a pipe, a script, CI, a coding agent) it sends nothing and fails with `confirmation_required`, whose `next` is the same command with `--yes`.
11
+ - Any other single write, such as `kenso tags create` or a write through `kenso api` or `kenso mcp call`, sends at once: add `--dry-run` to print the request first (it sends nothing), then run the command without it.
10
12
  - A command with no dry run, such as `kenso contacts export`, `kenso auth logout` or `kenso workspace use`, refuses `--dry-run` with `usage_error` (exit 2) and does nothing. Its help ends with `No --dry-run`, and `kenso describe <resource> <action>` shows `"dryRun": false`.
11
13
 
12
14
  ## Formats
@@ -18,7 +20,7 @@ Every command follows one contract, so a script or an agent can parse any of the
18
20
  | A batch run | key-value lines | one JSON summary object |
19
21
  | No content (HTTP 204) | nothing | nothing |
20
22
 
21
- `-o` or `--output` picks the format: `json`, `ndjson`, `table` or `ids`.
23
+ `-o` or `--output` picks the format: `json`, `ndjson`, `table` or `ids`. `--json` is the same as `-o json`.
22
24
 
23
25
  - `-o json` on a list prints one JSON array. On a terminal, `-o json` pretty-prints an object.
24
26
  - `-o ids` prints one id per line, ready for `--ids -`. Items without an `id` are skipped with one warning.
@@ -32,7 +34,7 @@ kenso contacts list --campaign-id 812 --all -o ids
32
34
  ## Shape the output
33
35
 
34
36
  - `--fields a,b.c` keeps only those fields (dots reach into nested objects).
35
- - `--query <JMESPath>` filters or reshapes in-process, so you need no `jq`. On a list it sees the whole list.
37
+ - `--query <JMESPath>` filters or reshapes in-process, so you need no `jq`. On a list it sees the whole list. There is no `--jq`: `--query` takes JMESPath, not jq syntax.
36
38
  - Neither applies to a batch summary, which always prints in full.
37
39
 
38
40
  ```bash
@@ -64,7 +66,7 @@ When stderr is not a terminal, an error is one JSON line on stderr:
64
66
  | `message` | yes | One sentence for a person |
65
67
  | `field` | no | The flag or input field at fault |
66
68
  | `hint` | no | What to change |
67
- | `next` | no | The exact command to run next, such as `kenso auth login`, `kenso workspace list --q <name>` or the same command with `--yes` |
69
+ | `next` | no | The exact command to run next, such as `kenso auth login`, `kenso workspace list --search <name>` or the same command with `--yes` |
68
70
  | `httpStatus` | no | The API's HTTP status, when the API answered |
69
71
  | `requestId` | no | The API's request id: quote it when you contact Kenso support |
70
72
 
@@ -85,7 +87,7 @@ The CLI looks at the HTTP status first, then at the API's own `error.code`, whic
85
87
  | 5xx | `server_error`, after retries where they are safe | 8 |
86
88
  | anything else | `http_error` | 1 |
87
89
 
88
- Two API codes change the exit code: `workspace_required` exits 2 with `"next":"kenso workspace list --q <name>"`, and `limit_reached` (the plan's or the campaign's lead limit) exits 6.
90
+ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"kenso workspace list --search <name>"`, and `limit_reached` (the plan's or the campaign's lead limit) exits 6.
89
91
 
90
92
  ### Errors from the CLI itself
91
93
 
@@ -95,6 +97,8 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
95
97
  | `unknown_command` | 2 | No such command; `hint` suggests the closest one |
96
98
  | `unknown_flag`, `invalid_flag`, `invalid_flag_value`, `unexpected_argument` | 2 | A flag or argument the command does not take |
97
99
  | `invalid_query` | 2 | `--query` is not valid JMESPath |
100
+ | `confirmation_required` | 2 | A delete, archive or remove ran without `--yes` where nobody can confirm: nothing was sent; `next` adds `--yes` |
101
+ | `cancelled` | 2 | A person answered no to the confirmation: nothing was sent |
98
102
  | `file_unreadable` | 2 | An input file is missing or cannot be parsed |
99
103
  | `config_invalid` | 2 | `~/.kenso/config.json` is not valid JSON: fix or delete it |
100
104
  | `feature_not_enabled` | 2 | Every action of the resource is a beta command your workspace has not enabled |
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.40 (API contracts 5dc7eaafef1a) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.43 (API contracts 5dc7eaafef1a) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1600 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
5
+ 1605 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
6
6
 
7
7
  ## Global flags
8
8
 
@@ -11,10 +11,11 @@ Generated from kenso 0.1.40 (API contracts 5dc7eaafef1a) by `scripts/build-refer
11
11
  | `--profile <name>` | Use a saved profile (or KENSO_PROFILE) |
12
12
  | `--workspace <id>` | Workspace for this command (or KENSO_WORKSPACE_ID) |
13
13
  | `-o, --output <format>` | json, ndjson, table or ids (default: table on a terminal, JSON when piped) |
14
+ | `--json` | Same as -o json |
14
15
  | `--fields <a,b.c>` | Keep only these fields |
15
16
  | `--query <JMESPath>` | Filter or reshape the output in-process |
16
17
  | `-v, --verbose` | Print each request to stderr (keys redacted) |
17
- | `-y, --yes` | Apply a write |
18
+ | `-y, --yes` | Apply a write; a delete, archive or remove needs it |
18
19
  | `--dry-run` | Show what a write would do and change nothing |
19
20
  | `--progress` | Print progress to stderr even when it is not a terminal |
20
21
  | `--all-commands` | Show beta commands in help |
@@ -250,6 +251,8 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
250
251
  - [linkedin-requests](#linkedin-requests) (2)
251
252
  - [linkedin-sequences](#linkedin-sequences) (6)
252
253
  - [lists](#lists) (3)
254
+ - [login](#login) (1)
255
+ - [logout](#logout) (1)
253
256
  - [lookup-badges](#lookup-badges) (1)
254
257
  - [lookups](#lookups) (1)
255
258
  - [loopster-companies](#loopster-companies) (1)
@@ -399,6 +402,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
399
402
  - [webhook-deliveries](#webhook-deliveries) (2)
400
403
  - [webhook-endpoints](#webhook-endpoints) (8)
401
404
  - [webhook-event-types](#webhook-event-types) (1)
405
+ - [webhooks](#webhooks) (2)
402
406
  - [website](#website) (8)
403
407
  - [whatsapp-accounts](#whatsapp-accounts) (5)
404
408
  - [whatsapp-settings](#whatsapp-settings) (2)
@@ -413,6 +417,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
413
417
  - [white-label-hostname](#white-label-hostname) (3)
414
418
  - [white-label-intake-links](#white-label-intake-links) (3)
415
419
  - [white-label-intake-submissions](#white-label-intake-submissions) (1)
420
+ - [whoami](#whoami) (1)
416
421
  - [work](#work) (5)
417
422
  - [workflow-builder](#workflow-builder) (6)
418
423
  - [workflow-estimates](#workflow-estimates) (1)
@@ -692,7 +697,7 @@ Flags: `--account-id` (required), `--each`, `--concurrency`.
692
697
 
693
698
  List accounts in the current workspace. `GET /v1/accounts` (a list). Beta: needs `accounts`.
694
699
 
695
- Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--ids`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--q`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
700
+ Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--ids`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--search`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
696
701
 
697
702
  ### kenso accounts merge
698
703
 
@@ -710,7 +715,7 @@ Flags: `--account-id` (required), `--force`, `--no-force`, `--data`, `--each`, `
710
715
 
711
716
  Search accounts in the current workspace with filter conditions and AND / OR groups. `POST /v1/accounts/search`. Beta: needs `accounts`.
712
717
 
713
- Flags: `--q`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--time-zone`, `--include-import-only`, `--no-include-total`, `--no-include-import-only`, `--data`, `--each`, `--concurrency`.
718
+ Flags: `--search`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--time-zone`, `--include-import-only`, `--no-include-total`, `--no-include-import-only`, `--data`, `--each`, `--concurrency`.
714
719
 
715
720
  ### kenso accounts update
716
721
 
@@ -1664,7 +1669,7 @@ Flags: `--action`, `--cursor`, `--limit`, `--occurred-after`, `--occurred-before
1664
1669
 
1665
1670
  ### kenso auth login
1666
1671
 
1667
- Save an API key (--with-key reads it from stdin: pipe a variable in, no check first). `GET /v1/me`.
1672
+ Log in through the browser, or save an API key from stdin with --with-key. `GET /v1/me`.
1668
1673
 
1669
1674
  Flags: `--device-name`, `--no-browser`, `--with-key`.
1670
1675
 
@@ -1774,7 +1779,7 @@ Flags: `--file`, `--reason`, `--data`, `--each`, `--concurrency`.
1774
1779
 
1775
1780
  List blocklist entries. `GET /v1/blocklist-entries` (a list).
1776
1781
 
1777
- Flags: `--cursor`, `--has-reason`, `--include-counts`, `--include-total`, `--limit`, `--q`, `--sort`, `--source`, `--type`, `--value`, `--no-has-reason`, `--no-include-counts`, `--no-include-total`, `--all`, `--each`, `--concurrency`.
1782
+ Flags: `--cursor`, `--has-reason`, `--include-counts`, `--include-total`, `--limit`, `--search`, `--sort`, `--source`, `--type`, `--value`, `--no-has-reason`, `--no-include-counts`, `--no-include-total`, `--all`, `--each`, `--concurrency`.
1778
1783
 
1779
1784
  ### kenso blocklist-entries update
1780
1785
 
@@ -2050,7 +2055,7 @@ Flags: `--build-file-id` (required), `--each`, `--concurrency`.
2050
2055
 
2051
2056
  Search parsed text in workspace build files. `GET /v1/build-sessions/files/search` (a list).
2052
2057
 
2053
- Flags: `--cursor`, `--limit`, `--q`, `--session-id`, `--all`, `--each`, `--concurrency`.
2058
+ Flags: `--cursor`, `--limit`, `--search`, `--session-id`, `--all`, `--each`, `--concurrency`.
2054
2059
 
2055
2060
  ## build-sessions
2056
2061
 
@@ -2160,7 +2165,7 @@ Flags: `--provider` (required), `--each`, `--concurrency`.
2160
2165
 
2161
2166
  ### kenso calendar-connections get-availability
2162
2167
 
2163
- Return open slots. With provider omitted or "ken", a member whose own Google or Outlook calendar is connected through Kenso Workspace, in a workspace with the meetings feature, gets slots from Kenso's availability engine, marked source "ken" (DEV-1956). A member whose Kenso Workspace calendar needs reconnecting gets status "unavailable" with reason "calendar_needs_reconnect" and source "ken". Anyone else, and any named provider, gets that provider's connection as before; a "ken" asked for by name that does not apply is a 400 that says what it needs. `GET /v1/calendar/availability`.
2168
+ Return open slots. With provider omitted or "ken", a member whose own Google or Outlook calendar is connected through Kenso Workspace, in a workspace with the meetings feature, gets slots from Kenso's availability engine, marked source "ken". A member whose Kenso Workspace calendar needs reconnecting gets status "unavailable" with reason "calendar_needs_reconnect" and source "ken". Anyone else, and any named provider, gets that provider's connection as before; a "ken" asked for by name that does not apply is a 400 that says what it needs. `GET /v1/calendar/availability`.
2164
2169
 
2165
2170
  Flags: `--from`, `--meeting-length-minutes`, `--provider`, `--time-zone`, `--to`, `--each`, `--concurrency`.
2166
2171
 
@@ -2832,7 +2837,7 @@ Flags: `--campaign-id` (required), `--each`, `--concurrency`.
2832
2837
 
2833
2838
  List campaigns. `GET /v1/campaigns` (a list).
2834
2839
 
2835
- Flags: `--cursor`, `--include-tag-ids`, `--kind`, `--limit`, `--q`, `--status`, `--no-include-tag-ids`, `--all`, `--each`, `--concurrency`.
2840
+ Flags: `--cursor`, `--include-tag-ids`, `--kind`, `--limit`, `--search`, `--status`, `--no-include-tag-ids`, `--all`, `--each`, `--concurrency`.
2836
2841
 
2837
2842
  ### kenso campaigns list-ai-workflows
2838
2843
 
@@ -2946,7 +2951,7 @@ Flags: `--campaign-id` (required), `--each`, `--concurrency`.
2946
2951
 
2947
2952
  Update a campaign. `PATCH /v1/campaigns/{campaignId}`.
2948
2953
 
2949
- Flags: `--campaign-id` (required), `--name`, `--contact-limit`, `--status`, `--sending-start-time`, `--sending-end-time`, `--sending-timezone`, `--max-emails-per-day`, `--owner-member-id`, `--stop-on-reply`, `--track-clicks`, `--track-opens`, `--unsubscribe-link`, `--send-as-plain-text`, `--protect-account-plays`, `--ramp-up-days`, `--stop-company-on-reply`, `--group-same-company-sends`, `--new-leads-first`, `--catch-all-lane-enabled`, `--booking-meeting-type-id`, `--reply-to`, `--kind`, `--role-id`, `--source-language`, `--language-mode`, `--language-fallback`, `--mode`, `--auto-launch-when-ready`, `--no-stop-on-reply`, `--no-track-clicks`, `--no-track-opens`, `--no-unsubscribe-link`, `--no-send-as-plain-text`, `--no-protect-account-plays`, `--no-stop-company-on-reply`, `--no-group-same-company-sends`, `--no-new-leads-first`, `--no-catch-all-lane-enabled`, `--no-auto-launch-when-ready`, `--data`, `--each`, `--concurrency`.
2954
+ Flags: `--campaign-id` (required), `--name`, `--contact-limit`, `--sending-start-time`, `--sending-end-time`, `--sending-timezone`, `--max-emails-per-day`, `--owner-member-id`, `--stop-on-reply`, `--track-clicks`, `--track-opens`, `--unsubscribe-link`, `--send-as-plain-text`, `--protect-account-plays`, `--ramp-up-days`, `--stop-company-on-reply`, `--group-same-company-sends`, `--new-leads-first`, `--catch-all-lane-enabled`, `--booking-meeting-type-id`, `--reply-to`, `--role-id`, `--source-language`, `--language-mode`, `--language-fallback`, `--mode`, `--auto-launch-when-ready`, `--no-stop-on-reply`, `--no-track-clicks`, `--no-track-opens`, `--no-unsubscribe-link`, `--no-send-as-plain-text`, `--no-protect-account-plays`, `--no-stop-company-on-reply`, `--no-group-same-company-sends`, `--no-new-leads-first`, `--no-catch-all-lane-enabled`, `--no-auto-launch-when-ready`, `--data`, `--each`, `--concurrency`.
2950
2955
 
2951
2956
  ## checkout-sessions
2952
2957
 
@@ -3082,7 +3087,7 @@ Flags: `--provider` (required), `--file-id` (required), `--each`, `--concurrency
3082
3087
 
3083
3088
  Search the caller's own Google Drive or OneDrive files. `GET /v1/cloud-files` (a list). Beta: needs `connected_app_reads`.
3084
3089
 
3085
- Flags: `--cursor`, `--limit`, `--provider`, `--q`, `--all`, `--each`, `--concurrency`.
3090
+ Flags: `--cursor`, `--limit`, `--provider`, `--search`, `--all`, `--each`, `--concurrency`.
3086
3091
 
3087
3092
  ## committee
3088
3093
 
@@ -3130,7 +3135,7 @@ Flags: `--company-id` (required), `--each`, `--concurrency`.
3130
3135
 
3131
3136
  List companies. `GET /v1/companies` (a list).
3132
3137
 
3133
- Flags: `--cursor`, `--domain`, `--limit`, `--q`, `--all`, `--each`, `--concurrency`.
3138
+ Flags: `--cursor`, `--domain`, `--limit`, `--search`, `--all`, `--each`, `--concurrency`.
3134
3139
 
3135
3140
  ## company-data
3136
3141
 
@@ -3160,7 +3165,7 @@ Flags: `--export-id` (required), `--each`, `--concurrency`.
3160
3165
 
3161
3166
  Create a contact export. `POST /v1/contact-exports`.
3162
3167
 
3163
- Flags: `--kind`, `--campaign-id`, `--segment-id`, `--is-qualified`, `--has-valid-email`, `--do-not-contact`, `--q`, `--ready-only`, `--include-emails`, `--include-company`, `--include-click-events`, `--include-total-clicks`, `--occurred-after`, `--occurred-before`, `--list-id`, `--created-after`, `--created-before`, `--max-rows`, `--skip-rows`, `--no-is-qualified`, `--no-has-valid-email`, `--no-do-not-contact`, `--no-ready-only`, `--no-include-emails`, `--no-include-company`, `--no-include-click-events`, `--no-include-total-clicks`, `--data`, `--each`, `--concurrency`.
3168
+ Flags: `--kind`, `--campaign-id`, `--segment-id`, `--is-qualified`, `--has-valid-email`, `--do-not-contact`, `--search`, `--ready-only`, `--include-emails`, `--include-company`, `--include-click-events`, `--include-total-clicks`, `--occurred-after`, `--occurred-before`, `--list-id`, `--created-after`, `--created-before`, `--max-rows`, `--skip-rows`, `--no-is-qualified`, `--no-has-valid-email`, `--no-do-not-contact`, `--no-ready-only`, `--no-include-emails`, `--no-include-company`, `--no-include-click-events`, `--no-include-total-clicks`, `--data`, `--each`, `--concurrency`.
3164
3169
 
3165
3170
  ### kenso contact-exports google-sheet
3166
3171
 
@@ -3296,7 +3301,7 @@ Flags: `--campaign`, `--file`, `--map`, `--out`, `--server-import`, `--template`
3296
3301
 
3297
3302
  List contacts. `GET /v1/contacts` (a list).
3298
3303
 
3299
- Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--q`, `--segment-id`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
3304
+ Flags: `--campaign-id`, `--company-id`, `--created-after`, `--created-before`, `--cursor`, `--do-not-contact`, `--email`, `--is-qualified`, `--limit`, `--search`, `--segment-id`, `--no-do-not-contact`, `--no-is-qualified`, `--all`, `--each`, `--concurrency`.
3300
3305
 
3301
3306
  ### kenso contacts list-website-pages
3302
3307
 
@@ -3338,7 +3343,7 @@ Flags: `--concurrency`, `--ids`, `--out`, `--where`.
3338
3343
 
3339
3344
  Search contacts. `POST /v1/contacts/search`.
3340
3345
 
3341
- Flags: `--company-id`, `--segment-id`, `--email`, `--q`, `--is-qualified`, `--do-not-contact`, `--created-after`, `--created-before`, `--ready-only`, `--awaiting-first-email`, `--sort`, `--direction`, `--limit`, `--cursor`, `--no-is-qualified`, `--no-do-not-contact`, `--no-ready-only`, `--no-awaiting-first-email`, `--data`, `--each`, `--concurrency`.
3346
+ Flags: `--company-id`, `--segment-id`, `--email`, `--search`, `--is-qualified`, `--do-not-contact`, `--created-after`, `--created-before`, `--ready-only`, `--awaiting-first-email`, `--sort`, `--direction`, `--limit`, `--cursor`, `--no-is-qualified`, `--no-do-not-contact`, `--no-ready-only`, `--no-awaiting-first-email`, `--data`, `--each`, `--concurrency`.
3342
3347
 
3343
3348
  ### kenso contacts tag
3344
3349
 
@@ -3380,7 +3385,7 @@ Flags: `--kind`, `--campaign-id`, `--target-leads`, `--sequence-steps`, `--perso
3380
3385
 
3381
3386
  List credit ledger lines. `GET /v1/credits/ledger` (a list).
3382
3387
 
3383
- Flags: `--account-id`, `--action`, `--actor-user-id`, `--campaign-id`, `--category`, `--chat-id`, `--contact-id`, `--cursor`, `--from`, `--limit`, `--list-id`, `--q`, `--run-id`, `--to`, `--trigger`, `--workflow-id`, `--all`, `--each`, `--concurrency`.
3388
+ Flags: `--account-id`, `--action`, `--actor-user-id`, `--campaign-id`, `--category`, `--chat-id`, `--contact-id`, `--cursor`, `--from`, `--limit`, `--list-id`, `--search`, `--run-id`, `--to`, `--trigger`, `--workflow-id`, `--all`, `--each`, `--concurrency`.
3384
3389
 
3385
3390
  ## credit-model-usage
3386
3391
 
@@ -3544,7 +3549,7 @@ Flags: `--connection-id` (required), `--object-type` (required), `--external-id`
3544
3549
 
3545
3550
  Search the CRM live. `GET /v1/crm-connections/{connectionId}/live-records`. Beta: needs `connected_app_reads`.
3546
3551
 
3547
- Flags: `--connection-id` (required), `--limit`, `--object-type`, `--q`, `--each`, `--concurrency`.
3552
+ Flags: `--connection-id` (required), `--limit`, `--object-type`, `--search`, `--each`, `--concurrency`.
3548
3553
 
3549
3554
  ## crm-pipelines
3550
3555
 
@@ -3608,7 +3613,7 @@ Flags: `--campaign-id` (required), `--variable-key` (required), `--each`, `--con
3608
3613
 
3609
3614
  List a campaign's custom variables. `GET /v1/campaigns/{campaignId}/custom-variables` (a list).
3610
3615
 
3611
- Flags: `--campaign-id` (required), `--cursor`, `--limit`, `--q`, `--all`, `--each`, `--concurrency`.
3616
+ Flags: `--campaign-id` (required), `--cursor`, `--limit`, `--search`, `--all`, `--each`, `--concurrency`.
3612
3617
 
3613
3618
  ### kenso custom-variables update
3614
3619
 
@@ -5134,7 +5139,7 @@ Flags: `--account-id`, `--account`, `--person-id`, `--skill`, `--purpose`, `--bu
5134
5139
 
5135
5140
  Search Knowledge facts and their source text. `POST /v1/knowledge/search`. Beta: needs `knowledge`.
5136
5141
 
5137
- Flags: `--q`, `--account-id`, `--person-id`, `--observed-after`, `--observed-before`, `--limit`, `--include-evidence`, `--no-include-evidence`, `--data`, `--each`, `--concurrency`.
5142
+ Flags: `--search`, `--account-id`, `--person-id`, `--observed-after`, `--observed-before`, `--limit`, `--include-evidence`, `--no-include-evidence`, `--data`, `--each`, `--concurrency`.
5138
5143
 
5139
5144
  ## knowledge-changes
5140
5145
 
@@ -5226,7 +5231,7 @@ Flags: `--file-id` (required), `--base-version`, `--data`, `--each`, `--concurre
5226
5231
 
5227
5232
  List files, newest first, without their bodies. `GET /v1/knowledge/files` (a list). Beta: needs `knowledge`.
5228
5233
 
5229
- Flags: `--account-id`, `--active`, `--cursor`, `--folder-id`, `--level`, `--limit`, `--person-id`, `--q`, `--status`, `--tag`, `--no-active`, `--all`, `--each`, `--concurrency`.
5234
+ Flags: `--account-id`, `--active`, `--cursor`, `--folder-id`, `--level`, `--limit`, `--person-id`, `--search`, `--status`, `--tag`, `--no-active`, `--all`, `--each`, `--concurrency`.
5230
5235
 
5231
5236
  ### kenso knowledge-files reset
5232
5237
 
@@ -5688,7 +5693,7 @@ Flags: `--linkedin-account-id` (required), `--display-name`, `--timezone`, `--wo
5688
5693
 
5689
5694
  List the workspace's LinkedIn connections. `GET /v1/linkedin-connections` (a list). Beta: needs one of `linkedin_connections_import`, `linkedin_network`.
5690
5695
 
5691
- Flags: `--company-domain`, `--cursor`, `--group`, `--icp-status`, `--import-status`, `--job-changed`, `--limit`, `--linkedin-account-id`, `--match-status`, `--q`, `--seniority`, `--sort`, `--tier`, `--warm-path`, `--no-job-changed`, `--no-warm-path`, `--all`, `--each`, `--concurrency`.
5696
+ Flags: `--company-domain`, `--cursor`, `--group`, `--icp-status`, `--import-status`, `--job-changed`, `--limit`, `--linkedin-account-id`, `--match-status`, `--search`, `--seniority`, `--sort`, `--tier`, `--warm-path`, `--no-job-changed`, `--no-warm-path`, `--all`, `--each`, `--concurrency`.
5692
5697
 
5693
5698
  ### kenso linkedin-connections promote
5694
5699
 
@@ -5860,6 +5865,20 @@ List a campaign's lists. `GET /v1/campaigns/{campaignId}/lists` (a list).
5860
5865
 
5861
5866
  Flags: `--campaign-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
5862
5867
 
5868
+ ## login
5869
+
5870
+ ### kenso login
5871
+
5872
+ Log in through the browser, or save an API key from stdin with --with-key. `GET /v1/me`.
5873
+
5874
+ Flags: `--device-name`, `--no-browser`, `--with-key`.
5875
+
5876
+ ## logout
5877
+
5878
+ ### kenso logout
5879
+
5880
+ Remove a saved profile and its key.
5881
+
5863
5882
  ## lookup-badges
5864
5883
 
5865
5884
  ### kenso lookup-badges get
@@ -5912,7 +5931,7 @@ Flags: `--message-id` (required), `--each`, `--concurrency`.
5912
5931
 
5913
5932
  Search your own mailbox. `GET /v1/mail/messages`. Beta: needs `connected_app_reads`.
5914
5933
 
5915
- Flags: `--limit`, `--q`, `--each`, `--concurrency`.
5934
+ Flags: `--limit`, `--search`, `--each`, `--concurrency`.
5916
5935
 
5917
5936
  ## market-profile
5918
5937
 
@@ -5960,7 +5979,7 @@ Flags: `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
5960
5979
 
5961
5980
  ### kenso mcp call
5962
5981
 
5963
- Call a hosted Kenso MCP tool, such as list_skills (no mcp tools first).
5982
+ Call a hosted Kenso MCP tool, such as list_skills.
5964
5983
 
5965
5984
  Arguments: `<tool>`.
5966
5985
 
@@ -6622,7 +6641,7 @@ Flags: `--meeting-id` (required), `--each`, `--concurrency`.
6622
6641
 
6623
6642
  List the meetings the caller can see. `GET /v1/meetings` (a list). Beta: needs `meetings`.
6624
6643
 
6625
- Flags: `--account-id`, `--cursor`, `--from`, `--has-recording`, `--ids`, `--limit`, `--owner-member-id`, `--q`, `--status`, `--to`, `--no-has-recording`, `--all`, `--each`, `--concurrency`.
6644
+ Flags: `--account-id`, `--cursor`, `--from`, `--has-recording`, `--ids`, `--limit`, `--owner-member-id`, `--search`, `--status`, `--to`, `--no-has-recording`, `--all`, `--each`, `--concurrency`.
6626
6645
 
6627
6646
  ### kenso meetings list-sources
6628
6647
 
@@ -7124,7 +7143,7 @@ Flags: `--opportunity-id` (required), `--body-dry-run`, `--no-body-dry-run`, `--
7124
7143
 
7125
7144
  List opportunities in the current workspace. `GET /v1/opportunities` (a list). Beta: needs `opportunities`.
7126
7145
 
7127
- Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--q`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
7146
+ Flags: `--account-id`, `--close-date-after`, `--close-date-before`, `--cursor`, `--limit`, `--owner-member-id`, `--search`, `--sort`, `--source-campaign-id`, `--stage`, `--stage-category`, `--stale-days`, `--all`, `--each`, `--concurrency`.
7128
7147
 
7129
7148
  ### kenso opportunities update
7130
7149
 
@@ -7442,7 +7461,7 @@ Flags: `--person-id` (required), `--each`, `--concurrency`.
7442
7461
 
7443
7462
  Export the people the filters match as CSV. `POST /v1/people/export`. Beta: needs `accounts`.
7444
7463
 
7445
- Flags: `--q`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--data`, `--each`, `--concurrency`.
7464
+ Flags: `--search`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--data`, `--each`, `--concurrency`.
7446
7465
 
7447
7466
  ### kenso people find-emails
7448
7467
 
@@ -7496,7 +7515,7 @@ Flags: `--email`, `--linkedin-url`, `--full-name`, `--first-name`, `--last-name`
7496
7515
 
7497
7516
  List people in the current workspace. `GET /v1/people` (a list). Beta: needs `accounts`.
7498
7517
 
7499
- Flags: `--behavior-tags`, `--cursor`, `--email`, `--has-suggestion`, `--lead-status`, `--limit`, `--linkedin-url`, `--owner-member-id`, `--q`, `--relationship`, `--sort`, `--source`, `--suggested-relationship`, `--suggestion-kind`, `--tag-ids`, `--no-has-suggestion`, `--all`, `--each`, `--concurrency`.
7518
+ Flags: `--behavior-tags`, `--cursor`, `--email`, `--has-suggestion`, `--lead-status`, `--limit`, `--linkedin-url`, `--owner-member-id`, `--search`, `--relationship`, `--sort`, `--source`, `--suggested-relationship`, `--suggestion-kind`, `--tag-ids`, `--no-has-suggestion`, `--all`, `--each`, `--concurrency`.
7500
7519
 
7501
7520
  ### kenso people merge
7502
7521
 
@@ -7520,7 +7539,7 @@ Flags: `--person-id` (required), `--mode`, `--data`, `--each`, `--concurrency`.
7520
7539
 
7521
7540
  Search people in the current workspace with filters. `POST /v1/people/search`. Beta: needs `accounts`.
7522
7541
 
7523
- Flags: `--q`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--no-include-total`, `--data`, `--each`, `--concurrency`.
7542
+ Flags: `--search`, `--on-account`, `--has-email`, `--owner-member-id`, `--has-suggestion`, `--include-import-only`, `--location`, `--sort`, `--limit`, `--cursor`, `--include-total`, `--no-has-email`, `--no-has-suggestion`, `--no-include-import-only`, `--no-include-total`, `--data`, `--each`, `--concurrency`.
7524
7543
 
7525
7544
  ### kenso people set-instagram
7526
7545
 
@@ -7754,7 +7773,7 @@ Flags: `--template-id` (required), `--each`, `--concurrency`.
7754
7773
 
7755
7774
  List prompt templates visible in the current workspace. `GET /v1/prompt-templates` (a list).
7756
7775
 
7757
- Flags: `--cursor`, `--flow`, `--limit`, `--q`, `--scope`, `--all`, `--each`, `--concurrency`.
7776
+ Flags: `--cursor`, `--flow`, `--limit`, `--search`, `--scope`, `--all`, `--each`, `--concurrency`.
7758
7777
 
7759
7778
  ### kenso prompt-templates update
7760
7779
 
@@ -7812,7 +7831,7 @@ Flags: `--prompt-id` (required), `--knowledge-prompt-id`, `--data`, `--each`, `-
7812
7831
 
7813
7832
  List prompts. `GET /v1/prompts` (a list).
7814
7833
 
7815
- Flags: `--campaign-id`, `--cursor`, `--flow`, `--limit`, `--q`, `--segment-id`, `--all`, `--each`, `--concurrency`.
7834
+ Flags: `--campaign-id`, `--cursor`, `--flow`, `--limit`, `--search`, `--segment-id`, `--all`, `--each`, `--concurrency`.
7816
7835
 
7817
7836
  ### kenso prompts test
7818
7837
 
@@ -8162,7 +8181,7 @@ Flags: `--role-id` (required), `--each`, `--concurrency`.
8162
8181
 
8163
8182
  List the workspace's roles. `GET /v1/roles` (a list). Beta: needs `recruiting`.
8164
8183
 
8165
- Flags: `--cursor`, `--limit`, `--q`, `--status`, `--all`, `--each`, `--concurrency`.
8184
+ Flags: `--cursor`, `--limit`, `--search`, `--status`, `--all`, `--each`, `--concurrency`.
8166
8185
 
8167
8186
  ### kenso roles update
8168
8187
 
@@ -8210,7 +8229,7 @@ Flags: `--token` (required), `--each`, `--concurrency`.
8210
8229
 
8211
8230
  Search members across saved lists. `GET /v1/saved-list-members` (a list). Beta: needs `saved_lists`.
8212
8231
 
8213
- Flags: `--cursor`, `--limit`, `--q`, `--all`, `--each`, `--concurrency`.
8232
+ Flags: `--cursor`, `--limit`, `--search`, `--all`, `--each`, `--concurrency`.
8214
8233
 
8215
8234
  ## saved-lists
8216
8235
 
@@ -8272,7 +8291,7 @@ Flags: `--saved-list-id` (required), `--source-id` (required), `--each`, `--conc
8272
8291
 
8273
8292
  List saved lists. `GET /v1/saved-lists` (a list). Beta: needs `saved_lists`.
8274
8293
 
8275
- Flags: `--cursor`, `--icp-tag`, `--kind`, `--limit`, `--q`, `--scope`, `--slug`, `--all`, `--each`, `--concurrency`.
8294
+ Flags: `--cursor`, `--icp-tag`, `--kind`, `--limit`, `--search`, `--scope`, `--slug`, `--all`, `--each`, `--concurrency`.
8276
8295
 
8277
8296
  ### kenso saved-lists list-grants
8278
8297
 
@@ -8284,7 +8303,7 @@ Flags: `--saved-list-id` (required), `--each`, `--concurrency`.
8284
8303
 
8285
8304
  List a saved list's members. `GET /v1/saved-lists/{savedListId}/members` (a list). Beta: needs `saved_lists`.
8286
8305
 
8287
- Flags: `--saved-list-id` (required), `--country`, `--cursor`, `--has-sendable-email`, `--headcount-band`, `--include-total`, `--industry`, `--limit`, `--q`, `--seniority`, `--title`, `--no-has-sendable-email`, `--no-include-total`, `--all`, `--each`, `--concurrency`.
8306
+ Flags: `--saved-list-id` (required), `--country`, `--cursor`, `--has-sendable-email`, `--headcount-band`, `--include-total`, `--industry`, `--limit`, `--search`, `--seniority`, `--title`, `--no-has-sendable-email`, `--no-include-total`, `--all`, `--each`, `--concurrency`.
8288
8307
 
8289
8308
  ### kenso saved-lists refresh
8290
8309
 
@@ -8478,7 +8497,7 @@ Flags: `--import-id` (required), `--each`, `--concurrency`.
8478
8497
 
8479
8498
  List filter values. `GET /v1/search/metadata` (a list).
8480
8499
 
8481
- Flags: `--category`, `--cursor`, `--include-total`, `--limit`, `--q`, `--no-include-total`, `--all`, `--each`, `--concurrency`.
8500
+ Flags: `--category`, `--cursor`, `--include-total`, `--limit`, `--search`, `--no-include-total`, `--all`, `--each`, `--concurrency`.
8482
8501
 
8483
8502
  ### kenso search get-people-facets
8484
8503
 
@@ -8776,7 +8795,7 @@ Flags: `--segment-id` (required), `--version-id` (required), `--each`, `--concur
8776
8795
 
8777
8796
  List a campaign's segments. `GET /v1/campaigns/{campaignId}/segments` (a list).
8778
8797
 
8779
- Flags: `--campaign-id` (required), `--cursor`, `--include-metrics`, `--is-active`, `--limit`, `--q`, `--no-include-metrics`, `--no-is-active`, `--all`, `--each`, `--concurrency`.
8798
+ Flags: `--campaign-id` (required), `--cursor`, `--include-metrics`, `--is-active`, `--limit`, `--search`, `--no-include-metrics`, `--no-is-active`, `--all`, `--each`, `--concurrency`.
8780
8799
 
8781
8800
  ### kenso segments list-versions
8782
8801
 
@@ -9204,7 +9223,7 @@ Flags: `--slug` (required), `--each`, `--concurrency`.
9204
9223
 
9205
9224
  Search the Kenso template library. `GET /v1/studio/starters`. Beta: needs `studio`.
9206
9225
 
9207
- Flags: `--category`, `--featured`, `--needs`, `--q`, `--type`, `--no-featured`, `--each`, `--concurrency`.
9226
+ Flags: `--category`, `--featured`, `--needs`, `--search`, `--type`, `--no-featured`, `--each`, `--concurrency`.
9208
9227
 
9209
9228
  ## subscription
9210
9229
 
@@ -9438,7 +9457,7 @@ Flags: `--thread-id` (required), `--each`, `--concurrency`.
9438
9457
 
9439
9458
  List threads. `GET /v1/threads` (a list).
9440
9459
 
9441
- Flags: `--campaign-id`, `--channel`, `--contact-id`, `--cursor`, `--folder`, `--group-by`, `--has-reminder`, `--inbox-id`, `--interest`, `--is-archived`, `--is-read`, `--is-saved`, `--limit`, `--person-key`, `--q`, `--sort`, `--source`, `--status`, `--tag-ids`, `--no-has-reminder`, `--no-is-archived`, `--no-is-read`, `--no-is-saved`, `--all`, `--each`, `--concurrency`.
9460
+ Flags: `--campaign-id`, `--channel`, `--contact-id`, `--cursor`, `--folder`, `--group-by`, `--has-reminder`, `--inbox-id`, `--interest`, `--is-archived`, `--is-read`, `--is-saved`, `--limit`, `--person-key`, `--search`, `--sort`, `--source`, `--status`, `--tag-ids`, `--no-has-reminder`, `--no-is-archived`, `--no-is-read`, `--no-is-saved`, `--all`, `--each`, `--concurrency`.
9442
9461
 
9443
9462
  ### kenso threads list-messages
9444
9463
 
@@ -10032,6 +10051,20 @@ List webhook event types. `GET /v1/webhook-event-types`.
10032
10051
 
10033
10052
  Flags: `--each`, `--concurrency`.
10034
10053
 
10054
+ ## webhooks
10055
+
10056
+ ### kenso webhooks listen
10057
+
10058
+ Stream the workspace's events and forward them, signed, to a local handler. `GET /v1/event-occurrences`.
10059
+
10060
+ Flags: `--events`, `--forward-to`, `--print-secret`.
10061
+
10062
+ ### kenso webhooks trigger
10063
+
10064
+ Send a sample event of one type through the running kenso webhooks listen. `GET /v1/webhook-event-types`.
10065
+
10066
+ Arguments: `<event-type>`.
10067
+
10035
10068
  ## website
10036
10069
 
10037
10070
  ### kenso website get
@@ -10336,6 +10369,12 @@ List what clients submitted through one intake link, newest first. `GET /v1/whit
10336
10369
 
10337
10370
  Flags: `--intake-link-id` (required), `--cursor`, `--limit`, `--all`, `--each`, `--concurrency`.
10338
10371
 
10372
+ ## whoami
10373
+
10374
+ ### kenso whoami
10375
+
10376
+ Show the key's user, workspace and expiry. API operations: `me.get`, `api-keys.list`.
10377
+
10339
10378
  ## work
10340
10379
 
10341
10380
  ### kenso work pull
@@ -10678,7 +10717,7 @@ Flags: `--workflow-id` (required), `--each`, `--concurrency`.
10678
10717
 
10679
10718
  List the workspace's workflows, newest first. `GET /v1/workflows` (a list). Beta: needs `workflows`.
10680
10719
 
10681
- Flags: `--campaign-id`, `--cursor`, `--default-key`, `--kind`, `--limit`, `--q`, `--status`, `--all`, `--each`, `--concurrency`.
10720
+ Flags: `--campaign-id`, `--cursor`, `--default-key`, `--kind`, `--limit`, `--search`, `--status`, `--all`, `--each`, `--concurrency`.
10682
10721
 
10683
10722
  ### kenso workflows publish
10684
10723
 
@@ -10710,7 +10749,7 @@ Flags: `--workflow-id` (required), `--mode`, `--data`, `--each`, `--concurrency`
10710
10749
 
10711
10750
  List the workspaces your key can use. `GET /v1/workspaces` (a list).
10712
10751
 
10713
- Flags: `--all`, `--limit`, `--q`.
10752
+ Flags: `--all`, `--limit`, `--search`.
10714
10753
 
10715
10754
  ### kenso workspace use
10716
10755
 
@@ -10798,7 +10837,7 @@ Flags: `--workspace-id` (required), `--each`, `--concurrency`.
10798
10837
 
10799
10838
  List workspaces. `GET /v1/workspaces` (a list).
10800
10839
 
10801
- Flags: `--cursor`, `--limit`, `--q`, `--all`, `--each`, `--concurrency`.
10840
+ Flags: `--cursor`, `--limit`, `--search`, `--all`, `--each`, `--concurrency`.
10802
10841
 
10803
10842
  ### kenso workspaces list-own-domains
10804
10843
 
@@ -0,0 +1,86 @@
1
+ # Webhooks: listen and trigger
2
+
3
+ Build and test a webhook handler on your own machine, with no public tunnel and no webhook endpoint in Kenso. `kenso webhooks listen` streams your workspace's events, prints each one as JSON and forwards it to your handler, signed the way Kenso signs its deliveries. `kenso webhooks trigger` sends a sample event through the running listener.
4
+
5
+ | Command | What it does |
6
+ |---|---|
7
+ | `webhooks listen --forward-to <url>` | Streams events, prints one JSON line each, and POSTs each to your handler |
8
+ | `webhooks listen --print-secret` | Prints the local signing secret and exits |
9
+ | `webhooks trigger <event-type>` | Sends that type's sample through the running listener |
10
+
11
+ ## Quick start
12
+
13
+ In one terminal:
14
+
15
+ ```bash
16
+ kenso webhooks listen --forward-to http://localhost:3000/hook
17
+ ```
18
+
19
+ It prints its signing secret on stderr:
20
+
21
+ ```
22
+ Ready. Forwarding events to http://localhost:3000/hook.
23
+ Signing secret: whsec_... (the same on every run; kept in ~/.kenso/webhooks/signing-secret).
24
+ ```
25
+
26
+ Put that secret in your handler's config (for example `KENSO_WEBHOOK_SECRET`). In another terminal:
27
+
28
+ ```bash
29
+ kenso webhooks trigger reply.received
30
+ ```
31
+
32
+ The listener prints the event and your handler receives it. `kenso webhook-event-types list` lists every type with its sample body.
33
+
34
+ ## What your handler receives
35
+
36
+ Each forward is a `POST` with a JSON body shaped like a webhook delivery (no envelope, `eventType` at the top) and the headers a Kenso delivery carries. How full the body is depends on where the event came from:
37
+
38
+ - **A trigger** sends the type's full sample body, the same shape a webhook endpoint receives in production.
39
+ - **A live event** is sparse. The event log keeps only part of each delivery, so the body has `eventType`, `eventId`, `timestamp` and `clientId`, plus the ids, statuses and `links` at their delivery paths (`contact.id`, `campaign.id`, `reply.classification`, ...). Names, emails, reply text and the other fields are not there: read them with the API, or build that part of the handler against a trigger's sample.
40
+
41
+ The headers:
42
+
43
+ | Header | Value |
44
+ |---|---|
45
+ | `svix-id` | The event's id. Dedupe on it |
46
+ | `svix-timestamp` | Unix seconds of the send |
47
+ | `svix-signature` | `v1,` and the base64 HMAC-SHA256 of `{svix-id}.{svix-timestamp}.{body}`, keyed by the secret |
48
+ | `content-type` | `application/json` |
49
+
50
+ So the verification code you write for production works unchanged: the Svix libraries (`svix` for Node, Python, Go and others) and the check in the Webhooks section of the Kenso API docs accept these deliveries. Only the secret differs. The listener's secret is local: it is made on your machine the first time you run `listen`, stays the same on every run, and is never a real endpoint's secret. In production, use your endpoint's secret from `kenso webhook-endpoints get-signing-secret --webhook-endpoint-id <webhookEndpointId>`.
51
+
52
+ For scripts, take the secret without starting a listener:
53
+
54
+ ```bash
55
+ export KENSO_WEBHOOK_SECRET=$(kenso webhooks listen --print-secret)
56
+ ```
57
+
58
+ ## Output
59
+
60
+ stdout gets one JSON line per event, for `jq` or an agent:
61
+
62
+ ```json
63
+ {"eventId":"0b6f...","type":"reply.received","timestamp":"2026-11-15T10:00:00Z","source":"live","forward":{"url":"http://localhost:3000/hook","status":200,"ms":12},"data":{"eventType":"reply.received","...":"..."}}
64
+ ```
65
+
66
+ - `source` is `live` for a real event and `trigger` for a sample.
67
+ - `forward` is what your handler answered: `status`, or `error` (`ECONNREFUSED` when nothing listens there). It is absent without `--forward-to`.
68
+ - `data` is the body your handler received (or would receive, without `--forward-to`).
69
+
70
+ The ready line, the secret and the summary at Ctrl-C go to stderr.
71
+
72
+ ## Live events
73
+
74
+ `listen` reads the workspace's event log (`GET /v1/event-occurrences`), so it receives the types with `mcp: true` in `kenso webhook-event-types list` that your seat can see. It polls the log, so a real event arrives within about 30 s; a trigger arrives at once. `--events reply.received,meeting.booked` (or `--events` repeated) narrows the types.
75
+
76
+ The event log is not on for every workspace yet. Where it is off, `listen` says so in a warning and still forwards everything you trigger, so you can build the handler first.
77
+
78
+ ## Triggers
79
+
80
+ `trigger` takes the type's sample from `GET /v1/webhook-event-types`, gives it a new `eventId` (`evt_test_...`) and the current `timestamp`, and hands it to the listener for this workspace, which prints and forwards it like a live event. It sends nothing to Kenso's event log, to your webhook endpoints or to anyone else. It exits 1 with `forward_failed` when your handler did not answer 2xx, and with `listener_not_running` when no listener runs for the workspace.
81
+
82
+ To send a sample to a real, deployed endpoint instead, use `kenso webhook-endpoints test --webhook-endpoint-id <webhookEndpointId> --event-type reply.received`.
83
+
84
+ ## Stopping
85
+
86
+ Ctrl-C stops the listener. `listen` creates no webhook endpoint, no event subscription and no tunnel, so there is nothing to delete in Kenso. Its polls do keep the workspace's event log recording: the log stops on its own 7 days after the last poll. A poll that fails (a network error, a 5xx) prints a warning and is tried again a minute later; a bad key or a refused request ends the listener. It removes its local state file (the address `trigger` uses) on the way out.