CRM (beta)
The CRM commands work on Kenso's Accounts lane: accounts (companies), the people on them, and opportunities. They are beta: they need the accounts feature flag on your workspace (opportunities need opportunities, CRM sync needs ingestion). Help and kenso describe hide them until your workspace has the flag; --all-commands shows them.
| Command | What it does |
|---|---|
accounts import | Create accounts from a CSV or JSONL file. Research is charged per created account |
people import | Create or match people from a file, optionally onto accounts |
accounts update --each, people update --each, opportunities update --each | Edit many records from a file, one call per row |
accounts write-research, people write-research | Store research you gathered as a record's latest research, free. --each writes many |
opportunities stage-history <id> | A deal's stage history: each stage, when, who moved it and how long it sat there |
capture status | Your captured mailbox, its backfill progress and what teammates see of a captured email. Needs the crm_capture flag |
capture connect | Turn capture on for your own mailbox. --private starts it hidden from teammates; --provider google prints a sign-in link when no account is connected yet |
capture private on|off | Hide your captured email from teammates, or show it again. Email only: meetings stay visible |
capture disconnect | Turn capture off and delete your stored email bodies. Asks first; --yes skips the question |
capture teammates-see summary|full_email | Workspace admin: what teammates see of captured email |
crm-connections, crm-imports, crm-sync-issues | Read and run CRM sync. Connecting a CRM stays in the app |
Import accounts first, then people: people import never creates an account.
Import accounts
kenso accounts import --file accounts.csv
kenso accounts import --file accounts.csv --yesname,domain,industry,employeeCount
Acme,acme.io,Software,120
Globex,globex.com,Manufacturing,"1,200"- Columns map by name, ignoring case, spaces and dashes:
name(orcompany,companyName,accountName),domains(several, split on,or;) or onedomain(orwebsite,companyDomain),industry,employeeCount,hqLocation,linkedinUrl,stage,angle,whyNow,fitScore,fundingRound,cadenceDays,ownerMemberId,kenCompanyId,sendsFromInboxId,sendsFromLinkedInAccountIdandsource. - A domain is required. A file with no domain column is a usage error, and a row without a domain is
invalid(domain_required). - The dry run prices the research. It asks for a credit estimate per 1,000 accounts and puts the sum in the plan:
kind,accountCount,totalMillicredits,availableMillicreditsandsufficient. - Rows go 100 per call to
POST /v1/accounts/bulk-create.
Each row comes back created (id is the new account; its research is queued, researchQueued, or waits for credits, researchWaitingCredits), skipped with reason domain_taken (already an account; id is that account) or failed (reason is the API's code, error names the field; an item Kenso failed to save is sent once more first). Rerunning the same file is safe: accounts that exist come back domain_taken.
Import people
kenso people import --file people.csv
kenso people import --file people.csv --find-emails --yes
kenso people import --file people.jsonl --dry-runfullName,email,title,accountDomain,role
Ann Lee,[email protected],VP Sales,acme.io,champion
Bob Ray,,CTO,acme.io,- Columns map by name, ignoring case, spaces and dashes:
email,fullName(orname),firstName,lastName,title,linkedinUrl(orlinkedin,profileUrl),accountDomain(ordomain,website,companyDomain),accountId,roleandpriority. Other columns are ignored with one warning. - A person needs a name:
fullName, orfirstName,lastNameor both (the CLI joins them). A row with none of them isinvalid(name_required). - To put a person on an account, give
accountDomainoraccountId. A row with both sends onlyaccountId. --find-emailsqueues an email find (charged in credits) for each person without an email.- Rows go 200 per call to
POST /v1/people/batch.
People already in the workspace are matched by email, then LinkedIn URL, so running the same file again creates nobody twice. A row comes back created (a new person), updated (an existing person added to the account), skipped with reason already_on_account, matched (no account asked) or previously_removed, or failed: account_not_found saves the person without an account (import the account, then rerun to place them), any other reason is the API's. The summary adds matched, addedToAccounts and emailFindsQueued.
List and search accounts
accounts list and accounts search sort and page on the server, so they reach every account in the workspace, however many there are.
kenso accounts list --sort score:desc --limit 100 # one page; the output's next: line is the following one
kenso accounts list --sort score:desc --limit 100 --all # every page, to the end
kenso accounts search --search hiring --sort latestSignalAt:desc --data '{"qFields": ["name", "latestSignal"]}'
kenso accounts search --limit 1 --data '{"countBy": ["stage"]}' # how many accounts sit in each stage
kenso accounts search --data '{"where": {"match": "all", "conditions": [{"field": "tier", "operator": "is", "values": ["1"]}]}, "sort": "tier,-pipelineAmount"}' --all--sorttakes up to 3 comma-separated keys, eachfield(ascending),field:ascorfield:desc. The API's-fieldform needs the equals sign here,--sort=-score, because a value that starts with a dash reads as a flag. Fields:createdAt,name,score,tier(ascending is tier 1 first),latestSignalAt,committee,pipelineAmount,nextTouchAt,lastTouchAt. An account with no value for a key comes last in both directions. The default is-createdAt.--limitis 1 to 1000 (default 50).--cursortakes the previous page'snextCursorwith the same filters and sort;--allfollows the cursors for you.--search(also--q) matches the name or a domain.- Lists and objects go in
--dataonsearch, as the API takes them (kenso describe accounts search); a flag beside it sets or replaces one key:qFieldspicks where the search text looks:name,domain,latestSignal(the latest signal's title).countBy(stage,stageGroup) addscountsto the output: every value with the number of matching accounts that hold it, whatever the page. The output is then one object:data,paginationandcounts.filtersandwherenarrow the accounts.
An account's timeline pages the same way. kenso accounts activity 812 returns the newest 100 earlier rows and, when older ones exist, data.nextCursor. Pass it back as --cursor (with the same --category) for the rows before them, until a page comes without one.
Edit accounts, people and opportunities
Apart from accounts bulk-update, which sets one accountType on up to 500 accounts, there is no bulk edit route, so run the generated update command once per row with --each. Columns are the command's flags by API name or flag name, and the id column fills the route:
kenso accounts update --each accounts-edit.csv --dry-run # then the same with --yes
kenso people update --each people-edit.csv --dry-run
kenso opportunities update --each deals.csv --dry-runaccountId,stage,ownerMemberId,overwritePinned
501,engaged,42,true
502,customer,42,trueA row that changes a field someone pinned in the app fails as a whole (409 conflict, pinned_by_user: nothing on that record changes, the other fields of the row included), unless the row sets overwritePinned to true (or you pass --overwrite-pinned, only with the person's OK). Every flag of an update command: kenso accounts update --help.
Search opportunities
kenso opportunities search works as accounts search does: it takes --search, --sort, --limit, --cursor, --all, and its lists in --data.
kenso opportunities search --data '{"filters": [{"field": "stageCategory", "operator": "is", "values": ["open"]}]}' --all
kenso opportunities search --data '{"filters": [{"field": "ownerMemberId", "operator": "is", "values": ["none"]}, {"field": "closeDate", "operator": "is", "values": ["past_due", "next_30_days"]}]}'
kenso opportunities search --limit 1 --data '{"countBy": ["stage", "ownerMemberId"]}' # how many opportunities hold each valuefiltersis a list of{field, operator, values}, all of which must hold. Fields:stage(a stage key),stageCategory(open,won,lost),ownerMemberId,closeDate(past_due,next_30_days,later,none) andsourceCampaignId.operatorisisoris_not; the values of one condition are OR.noneinvaluesmatches an opportunity with no owner, no source campaign or no close date.countBytakes the same field names and addscountsto the output: per field, every value with the number of matching opportunities that hold it.--account-idkeeps the search to one account.closeDatecounts days in the member's app time zone.
One person's deals, meetings and campaign contacts, as their person page lists them:
kenso opportunities list --person-id 9001 # the deals they are on, or are the primary person of
kenso meetings list --person-id 9001 # the meetings they attend, among the ones you can see
kenso contacts list --person-id 9001 # their contact in each campaign they are inWrite research you gathered
accounts write-research and people write-research store research you gathered outside Kenso as the record's latest research (PUT /v1/accounts/{accountId}/research, PUT /v1/people/{personId}/research). The Research tab shows it like a Ken run, with trigger: agent and researchedAt now. Nothing is charged, and no account or person field changes: set an account's own fitScore, whyNow or angle with accounts update. They need the accounts_research flag and accounts edit.
The body is the research block accounts get --expand research (or people get-research) returns, without its read-only fields: leave out id, status, trigger, errorCode, researchedAt, isStale and appliedPrompt (for a person also mode, requestedAt, researchedMode, firecrawlCredits and webNote), or the write fails with unknown_field. Pass it with --data @file:
kenso accounts write-research --account-id 501 --data @acme-dossier.json
kenso people write-research --person-id 9001 --data @jane.json{
"tagline": { "text": "Payroll for EU contractors", "sourceUrls": ["https://acme.example"] },
"description": { "text": "Acme runs payroll and compliance for companies hiring contractors in 30 EU countries.", "sourceUrls": ["https://acme.example"] },
"links": { "website": "https://acme.example" },
"whyNow": { "text": "Raised a $40M Series B in October", "sourceUrls": ["https://news.example/acme-b"], "date": "2026-10" },
"fitScore": 82,
"angle": "Lead with contractor onboarding time."
}Many records: one JSONL line per record, with the id next to the block's fields. Nested objects are sent as written. Use JSONL, not CSV: the block's fields are objects and lists, which a CSV cell cannot carry.
kenso accounts write-research --each dossiers.jsonl --dry-run # then the same with --yes
kenso people write-research --each people-research.jsonl --yes --concurrency 8{"accountId": 501, "tagline": {"text": "Payroll for EU contractors"}, "links": {"website": "https://acme.example"}}
{"accountId": 502, "description": {"text": "Cloud cost tooling for retailers."}, "links": {"website": "https://beta.example"}}A row fails as a whole with the API's code: validation_failed (an unknown field is unknown_field, and error.details names every bad field), research_in_progress (409: Ken is researching that record now, write it again once the run ends; an account run waiting for credits counts too: it runs once the workspace has credits, and the write stays refused until that run ends) or not_found. Rerunning a file is safe: each write replaces the record's research shown.
CRM sync
CRM sync has generated commands only: read connections, preview, start an import, and work through sync issues. Connect the CRM itself in the app.
kenso crm-connections list
kenso crm-connections get --connection-id 7
kenso crm-imports create --connection-id 7 --dry-run
kenso crm-sync-issues list --connection-id 7 --allRun kenso crm-connections --help (or add --all-commands when the actions are hidden) to see every action.
A deal's stage history
kenso opportunities stage-history 77
kenso opportunities stage-history 77 --query "entries[].{to: stageLabel, at: enteredAt, by: changedBy}"It prints GET /v1/opportunities/{id}/stage-history as it is, the same rows as the deal page and the MCP's opportunities(operation="get-stage-history"): the stage now, isComplete and entries, oldest first, each with fromStage, stage, stageLabel, enteredAt, leftAt, durationSeconds, actorKind, actorMemberId and Ken's reason on a move its stage judge made. With the deal_stage_rules flag on, each entry also has changedBy (member, agent, api_key, workflow, stage_judge, crm_sync or ken_automation), crmProvider on a CRM sync, and on a move fromStageLabel and fromStageDurationSeconds, how long the deal sat in the stage it left. isComplete false means Kenso has no record of part of the history.