@dench.com/cli 3.12.8-staging.1236 → 3.12.9-staging.1239

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "revision": "332905a30187bda1d00d0929413c0416f79b29a3a0ee353812ef28e2d0c27616",
3
- "builtinHash": "14b340638ee2d40118e414ddffd3d63864e6146c236c15ecc62f03c22091d40b",
2
+ "revision": "21407a7b3f85ed05094eb21ae98d4a9377333e0dbfda69557910484657b22336",
3
+ "builtinHash": "01d92fde913f82a3aace8ac25b4b3f56a8da13755bf1d2b9cf28b3d228d387bc",
4
4
  "files": {
5
5
  "SKILL.md": {
6
6
  "sha256": "47f6538a88c714248d45b35701c3a8750e77326c852fe35905c5c743dfeb1a87",
@@ -15,8 +15,8 @@
15
15
  "content": "# Dench API Guide\n\nUse the Dench CLI first. This API guide is the backup path for agents when the CLI is unavailable, cannot be installed, or cannot run in the current environment.\n\nBase URL:\n\n```bash\nexport DENCH_API_BASE=\"https://www.dench.com/api/v1\"\nexport DENCH_API_KEY=\"<workspace API key or dch_agent_* session token>\"\n```\n\nAuthentication:\n\n```http\nAuthorization: Bearer <DENCH_API_KEY or dch_agent_* session token>\n```\n\nEvery parameter, request body, and response is documented interactively in the OpenAPI playground. This curl guide is generated from the same registry.\n\nMachine-readable spec:\n\n```bash\ncurl -sS \"$DENCH_API_BASE/openapi.json\"\n```\n\n## Important Notes\n\n- Prefer the CLI when it works; it handles local session selection, prompts, streaming display, and file staging ergonomics.\n- Gateway-backed operations (search, dench web, images, apps, tools, enrichment) accept either a Dench API key or an agent session; agent sessions are exchanged for the workspace gateway key server-side.\n- Dench web (page read, brand, sitemap, crawl, screenshot, extract) is `POST /context/{op}`, proxied to `$DENCH_GATEWAY_URL/v1/context/{op}`. Prefer `dench web` / `fetch_url` over writing your own scraper. Search stays `POST /search`.\n- Local-only commands are listed for completeness but operate on the caller's machine and cannot run remotely.\n- For chat operations authenticated with an API key, include `x-dench-run-id: <run_id>` when acting from inside a running agent turn.\n\n## Agent Config\n\n### dench context --sections identity\n\nRead IDENTITY.md.\n\n- API: `GET /agent-config/identity`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench identity show`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/identity\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context set identity\n\nUpdate IDENTITY.md.\n\n- API: `PUT /agent-config/identity`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench identity edit`\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/identity\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n\n### dench context --sections organisation\n\nRead ORGANISATION.md.\n\n- API: `GET /agent-config/organisation`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench organisation show`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/organisation\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context set organisation\n\nUpdate ORGANISATION.md.\n\n- API: `PUT /agent-config/organisation`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench organisation edit`\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/organisation\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n\n### dench context --sections user\n\nRead USER.md.\n\n- API: `GET /agent-config/user`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench user show`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/user\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context set user\n\nUpdate USER.md.\n\n- API: `PUT /agent-config/user`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench user edit`\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/user\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n\n### dench context --sections tools\n\nRead tool notes.\n\n- API: `GET /agent-config/tools`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench tools show`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/tools\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context set tools\n\nUpdate tool notes.\n\n- API: `PUT /agent-config/tools`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench tools edit`\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/tools\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n\n### dench mem show\n\nRead aggregate memory.\n\n- API: `GET /agent-config/mem`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/mem\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench mem set\n\nUpdate aggregate memory.\n\n- API: `PUT /agent-config/mem`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/mem\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n\n### dench bootstrap status\n\nRead bootstrap state.\n\n- API: `GET /agent-config/bootstrap`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/bootstrap\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench bootstrap complete\n\nComplete bootstrap.\n\n- API: `POST /agent-config/bootstrap/complete`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/agent-config/bootstrap/complete\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench bootstrap template\n\nUpdate bootstrap template.\n\n- API: `PUT /agent-config/bootstrap/template`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/bootstrap/template\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n\n### dench model default\n\nNot available: Dench runs one chat model, so this always fails.\n\n- API: `PUT /agent-config/model/default`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/model/default\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"modelId\": \"string\"\n }'\n```\n\n### dench model thread\n\nNot available: Dench runs one chat model, so this always fails.\n\n- API: `PUT /agent-config/model/threads/{threadId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/agent-config/model/threads/{threadId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"modelId\": \"string\"\n }'\n```\n\n### dench daily today\n\nRead today's daily activity path.\n\n- API: `GET /agent-config/daily/today`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/daily/today\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench daily show\n\nRead a daily activity path.\n\n- API: `GET /agent-config/daily/{date}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agent-config/daily/{date}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Apps\n\n### dench apps list\n\nList installed App Store apps in the workspace.\n\n- API: `GET /apps`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/apps\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench apps gallery\n\nList Discover listings — Official (Dench) + Community shelves.\n\n- API: `GET /apps/gallery`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/apps/gallery\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench apps create\n\nScaffold and register a new App Store app.\n\n- API: `POST /apps`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/apps\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"slug\": \"string\",\n \"name\": \"string\"\n }'\n```\n\n### dench apps install\n\nInstall an App Store listing into the workspace.\n\n- API: `POST /apps/install`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/apps/install\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"listingId\": \"string\"\n }'\n```\n\n### dench apps publish\n\nPublish an app's files as a versioned App Store listing.\n\n- API: `POST /apps/publish`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/apps/publish\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"appPath\": \"string\",\n \"slug\": \"string\",\n \"name\": \"string\"\n }'\n```\n\n### dench apps uninstall\n\nUninstall an app from the workspace.\n\n- API: `DELETE /apps/{slug}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/apps/{slug}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench apps enable\n\nEnable or disable an installed app.\n\n- API: `PATCH /apps/{slug}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/apps/{slug}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"enabled\": true\n }'\n```\n\n### dench apps pin\n\nPin or unpin an installed app in the rail.\n\n- API: `POST /apps/{slug}/pin`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/apps/{slug}/pin\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"pinned\": true\n }'\n```\n\n### dench apps share\n\nShare an app you added with the workspace (shared) or make it private to you again (private). Owner only.\n\n- API: `POST /apps/{slug}/visibility`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/apps/{slug}/visibility\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench apps validate\n\nValidate a .dench.app folder: manifest, permissions, and every window.dench call it makes.\n\n- API: `POST /local/apps/validate`\n- Auth: No bearer token required.\n\n```bash\n# dench apps validate\n# Local-only: Validation reads the app folder on the caller's disk. In the browser, the same catalog is window.dench.api.operations().\n```\n\n### dench apps webhooks register\n\nRegister an inbound webhook for an app. Returns the URL and signing secret ONCE.\n\n- API: `POST /apps/{slug}/webhooks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/apps/{slug}/webhooks\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"hookName\": \"string\"\n }'\n```\n\n### dench apps webhooks list\n\nList an app's registered webhooks (URLs, never secrets).\n\n- API: `GET /apps/{slug}/webhooks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/apps/{slug}/webhooks\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench apps webhooks poll\n\nRead events an app webhook received since a timestamp.\n\n- API: `GET /apps/{slug}/webhooks/{hookName}/events`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/apps/{slug}/webhooks/{hookName}/events\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench apps webhooks delete\n\nRemove an app webhook and every event it stored.\n\n- API: `DELETE /apps/{slug}/webhooks/{hookName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/apps/{slug}/webhooks/{hookName}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Auth\n\n### dench signin\n\nCreate an agent sign-in request.\n\n- API: `POST /auth/signin-requests`\n- Auth: No bearer token required.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/auth/signin-requests\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"codeHash\": \"string\",\n \"sessionTokenHash\": \"string\",\n \"agentName\": \"string\",\n \"agentKind\": \"string\",\n \"intent\": \"join_existing\"\n }'\n```\n\n### dench signin\n\nPoll an agent sign-in request until approval.\n\n- API: `POST /auth/signin-requests/{requestId}/poll`\n- Auth: No bearer token required.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/auth/signin-requests/{requestId}/poll\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"codeHash\": \"string\",\n \"sessionTokenHash\": \"string\"\n }'\n```\n\n### dench signin --email\n\nStart the email OTP sign-in flow.\n\n- API: `POST /auth/otp/start`\n- Auth: No bearer token required.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/auth/otp/start\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"email\": \"string\"\n }'\n```\n\n### dench signin --email\n\nVerify an email OTP sign-in code.\n\n- API: `POST /auth/otp/verify`\n- Auth: No bearer token required.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/auth/otp/verify\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"email\": \"string\",\n \"code\": \"string\",\n \"agentName\": \"string\",\n \"agentKind\": \"string\",\n \"sessionTokenHash\": \"string\",\n \"intent\": \"join_existing\"\n }'\n```\n\n### dench signin --email\n\nFinalize an email OTP sign-in session.\n\n- API: `POST /auth/otp/finalize`\n- Auth: No bearer token required.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/auth/otp/finalize\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"authToken\": \"string\"\n }'\n```\n\n## Billing\n\n### dench billing status\n\nGet billing and AI credit status.\n\n- API: `GET /billing/status`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/billing/status\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench billing topup\n\nCreate an AI credit top-up checkout link.\n\n- API: `POST /billing/topup`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/billing/topup\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"requestId\": \"string\",\n \"amountUsd\": 0\n }'\n```\n\n### dench upgrade\n\nCreate a workspace upgrade checkout link.\n\n- API: `POST /billing/upgrade`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/billing/upgrade\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Browser\n\n### dench browser\n\nDrive Dench Browser with a single interactive action (open, inspect, click, fill, type, screenshot, stop). Pass the step in `action` plus its arguments.\n\n- API: `POST /browser/cli`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/browser/cli\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"action\": \"open\",\n \"url\": \"https://example.com\"\n }'\n```\n\n### dench browser session create\n\nCreate a Dench Browser session and return a CDP connect URL for Playwright (chromium.connectOverCDP) plus a live-view URL. Use for durable scripts run from the sandbox.\n\n- API: `POST /browser/sessions`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/browser/sessions\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"viewport\": {\n \"width\": 1280,\n \"height\": 800\n }\n }'\n```\n\n### dench browser session status\n\nGet the status, connect URL, and live-view URL for a Dench Browser session.\n\n- API: `GET /browser/sessions/{sessionId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/browser/sessions/{sessionId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench browser session stop\n\nStop a Dench Browser session and release the remote browser.\n\n- API: `DELETE /browser/sessions/{sessionId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/browser/sessions/{sessionId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Campaigns\n\n### dench campaign draft\n\nCreate an idempotent empty campaign draft with the caller's available sender pools. Does not launch or send.\n\n- API: `POST /campaigns/drafts`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/drafts\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"clientRequestId\": \"string\"\n }'\n```\n\n### dench campaign search\n\nSearch people by filters without adding CRM records or campaign recipients. Search credits apply; this is not a free provider preview.\n\n- API: `POST /campaigns/audience/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/audience/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"filters\": {}\n }'\n```\n\n### dench campaign add --search\n\nSearch and add up to 50 people to an existing campaign. New identities become Leads. Search credits apply; use nextPageToken for another page.\n\n- API: `POST /campaigns/{sequenceId}/people/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/people/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"filters\": {}\n }'\n```\n\n### dench campaign add --people-file\n\nAdd up to 50 selected recipients without another search. Deduplicates, applies suppression, and preserves the campaign's launch state.\n\n- API: `POST /campaigns/{sequenceId}/people/batch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/people/batch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"recipients\": []\n }'\n```\n\n### dench campaign sources get\n\nRead a campaign's saved signal source, targeting and schedule.\n\n- API: `GET /campaigns/{sequenceId}/sources`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/sources\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sources signals\n\nRead signal choices, suggested terms and current source configuration.\n\n- API: `GET /campaigns/{sequenceId}/sources/signals`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/sources/signals\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sources set\n\nUpdate source cadence, pause/resume, targeting, signals or terms. Active sources may perform billable future work.\n\n- API: `PATCH /campaigns/{sequenceId}/sources`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/campaigns/{sequenceId}/sources\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sources preview\n\nPreview a signal source using its current audience. Provider credits may apply; does not enroll people.\n\n- API: `POST /campaigns/{sequenceId}/sources/preview`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/sources/preview\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"signal\": \"post_engagement\"\n }'\n```\n\n### dench campaign sources run\n\nRun a live campaign's signals now instead of waiting for the schedule (Run now). Provider credits apply; limited to 6 runs an hour.\n\n- API: `POST /campaigns/{sequenceId}/sources/run`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/sources/run\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sources overview\n\nRead the Sources tab: each signal's status, last and next run, people found and anything needing attention.\n\n- API: `GET /campaigns/{sequenceId}/sources/overview`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/sources/overview\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sources pending\n\nList people a signal found who are waiting for approval (manual approval mode).\n\n- API: `GET /campaigns/{sequenceId}/sources/pending`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/sources/pending\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sources approve|reject\n\nApprove people waiting for review (they start the sequence) or reject them.\n\n- API: `POST /campaigns/{sequenceId}/sources/review`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/sources/review\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"enrollmentIds\": [],\n \"decision\": \"approve\"\n }'\n```\n\n### dench campaign queue\n\nToday's queue: who the campaign plans to contact today, warmest first, within the senders' limits.\n\n- API: `GET /campaigns/{sequenceId}/queue`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/queue\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder profile\n\nRead the company profile and suggested campaign audience.\n\n- API: `GET /campaigns/builder/profile`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/builder/profile\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder save\n\nSave a signal campaign's audience, signals and terms idempotently. Does not start a build.\n\n- API: `POST /campaigns/builder/drafts`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/drafts\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"clientRequestId\": \"string\",\n \"targeting\": {},\n \"signals\": []\n }'\n```\n\n### dench campaign builder get\n\nRead signal build progress, preview people, messages and errors.\n\n- API: `GET /campaigns/builder/drafts/{draftId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder leads\n\nRead every lead a signal build kept (not just the five previewed): person, company, LinkedIn URL and the signal's evidence.\n\n- API: `GET /campaigns/builder/drafts/{draftId}/leads`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/leads\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder build\n\nStart the same billable signal/audience/message build used by the UI; poll the draft for progress.\n\n- API: `POST /campaigns/builder/drafts/{draftId}/build`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/build\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder create\n\nCreate a campaign from a reviewed signal draft. Does not launch the campaign.\n\n- API: `POST /campaigns/builder/drafts/{draftId}/create`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/create\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder opener\n\nEdit or reset one preview person's opening line before creating the campaign.\n\n- API: `PUT /campaigns/builder/drafts/{draftId}/people/{leadId}/opener`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/people/{leadId}/opener\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"opener\": \"string\"\n }'\n```\n\n### dench campaign builder drafts\n\nList saved, unfinished campaign drafts that can be resumed.\n\n- API: `GET /campaigns/builder/drafts`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/builder/drafts\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder resume\n\nRead a saved draft's setup (source, name, targeting, signals, terms, lookalike) to resume it.\n\n- API: `GET /campaigns/builder/drafts/{draftId}/setup`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/setup\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder discard\n\nDiscard a saved draft that has not become a campaign.\n\n- API: `DELETE /campaigns/builder/drafts/{draftId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder outreach\n\nSave a draft's Outreach and Review choices: AI or manual steps, the brief, the steps, who sends and when, and auto or manual approval.\n\n- API: `PATCH /campaigns/builder/drafts/{draftId}/outreach`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/outreach\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder sequence\n\nGenerate the draft's sequence from a brief (goal, problem, tone, channels), as Generate sequence does. AI credits apply.\n\n- API: `POST /campaigns/builder/drafts/{draftId}/sequence`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/drafts/{draftId}/sequence\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"brief\": {}\n }'\n```\n\n### dench campaign builder lookalike\n\nSet up a lookalike from the best lead's LinkedIn URL (role, similar roles, place, industry, similar companies), suggest roles again, or re-scope to a company. Nothing is saved. Provider credits apply.\n\n- API: `POST /campaigns/builder/lookalike`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/lookalike\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder voices\n\nSuggest market voices (LinkedIn experts) for the campaign's topics, to watch with voice_engagement. AI credits apply.\n\n- API: `POST /campaigns/builder/voices`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/voices\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign builder autofill\n\nTurn an audience description into targeting filters. AI credits apply.\n\n- API: `POST /campaigns/builder/autofill`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/autofill\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"description\": \"string\"\n }'\n```\n\n### dench campaign builder estimate\n\nEstimate audience or weekly signal volume using the UI's cached estimator. Provider credits may apply.\n\n- API: `POST /campaigns/builder/estimate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/builder/estimate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"kind\": \"people\",\n \"targeting\": {}\n }'\n```\n\n### dench campaign accounts\n\nDiscover LinkedIn sender ids, labels, availability and remaining capacity visible to the acting workspace member. Never returns provider credentials.\n\n- API: `GET /campaigns/accounts/linkedin`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/accounts/linkedin\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign linkedin send\n\nSend one LinkedIn message now as the acting member, like the Inbox's Send button: not paced, 1st-degree connections only. Only use for an explicit send request.\n\n- API: `POST /campaigns/linkedin/messages`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/linkedin/messages\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"profileUrl\": \"https://www.linkedin.com/in/ada-lovelace\",\n \"text\": \"Hi Ada, great meeting you at the summit!\"\n }'\n```\n\n### dench campaign accounts\n\nDiscover the mailboxes the acting workspace member can send campaign email from: ids for emailMailboxAccountIds, status, warm-up state and when it is done, the daily cold-email cap and what is left today. Never returns provider credentials.\n\n- API: `GET /campaigns/accounts/email`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/accounts/email\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign list [--with-references]\n\nList outreach campaigns of every kind on the Campaigns page, each with its kind (archived ones on request).\n\n- API: `GET /campaigns`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign create\n\nCreate a draft outreach campaign with email and LinkedIn sender pools and a business-hours send window in the given timezone.\n\n- API: `POST /campaigns`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"Founder outreach\",\n \"timezone\": \"America/Los_Angeles\",\n \"emailMailboxAccountIds\": [\n \"<emailMailboxAccountId>\"\n ],\n \"linkedinAccountIds\": [\n \"<linkedinAccountId>\"\n ]\n }'\n```\n\n### dench campaign duplicate\n\nCopy a campaign into a new draft named \"<name> copy\": the same steps, schedule, sender pools and personalized lines, its lead source paused, and no people. To reach more than 300 people, duplicate and add the next page of the search to the copy.\n\n- API: `POST /campaigns/{sequenceId}/duplicate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/duplicate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign get\n\nRead a campaign: settings, steps, people, their current step and hold, last touches, linked leads.\n\n- API: `GET /campaigns/{sequenceId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign get\n\nCampaign funnel: enrolled, contacted, invited, accepted, messaged, replied, opens and clicks, and for a workflow how many people took each If / else and Wait for them to accept path (branchStats).\n\n- API: `GET /campaigns/{sequenceId}/analytics`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/analytics\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign get\n\nWhat the campaign is doing now, what comes next and when, and why it is holding.\n\n- API: `GET /campaigns/{sequenceId}/live`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/live\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign pipeline\n\nWhere a campaign's people sit in the workspace's lead pipeline right now: each lead Status in order with how many enrolled leads are at it, and how many have no lead or a status outside the pipeline.\n\n- API: `GET /campaigns/{sequenceId}/pipeline`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/pipeline\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign set\n\nChange a campaign's name, sender pools, send windows, daily email cap, stop-on-reply, start or end. Works until archived; existing conversations keep their assigned sender.\n\n- API: `PATCH /campaigns/{sequenceId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/campaigns/{sequenceId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"emailMailboxAccountIds\": [\n \"<emailMailboxAccountId>\"\n ],\n \"linkedinAccountIds\": [\n \"<linkedinAccountId>\"\n ],\n \"dailySendCap\": 30,\n \"sendSchedules\": [\n {\n \"name\": \"Mon-Fri 9-18\",\n \"timezone\": \"America/Los_Angeles\",\n \"startHour\": 9,\n \"endHour\": 18,\n \"weekdays\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n }\n ]\n }'\n```\n\n### dench campaign steps set\n\nReplace every step of a draft campaign (email, wait, LinkedIn visit, connection request, message, post reaction, InMail, If / else, Wait for them to accept). A workflow (stepModel workflow, or steps with key, next, yesNext or noNext) branches: condition and wait_for_connection steps continue on yesNext or noNext, other steps on next; each points at another step's key or end. Steps are checked first: a field the step type would drop, missing text, {TOKEN} single braces or paths that don't hold together are rejected, not saved. Configure sender pools on the campaign; step sender ids are legacy-only.\n\n- API: `PUT /campaigns/{sequenceId}/steps`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/{sequenceId}/steps\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"stepModel\": \"workflow\",\n \"steps\": [\n {\n \"key\": \"connected\",\n \"type\": \"condition\",\n \"check\": \"linkedin_connected\",\n \"yesNext\": \"message\",\n \"noNext\": \"invite\"\n },\n {\n \"key\": \"invite\",\n \"type\": \"linkedin_connection\",\n \"linkedinMessageBody\": \"Hi {{First name}}, enjoyed your post on {{Topic}}.\",\n \"next\": \"accept\"\n },\n {\n \"key\": \"accept\",\n \"type\": \"wait_for_connection\",\n \"connectionTimeoutHours\": 240,\n \"yesNext\": \"message\",\n \"noNext\": \"email\"\n },\n {\n \"key\": \"email\",\n \"type\": \"email\",\n \"emailSubject\": \"Quick question, {{First name}}\",\n \"emailTextBody\": \"Hi {{First name}}, ...\",\n \"next\": \"end\"\n },\n {\n \"key\": \"message\",\n \"type\": \"linkedin_message\",\n \"linkedinMessageBody\": \"Thanks for connecting, {{First name}}. ...\",\n \"next\": \"end\"\n }\n ]\n }'\n```\n\n### dench campaign steps edit\n\nEdit the text, waits and conditions of a launched (or paused) campaign's steps in place. Each step keeps its id, type and place; pass the stepId and the updatedAt you read, and only the fields you change. A workflow keeps its paths and what each If / else checks (key, next, yesNext, noNext, check, conditionField, conditionOperator); conditionValue and acceptance waits stay editable. Messages already sent or being prepared keep their text; drafts use campaigns.steps.replace.\n\n- API: `PATCH /campaigns/{sequenceId}/steps`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/campaigns/{sequenceId}/steps\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"steps\": [\n {\n \"stepId\": \"<stepId>\",\n \"expectedUpdatedAt\": 1765526400000,\n \"type\": \"email\",\n \"emailSubject\": \"A quicker question, {{First name}}\"\n },\n {\n \"stepId\": \"<waitStepId>\",\n \"expectedUpdatedAt\": 1765526400000,\n \"type\": \"wait\",\n \"waitHours\": 96\n },\n {\n \"stepId\": \"<waitForConnectionStepId>\",\n \"expectedUpdatedAt\": 1765526400000,\n \"type\": \"wait_for_connection\",\n \"connectionTimeoutHours\": 336\n }\n ]\n }'\n```\n\n### dench campaign personalize get\n\nRead a campaign's personalized lines (written for each person): their {{keys}} for steps, instructions and fallbacks, how many people have them, and the cost per person.\n\n- API: `GET /campaigns/{sequenceId}/personalization`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/personalization\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign personalize set\n\nDefine up to 5 personalized lines (each used as {{key}} in steps) and what you sell. Saving starts writing missing lines for up to 100 people, about 3 cents a person; for more it returns needsConfirm and writes nothing until campaigns.personalization.write is confirmed.\n\n- API: `PUT /campaigns/{sequenceId}/personalization`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/{sequenceId}/personalization\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"template\": {\n \"variables\": [\n {\n \"key\": \"companyHook\",\n \"label\": \"Company hook\",\n \"prompt\": \"One sentence about something specific their company does or recently did. 8 to 18 words.\",\n \"fallback\": \"Your team caught my eye.\",\n \"maxChars\": 160\n }\n ],\n \"context\": {\n \"sells\": \"Senior engineers who join your team in your time zone.\"\n }\n }\n }'\n```\n\n### dench campaign personalize clear\n\nTurn off a campaign's personalized lines and cancel the ones not yet written. Refused while a step still uses one of the {{keys}}.\n\n- API: `DELETE /campaigns/{sequenceId}/personalization`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/campaigns/{sequenceId}/personalization\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign personalize write\n\nWrite personalized lines for the people missing them (mode missing) or rewrite everyone's (mode all). Rewriting everyone or more than 100 people returns needsConfirm and the estimate until called with confirmed: true.\n\n- API: `POST /campaigns/{sequenceId}/personalization/write`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/personalization/write\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign personalize edit\n\nSet one person's personalized line by hand; an empty value undoes the edit. Braces are removed and text past the line's length is cut.\n\n- API: `PUT /campaigns/people/{enrollmentId}/personalization`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/personalization\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"key\": \"string\",\n \"value\": \"string\"\n }'\n```\n\n### dench campaign personalize rewrite\n\nWrite a fresh personalized line for one person: one key, or all of their lines when key is left out. About 3 cents.\n\n- API: `POST /campaigns/people/{enrollmentId}/personalization/rewrite`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/personalization/rewrite\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign add\n\nAdd CRM records (up to 100 ids per call) to a campaign; returns how many were added and why others were skipped.\n\n- API: `POST /campaigns/{sequenceId}/people`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/people\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"objectName\": \"lead\",\n \"entryIds\": [\n \"<entryId1>\",\n \"<entryId2>\"\n ]\n }'\n```\n\n### dench campaign add --name\n\nAdd one person by email and/or LinkedIn profile URL.\n\n- API: `POST /campaigns/{sequenceId}/person`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/person\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"displayName\": \"Ada Lovelace\",\n \"email\": \"ada@example.com\",\n \"linkedinProfileUrl\": \"https://linkedin.com/in/ada\"\n }'\n```\n\n### dench campaign preview\n\nShow the message one person gets at one email or LinkedIn step, with their fields and personalized lines filled in: subject, body, sender, recipient, merge fields still missing, warnings, and why the step would be skipped. Nothing is sent, prepared or charged.\n\n- API: `GET /campaigns/{sequenceId}/preview`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/preview?enrollmentId=string&stepId=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign launch --check\n\nLaunch readiness without launching: blockers grouped by problem, warnings, and the fingerprint `launch` requires.\n\n- API: `GET /campaigns/{sequenceId}/launch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/launch\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign launch\n\nLaunch a ready draft. Pass the fingerprint from the preview and acknowledge the LinkedIn notice when LinkedIn steps exist.\n\n- API: `POST /campaigns/{sequenceId}/launch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/launch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sequenceId\": \"<sequenceId>\",\n \"fingerprint\": \"<fingerprint from the launch preview>\",\n \"linkedinRiskAcknowledged\": true\n }'\n```\n\n### dench campaign pause\n\nPause an active campaign.\n\n- API: `POST /campaigns/{sequenceId}/pause`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/pause\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign resume\n\nResume a paused campaign.\n\n- API: `POST /campaigns/{sequenceId}/resume`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/resume\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign archive\n\nArchive a campaign and stop everyone still in flight. This is the app's Delete: campaigns are never erased, and their people, leads and activity stay.\n\n- API: `POST /campaigns/{sequenceId}/archive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench campaign delete`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/archive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign events\n\nThe campaign's activity log, newest first (sent, accepted, replied, skipped, failed, paused, stopped).\n\n- API: `GET /campaigns/{sequenceId}/events`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/{sequenceId}/events\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign stop\n\nStop one person: nothing more is sent to them from this campaign.\n\n- API: `POST /campaigns/people/{enrollmentId}/stop`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/stop\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign resume-person\n\nResume one paused person in an active campaign.\n\n- API: `POST /campaigns/people/{enrollmentId}/resume`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/resume\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign person set --email\n\nGive a person in a draft campaign a new or corrected email address; their linked CRM record gets it too. Only before launch; another person in the campaign can't share it.\n\n- API: `PUT /campaigns/people/{enrollmentId}/email`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/email\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"email\": \"string\"\n }'\n```\n\n### dench campaign person set --linkedin-url\n\nGive a person in a draft campaign a new or corrected LinkedIn profile URL; their linked CRM record gets it too. Only before launch.\n\n- API: `PUT /campaigns/people/{enrollmentId}/linkedin`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/linkedin\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"linkedinProfileUrl\": \"string\"\n }'\n```\n\n### dench campaign person set --field\n\nFill or fix one {{merge field}} for a person in a draft campaign, e.g. a missing Company that blocks launch; a matching column on their CRM record is updated too. Only before launch; written personalized lines are not merge fields and can't be set here.\n\n- API: `PUT /campaigns/people/{enrollmentId}/fields`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/fields\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"key\": \"string\",\n \"value\": \"string\"\n }'\n```\n\n### dench campaign resume-person --all\n\nResume every paused person in an active campaign at once, e.g. after a sending account is reconnected. Returns how many were resumed.\n\n- API: `POST /campaigns/{sequenceId}/people/resume`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/people/resume\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign sync\n\nFill each unfinished person's empty email, LinkedIn URL, name and merge fields from their linked CRM record, e.g. after enriching the records. Never overwrites a value the campaign already has; returns how many people changed.\n\n- API: `POST /campaigns/{sequenceId}/people/sync`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/campaigns/{sequenceId}/people/sync\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign where\n\nThe campaigns a CRM record (a person or a lead) is in, newest first, with the person's status in each and the accounts that send to them.\n\n- API: `GET /campaigns/by-record/{entryId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/by-record/{entryId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign person show\n\nEverything a campaign did for one person, step by step: what was sent (subject and text), whether it was opened or clicked, what was skipped and why, waits, failures and retries.\n\n- API: `GET /campaigns/people/{enrollmentId}/timeline`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/campaigns/people/{enrollmentId}/timeline\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench campaign remove\n\nRemove a person who was never contacted from a draft campaign. Frees their place in the 300-person cap and keeps the draft launchable; stop anyone already contacted instead.\n\n- API: `DELETE /campaigns/people/{enrollmentId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/campaigns/people/{enrollmentId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Chat\n\n### dench chat list\n\nList past chat threads.\n\n- API: `GET /chat/threads`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/chat/threads\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench chat search\n\nSearch past chat messages.\n\n- API: `GET /chat/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/chat/search?query=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench chat read\n\nRead a past chat thread.\n\n- API: `GET /chat/threads/{threadId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/chat/threads/{threadId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench chat tree\n\nRead the parent-child chat thread hierarchy.\n\n- API: `GET /chat/tree`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/chat/tree\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench chat rename\n\nRename one or more chat threads.\n\n- API: `PATCH /chat/threads`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/chat/threads\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"items\": [\n {\n \"threadId\": \"th_abc123\",\n \"title\": \"Deploy checklist\"\n }\n ]\n }'\n```\n\n### dench chat delete\n\nDelete one or more chat threads.\n\n- API: `DELETE /chat/threads`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/chat/threads\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"threadIds\": [\n \"th_abc123\"\n ]\n }'\n```\n\n### dench chat new\n\nStart a new chat-turn workflow.\n\n- API: `POST /chat/threads`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench agent new`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/chat/threads\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"prompt\": \"Summarize the latest CRM changes.\"\n }'\n```\n\n### dench chat send\n\nSend a message to an existing chat thread.\n\n- API: `POST /chat/threads/{threadId}/messages`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench agent send`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/chat/threads/{threadId}/messages\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"prompt\": \"string\"\n }'\n```\n\n### dench chat follow\n\nFollow a live chat response stream.\n\n- API: `GET /chat/threads/{threadId}/stream`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench agent follow`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/chat/threads/{threadId}/stream\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Crm\n\n### dench crm objects list [--with-references]\n\nList CRM objects.\n\n- API: `GET /crm/objects`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm objects list --compact\n\nList names, display labels, visibility and workspace counts without internal state.\n\n- API: `GET /crm/catalog/objects`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/catalog/objects\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm objects get\n\nGet a CRM object.\n\n- API: `GET /crm/objects/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{name}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm objects create\n\nCreate a CRM object.\n\n- API: `POST /crm/objects`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"lead\",\n \"description\": \"Sales leads\",\n \"defaultView\": \"kanban\",\n \"icon\": \"target\"\n }'\n```\n\n### dench crm objects update\n\nUpdate a CRM object.\n\n- API: `PATCH /crm/objects/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/objects/{name}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm objects rename\n\nRename a CRM object.\n\n- API: `POST /crm/objects/{from}/rename`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{from}/rename\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"to\": \"string\"\n }'\n```\n\n### dench crm objects delete\n\nDelete a CRM object.\n\n- API: `DELETE /crm/objects/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/objects/{name}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm objects archive\n\nHide a CRM object's workspace sidebar row for the whole workspace. Not a delete — the table keeps working. Admin-only.\n\n- API: `POST /crm/objects/{name}/archive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{name}/archive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm objects unarchive\n\nRestore a CRM object's workspace sidebar row. Admin-only.\n\n- API: `POST /crm/objects/{name}/unarchive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{name}/unarchive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views list\n\nList the saved views on a CRM object (plus the active view).\n\n- API: `GET /crm/objects/{objectName}/views`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/views\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views get\n\nGet one saved view's definition by name.\n\n- API: `GET /crm/objects/{objectName}/views/{viewName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views entries\n\nMaterialize a saved view's rows (applies its filters/sort/pins), paginated.\n\n- API: `GET /crm/objects/{objectName}/views/{viewName}/entries`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}/entries\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views create\n\nCreate a saved view (named filters/sort/columns combo) on a CRM object.\n\n- API: `POST /crm/objects/{objectName}/views`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/views\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"view\": {\n \"name\": \"Hot leads\",\n \"view_type\": \"table\",\n \"filters\": {\n \"id\": \"g1\",\n \"conjunction\": \"and\",\n \"rules\": [\n {\n \"id\": \"r1\",\n \"field\": \"Status\",\n \"operator\": \"is\",\n \"value\": \"Hot\"\n }\n ]\n },\n \"sort\": [\n {\n \"field\": \"created_at\",\n \"direction\": \"desc\"\n }\n ]\n },\n \"setActive\": true\n }'\n```\n\n### dench crm views update\n\nReplace a saved view's definition (upsert by name).\n\n- API: `PATCH /crm/objects/{objectName}/views/{viewName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"view\": {\n \"sort\": [\n {\n \"field\": \"Score\",\n \"direction\": \"desc\"\n }\n ],\n \"columns\": [\n \"Name\",\n \"Email\",\n \"Status\",\n \"Score\"\n ]\n }\n }'\n```\n\n### dench crm views rename\n\nRename a saved view in place — keeps its filters, pins, and sidebar slot.\n\n- API: `POST /crm/objects/{objectName}/views/{viewName}/rename`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}/rename\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views delete\n\nDelete a saved view by name (idempotent).\n\n- API: `DELETE /crm/objects/{objectName}/views/{viewName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views archive\n\nMove a pinned view's sidebar row into the Archived flyout. Admin-only.\n\n- API: `POST /crm/objects/{objectName}/views/{viewName}/archive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}/archive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm views unarchive\n\nRestore a view's sidebar row (re-asserts its pin). Admin-only.\n\n- API: `POST /crm/objects/{objectName}/views/{viewName}/unarchive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}/unarchive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm sidebar list\n\nDescribe the workspace sidebar: Library rows in tree order (with their groups), the home-level Pinned strip, what is hidden and why, and whether the caller is an admin.\n\n- API: `GET /crm/sidebar`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/sidebar\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm sidebar move\n\nReposition one Library row (or group) among the Library's top-level slots. Does not add a home-level Pinned tab. Workspace-shared; admin-only.\n\n- API: `POST /crm/sidebar/move`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sidebar/move\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"navId\": \"string\",\n \"position\": \"string\"\n }'\n```\n\n### dench crm sidebar group create\n\nCreate a named sidebar group (e.g. \"Hiring\") in the workspace-shared Library. Open to any member.\n\n- API: `POST /crm/sidebar/groups`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sidebar/groups\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm sidebar group rename\n\nRename a sidebar group. Open to any member.\n\n- API: `POST /crm/sidebar/groups/rename`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sidebar/groups/rename\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm sidebar group delete\n\nDissolve a sidebar group; its rows return to the top level in its slot. Open to any member.\n\n- API: `POST /crm/sidebar/groups/delete`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sidebar/groups/delete\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm sidebar group add\n\nMove a sidebar row into a group (groupId set) or back to the top level (groupId null). Open to any member.\n\n- API: `POST /crm/sidebar/groups/move`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench crm sidebar group remove`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sidebar/groups/move\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm sidebar pin\n\nPin (pinned true) or unpin a Library row — or a whole group — on the home-level Pinned shortcut strip (the \"tab on the left\"). Does not move the row inside Library. Workspace-shared; open to any member.\n\n- API: `POST /crm/sidebar/pins`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench crm sidebar unpin`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sidebar/pins\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm fields list\n\nList fields for a CRM object, including read-only calculation metadata.\n\n- API: `GET /crm/objects/{objectName}/fields`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/fields\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm fields list --compact\n\nList field names, types and effective constraints without indexing or enrichment internals.\n\n- API: `GET /crm/catalog/objects/{objectName}/fields`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/catalog/objects/{objectName}/fields\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm fields create\n\nCreate a CRM field or read-only campaign activity boolean column.\n\n- API: `POST /crm/objects/{objectName}/fields`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/fields\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"Status\",\n \"type\": \"enum\",\n \"enumValues\": [\n \"New\",\n \"Working\",\n \"Qualified\",\n \"Lost\"\n ],\n \"enumColors\": [\n \"#94a3b8\",\n \"#3b82f6\",\n \"#22c55e\",\n \"#ef4444\"\n ],\n \"indexed\": true\n }'\n```\n\n### dench crm fields update\n\nUpdate a CRM field or change/explicitly clear an existing campaign calculation.\n\n- API: `PATCH /crm/objects/{objectName}/fields/{fieldName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm fields delete\n\nDelete a CRM field.\n\n- API: `DELETE /crm/objects/{objectName}/fields/{fieldName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm fields reorder\n\nReorder CRM fields.\n\n- API: `POST /crm/objects/{objectName}/fields/reorder`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/fields/reorder\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"orderedFieldNames\": []\n }'\n```\n\n### dench crm fields enum-reorder\n\nReorder enum values.\n\n- API: `POST /crm/objects/{objectName}/fields/{fieldName}/enum/reorder`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}/enum/reorder\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"orderedValues\": []\n }'\n```\n\n### dench crm fields enum-add\n\nAdd an enum value.\n\n- API: `POST /crm/objects/{objectName}/fields/{fieldName}/enum`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}/enum\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"value\": \"Nurturing\",\n \"color\": \"#eab308\",\n \"position\": 2\n }'\n```\n\n### dench crm fields enum-remove\n\nRemove an enum value.\n\n- API: `DELETE /crm/objects/{objectName}/fields/{fieldName}/enum/{value}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}/enum/{value}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm fields enum-rename\n\nRename an enum value.\n\n- API: `POST /crm/objects/{objectName}/fields/{fieldName}/enum/{oldValue}/rename`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}/enum/{oldValue}/rename\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"newValue\": \"string\"\n }'\n```\n\n### dench crm fields enum-set-color\n\nSet an enum color.\n\n- API: `POST /crm/objects/{objectName}/fields/{fieldName}/enum/{value}/color`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/fields/{fieldName}/enum/{value}/color\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"color\": \"#22c55e\"\n }'\n```\n\n### dench crm entries list [--with-references]\n\nList CRM entries.\n\n- API: `GET /crm/objects/{objectName}/entries`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries get\n\nGet a CRM entry.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries sync-history\n\nQueue a full, paged pull of the record's email history from every connected mailbox; the ledger fills as pages land.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/sync-history`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/sync-history\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries sync-history --status\n\nHas Dench read this record's email history? One row per address per mailbox.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/sync-history`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/sync-history\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries dossier\n\nStatus of the account's research dossier — the delimited `dench:dossier` section Dench keeps in the record's Notes: status, when it was written, how many dated updates followed, the last error.\n\n- API: `GET /crm/entries/{entryId}/dossier`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/entries/{entryId}/dossier\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries dossier --regenerate\n\nResearch the account again and append a fresh dossier section to its Notes (needs a Website / Domain on the record).\n\n- API: `POST /crm/entries/{entryId}/dossier/regenerate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/entries/{entryId}/dossier/regenerate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm privacy status\n\nWhether the caller hides their own emails / messages with this record from the workspace (directly, or through its account), and whether they own a connection the toggle applies to.\n\n- API: `GET /crm/entries/{entryId}/privacy`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/entries/{entryId}/privacy\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm privacy hide|show\n\nHide (`hidden: true`) or show the caller's own emails / messages with this record to the workspace. An account covers every contact and opportunity linked to it; existing ledger rows are restamped and the shared Brief regenerates.\n\n- API: `PUT /crm/entries/{entryId}/privacy`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/entries/{entryId}/privacy\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"hidden\": true\n }'\n```\n\n### dench crm warm-intros\n\nFind ranked warm-intro paths from your own email, meetings and LinkedIn connections into a company, domain, person or CRM record id.\n\n- API: `GET /crm/warm-intros`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/warm-intros?target=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm detections list\n\nList account-detection verdicts — why a domain (or personal address) did or did not become an account: verdict, counterparty type, probabilities, evidence threads, the rows created. `kind` picks the creator: `detections` (email + sweep), `linkedin` (the LinkedIn resolver's rows) or `all` (default). Newest first.\n\n- API: `GET /crm/detections`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/detections\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm detections undo\n\nUndo what the ingestion jobs created since a timestamp (admin): `kind` = `detections` (accounts + contacts from the email detector and the sweep), `linkedin` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), `email-tasks` (auto-created tasks and cases) or `all` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. `dryRun` lists what would go; per-kind counts in `kinds`.\n\n- API: `POST /crm/detections/undo`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/detections/undo\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"since\": 0\n }'\n```\n\n### dench crm history\n\nList a CRM entry's audit history.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/history`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/history\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm activity\n\nList a CRM entry's activity ledger (comments, notes, field changes, emails, meetings, Slack, LinkedIn) in one timeline, newest first by default.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/activity`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/activity\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm brief\n\nThe record's generated Brief: health, who owes the next move, open threads, commitments, risks, next step. Read this before the ledger.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/brief`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/brief\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm context\n\nRead-only source diagnostics: accessible evidence, association reasons, last Brief source manifest, generation queue, and your mailbox delivery health. Bounded, cursor-paged snapshot; does not certify complete history.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/context`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/context\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm brief --regenerate\n\nRebuild a record's Brief from the current timeline.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/brief/regenerate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/brief/regenerate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm activity\n\nBounded per-source counts of a CRM entry's activity ledger.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/activity/count`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/activity/count\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm notes list\n\nList a CRM entry's notes (titled, document-style comments), newest first.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/notes`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/notes\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm notes create\n\nAdd a titled note to a CRM entry's activity timeline (markdown body). Research goes here, never into the Notes document.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/notes`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/notes\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm comments list\n\nList comments on a CRM entry (roots newest first, with preview replies).\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/comments`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/comments\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm comments replies\n\nList every reply under a root comment, oldest first.\n\n- API: `GET /crm/comments/{commentId}/replies`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/comments/{commentId}/replies\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm comments get\n\nGet one comment with its entry label.\n\n- API: `GET /crm/comments/{commentId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/comments/{commentId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm comments create\n\nComment on a CRM entry (markdown). Mention members with [@Name](/?member=<userId>); mention Dench with [@Dench](/?member=dench) or mentionDench.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/comments`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/comments\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"body\": \"Kickoff went well — [@Bob](/?member=user_bob) can you send the proposal? [@Dench](/?member=dench) what's the ARR here?\"\n }'\n```\n\n### dench crm comments update\n\nEdit a comment you wrote.\n\n- API: `PATCH /crm/comments/{commentId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/comments/{commentId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"body\": \"Kickoff went well — proposal sent.\"\n }'\n```\n\n### dench crm comments delete\n\nDelete a comment (kept as a tombstone when it has replies).\n\n- API: `DELETE /crm/comments/{commentId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/comments/{commentId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm comments react\n\nToggle an emoji reaction on a comment.\n\n- API: `PUT /crm/comments/{commentId}/reactions/{emoji}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/comments/{commentId}/reactions/{emoji}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm watch status\n\nWhether you follow a CRM entry's activity.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/watch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/watch\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm watch\n\nFollow or unfollow a CRM entry's activity.\n\n- API: `PUT /crm/objects/{objectName}/entries/{entryId}/watch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/watch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"watching\": true\n }'\n```\n\n### dench crm tasks mine --page\n\nPage assigned tasks in priority order (or completed tasks by recency).\n\n- API: `POST /crm/tasks/assigned/page`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/assigned/page\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks list --page\n\nPage all tasks linked to a record, including subtasks.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/tasks/page`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/tasks/page\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks prepare\n\nStart or resume preparation of exact task ordering and progress.\n\n- API: `POST /crm/tasks/prepare`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/prepare\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks mine\n\nYour open tasks (plus ones completed today).\n\n- API: `GET /crm/tasks/mine`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/tasks/mine\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks list\n\nTasks linked to a CRM entry.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/tasks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/tasks\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks create\n\nCreate a task linked to a CRM entry.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/tasks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/tasks\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"Send proposal\",\n \"assigneeUserId\": \"user_bob\",\n \"dueDateKey\": \"2026-09-05\"\n }'\n```\n\n### dench crm tasks complete\n\nMark a task done.\n\n- API: `POST /crm/tasks/{entryId}/complete`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/{entryId}/complete\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks reopen\n\nReopen a completed task.\n\n- API: `POST /crm/tasks/{entryId}/reopen`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/{entryId}/reopen\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks priority\n\nSet or clear a task's priority.\n\n- API: `PUT /crm/tasks/{entryId}/priority`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/tasks/{entryId}/priority\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"priority\": \"string\"\n }'\n```\n\n### dench crm tasks subtasks\n\nA task's subtasks.\n\n- API: `GET /crm/tasks/{entryId}/subtasks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/tasks/{entryId}/subtasks\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks create-subtask\n\nCreate a subtask under a task (inherits the parent's record relations).\n\n- API: `POST /crm/tasks/{entryId}/subtasks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/{entryId}/subtasks\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"string\"\n }'\n```\n\n### dench crm tasks parent\n\nNest a task under a parent, or promote it (parentEntryId: null).\n\n- API: `PUT /crm/tasks/{entryId}/parent`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/tasks/{entryId}/parent\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"parentEntryId\": \"string\"\n }'\n```\n\n### dench crm tasks delete\n\nDelete a task and its subtasks, or keep them as tasks.\n\n- API: `DELETE /crm/tasks/{entryId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/tasks/{entryId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks repeat\n\nHow a task repeats (rule, RRULE, trigger, ends, next due).\n\n- API: `GET /crm/tasks/{entryId}/repeat`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/tasks/{entryId}/repeat\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks repeat\n\nMake a task repeat, or change how it repeats (JSON rule or RRULE). An undated task gets its due date anchored on the first matching day from today.\n\n- API: `PUT /crm/tasks/{entryId}/repeat`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/tasks/{entryId}/repeat\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks repeat --off\n\nStop a task repeating (past occurrences are kept).\n\n- API: `DELETE /crm/tasks/{entryId}/repeat`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/tasks/{entryId}/repeat\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks repeat --skip\n\nSkip the current occurrence: the next one is created now.\n\n- API: `POST /crm/tasks/{entryId}/repeat/skip`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/{entryId}/repeat/skip\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks repeat --pause\n\nPause a repeating task.\n\n- API: `POST /crm/tasks/{entryId}/repeat/pause`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/{entryId}/repeat/pause\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks repeat --resume\n\nResume a paused repeating task.\n\n- API: `POST /crm/tasks/{entryId}/repeat/resume`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/tasks/{entryId}/repeat/resume\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks series\n\nEvery repeating-task series in the workspace.\n\n- API: `GET /crm/tasks/series`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/tasks/series\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm tasks series <seriesId> --occurrences\n\nEvery occurrence (task) of one series.\n\n- API: `GET /crm/tasks/series/{seriesId}/occurrences`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/tasks/series/{seriesId}/occurrences\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries create\n\nCreate a CRM entry.\n\n- API: `POST /crm/objects/{objectName}/entries`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"data\": {\n \"Name\": \"Joint review\",\n \"Assignee\": [\n \"user_kumar\",\n \"user_mark\"\n ],\n \"Status\": \"New\"\n }\n }'\n```\n\n### dench crm entries create-many\n\nCreate many CRM entries.\n\n- API: `POST /crm/objects/{objectName}/entries/batch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/batch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"entries\": [\n {\n \"Name\": \"Jane\",\n \"Email\": \"jane@example.com\"\n },\n {\n \"Name\": \"Bob\",\n \"Email\": \"bob@example.com\"\n }\n ]\n }'\n```\n\n### dench crm entries update\n\nUpdate a CRM entry.\n\n- API: `PATCH /crm/objects/{objectName}/entries/{entryId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"data\": {}\n }'\n```\n\n### dench crm entries update-many\n\nUpdate many CRM entries.\n\n- API: `PATCH /crm/objects/{objectName}/entries/batch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/objects/{objectName}/entries/batch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"updates\": []\n }'\n```\n\n### dench crm entries delete\n\nDelete a CRM entry.\n\n- API: `DELETE /crm/objects/{objectName}/entries/{entryId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm entries bulk-delete\n\nBulk delete CRM entries.\n\n- API: `POST /crm/objects/{objectName}/entries/delete`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/delete\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"entryIds\": []\n }'\n```\n\n### dench crm cells get\n\nGet a CRM cell value.\n\n- API: `GET /crm/objects/{objectName}/entries/{entryId}/fields/{fieldName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/fields/{fieldName}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm cells set\n\nSet a CRM cell value.\n\n- API: `PUT /crm/objects/{objectName}/entries/{entryId}/fields/{fieldName}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/fields/{fieldName}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"value\": [\n \"user_kumar\",\n \"user_mark\"\n ]\n }'\n```\n\n### dench crm cells set-many\n\nSet many CRM cell values.\n\n- API: `POST /crm/cells/batch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/cells/batch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"cells\": []\n }'\n```\n\n### dench crm cells append\n\nAppend to a CRM cell.\n\n- API: `POST /crm/objects/{objectName}/entries/{entryId}/fields/{fieldName}/append`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/entries/{entryId}/fields/{fieldName}/append\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"value\": \"value\"\n }'\n```\n\n### dench crm query [--with-references]\n\nQuery CRM entries.\n\n- API: `POST /crm/query`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/query\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"lead\",\n \"dslJson\": \"{\\\"filter\\\":{\\\"Status\\\":\\\"Qualified\\\",\\\"Score\\\":{\\\"$gt\\\":50}},\\\"sort\\\":\\\"-Score\\\",\\\"limit\\\":50}\"\n }'\n```\n\n### dench crm query --page\n\nScan CRM entries with a resumable cursor. Empty filtered pages can have more results.\n\n- API: `POST /crm/query/page`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/query/page\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"paginationOpts\": {}\n }'\n```\n\n### dench crm sql\n\nRun CRM SQL-compatible query.\n\n- API: `POST /crm/sql`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/sql\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\"\n }'\n```\n\n### dench crm aggregate\n\nAggregate CRM entries.\n\n- API: `POST /crm/aggregate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/aggregate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"fieldName\": \"string\"\n }'\n```\n\n### dench crm search [--with-references]\n\nSearch CRM entries.\n\n- API: `GET /crm/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/search?text=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm search --page\n\nSearch bounded pages of readable CRM entries, optionally projecting cells. Always follow continueCursor until isDone.\n\n- API: `GET /crm/search/page`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/search/page?text=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm statuses list\n\nList CRM statuses.\n\n- API: `GET /crm/objects/{objectName}/statuses`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/statuses\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm statuses set\n\nSet CRM statuses.\n\n- API: `PUT /crm/objects/{objectName}/statuses`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/objects/{objectName}/statuses\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"statuses\": [\n {\n \"name\": \"New\",\n \"color\": \"#94a3b8\"\n },\n {\n \"name\": \"Working\",\n \"color\": \"#3b82f6\"\n },\n {\n \"name\": \"Qualified\",\n \"color\": \"#22c55e\",\n \"isDefault\": true\n }\n ]\n }'\n```\n\n### dench crm batch\n\nApply a CRM batch.\n\n- API: `POST /crm/batch`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/batch\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"ops\": [\n {\n \"type\": \"entries.create\",\n \"objectName\": \"people\",\n \"data\": {\n \"Name\": \"Jane\"\n }\n }\n ],\n \"idempotencyKey\": \"import-2026-06-01\"\n }'\n```\n\n### dench crm transaction begin\n\nBegin a CRM transaction.\n\n- API: `POST /crm/transactions`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/transactions\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm transaction add\n\nAdd an operation to a CRM transaction.\n\n- API: `POST /crm/transactions/{txnId}/operations`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/transactions/{txnId}/operations\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"op\": {\n \"type\": \"entries.update\",\n \"entryId\": \"ent_lead99\",\n \"data\": {\n \"Status\": \"Qualified\"\n }\n }\n }'\n```\n\n### dench crm transaction commit\n\nCommit a CRM transaction.\n\n- API: `POST /crm/transactions/{txnId}/commit`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/transactions/{txnId}/commit\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm transaction abort\n\nAbort a CRM transaction.\n\n- API: `POST /crm/transactions/{txnId}/abort`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/transactions/{txnId}/abort\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm transaction inspect\n\nInspect a CRM transaction.\n\n- API: `GET /crm/transactions/{txnId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/transactions/{txnId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm docs list\n\nList CRM documents.\n\n- API: `GET /crm/docs`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/docs\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm docs create\n\nCreate a CRM document.\n\n- API: `POST /crm/docs`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/docs\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"title\": \"string\",\n \"filePath\": \"string\"\n }'\n```\n\n### dench crm docs link\n\nLink a CRM document.\n\n- API: `POST /crm/docs/link`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/docs/link\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"filePath\": \"string\"\n }'\n```\n\n### dench crm docs delete\n\nDelete a CRM document page; its workspace file stays and nested pages move up.\n\n- API: `DELETE /crm/docs/{documentId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/docs/{documentId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm actions list\n\nList CRM actions.\n\n- API: `GET /crm/actions`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/actions?entryId=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm actions create\n\nCreate or upsert an action button on a named action column (fieldName is the column header; a column can hold multiple buttons — reuse fieldName to add more).\n\n- API: `POST /crm/actions`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/actions\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"fieldName\": \"string\"\n }'\n```\n\n### dench crm actions edit\n\nUpdate an action button on a CRM field.\n\n- API: `PATCH /crm/actions/{actionId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/actions/{actionId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"fieldName\": \"string\"\n }'\n```\n\n### dench crm actions delete\n\nDelete an action button from a CRM field.\n\n- API: `DELETE /crm/actions/{actionId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/actions/{actionId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\"\n }'\n```\n\n### dench crm actions run\n\nRun a CRM action on one or more entries.\n\n- API: `POST /crm/actions/{actionId}/runs`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/actions/{actionId}/runs\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"fieldId\": \"string\",\n \"entryIds\": []\n }'\n```\n\n### dench members list\n\nList workspace members for CRM user fields.\n\n- API: `GET /members`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/members\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm reports generate\n\nGenerate a CRM report.\n\n- API: `POST /crm/reports`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/reports\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"type\": \"pie\",\n \"groupByField\": \"string\"\n }'\n```\n\n### dench crm analytics get\n\nRead an object's analytics dashboard: panels, field roles, the strip's collapsed flag, the named view's own dashboard (if any), and the fields panels may bucket on (synthetic $createdAt / $location last).\n\n- API: `GET /crm/objects/{objectName}/analytics`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/objects/{objectName}/analytics\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm analytics compute\n\nCompute chart-ready results (buckets / series / values) for the stored dashboard, a subset of its panels, or ad-hoc panel definitions — optionally scoped to a saved view, a period preset (with the previous interval as previousValue) and extra filters. Same query the strip renders from.\n\n- API: `POST /crm/objects/{objectName}/analytics/compute`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/compute\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"period\": \"this_month\",\n \"panels\": [\n {\n \"id\": \"adhoc:leads-by-source\",\n \"title\": \"New leads by source\",\n \"type\": \"donut\",\n \"metric\": \"count\",\n \"groupBy\": \"Source\",\n \"sortOrder\": 0\n }\n ]\n }'\n```\n\n### dench crm analytics save\n\nCreate or update one panel (upsert by id). With viewName the write lands on that saved view's own dashboard, forking a copy if it was still inheriting the object's.\n\n- API: `PUT /crm/objects/{objectName}/analytics/panels/{panelId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/panels/{panelId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"panel\": {\n \"title\": \"Open pipeline\",\n \"type\": \"stat\",\n \"metric\": \"sum\",\n \"derived\": \"open_pipeline\",\n \"sortOrder\": 10\n }\n }'\n```\n\n### dench crm analytics update\n\nEdit part of one stored panel: only the keys in `patch` change (title, type, metric, metricField, groupBy, dateField, dateBucket, filters, derived, span, hidden, sortOrder); null clears an optional key. What the card's ⋮ menu writes.\n\n- API: `PATCH /crm/objects/{objectName}/analytics/panels/{panelId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/panels/{panelId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"patch\": {}\n }'\n```\n\n### dench crm analytics hide\n\nTake a chart off the strip above the table (hidden: true). It stays in the full analytics view, counted by the strip's “+N more”.\n\n- API: `POST /crm/objects/{objectName}/analytics/panels/{panelId}/hide`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/panels/{panelId}/hide\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm analytics show\n\nBring a hidden chart back onto the strip (hidden: false).\n\n- API: `POST /crm/objects/{objectName}/analytics/panels/{panelId}/show`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/panels/{panelId}/show\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm analytics resize\n\nSet a card's width on the 6-track dashboard grid: span 2 (third), 3 (half), 4 (two thirds), 6 (full), or null for the chart kind's default.\n\n- API: `POST /crm/objects/{objectName}/analytics/panels/{panelId}/resize`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/panels/{panelId}/resize\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"span\": 0\n }'\n```\n\n### dench crm analytics delete\n\nDelete one panel (idempotent). Template panels are tombstoned so a re-install never resurrects them.\n\n- API: `DELETE /crm/objects/{objectName}/analytics/panels/{panelId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/panels/{panelId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm analytics reorder\n\nPersist the full panel order. panelIds must name every stored panel of the targeted dashboard.\n\n- API: `POST /crm/objects/{objectName}/analytics/reorder`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/reorder\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"panelIds\": [\n \"tpl:sales:total-leads\",\n \"tpl:sales:leads-by-source\"\n ]\n }'\n```\n\n### dench crm analytics roles\n\nSet the object's analytics setup — the field roles shared by every chart and view (amount, stage, won/lost/converted values, stageProbabilities, closeDate, recurrence, owner, location). Replaces the mapping; with merge: true only the keys given change and null clears one.\n\n- API: `PUT /crm/objects/{objectName}/analytics/roles`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/roles\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"fieldRoles\": {\n \"amount\": \"Amount\",\n \"stage\": \"Stage\",\n \"wonValues\": [\n \"Closed Won\"\n ],\n \"lostValues\": [\n \"Closed Lost\"\n ],\n \"closeDate\": \"Close Date\",\n \"owner\": \"Owner\",\n \"location\": \"Account.HQ Location\",\n \"recurrence\": \"annual\"\n }\n }'\n```\n\n### dench crm analytics collapse\n\nCollapse the analytics strip above the object's table (team-shared, like saved views).\n\n- API: `POST /crm/objects/{objectName}/analytics/collapse`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/collapse\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm analytics expand\n\nExpand the analytics strip above the object's table.\n\n- API: `POST /crm/objects/{objectName}/analytics/expand`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/analytics/expand\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm analytics scope\n\nGive a saved view its own dashboard (mode \"own\": starts as a copy of the object's panels) or hand it back to the object's shared one (mode \"shared\").\n\n- API: `POST /crm/objects/{objectName}/views/{viewName}/analytics/scope`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/objects/{objectName}/views/{viewName}/analytics/scope\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"mode\": \"own\"\n }'\n```\n\n### dench crm enrich cell\n\nRequest enrichment for one CRM cell.\n\n- API: `POST /crm/enrich/cell`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/enrich/cell\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"entryId\": \"string\",\n \"fieldName\": \"string\"\n }'\n```\n\n### dench crm enrich object\n\nRequest enrichment for a CRM object.\n\n- API: `POST /crm/enrich/object`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/enrich/object\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"string\",\n \"fieldName\": \"string\"\n }'\n```\n\n### dench crm people search\n\nSearch for people through the enrichment gateway. `companyDomains` takes up to 1000 domains (e.g. a resolved company list; `dench leads find --company-list <id|view>` resolves one for you) — the gateway fans large lists out as sequential vendor-safe chunks behind one `nextPageToken` stream.\n\n- API: `POST /enrichment/people/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/people/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"titles\": [\n \"Head of Sales\"\n ],\n \"industries\": [\n \"SaaS\"\n ],\n \"companyDomains\": [\n \"acme.com\",\n \"globex.com\"\n ],\n \"limit\": 10\n }'\n```\n\n### dench crm companies search\n\nSearch for companies through the enrichment gateway (also `dench companies find`).\n\n- API: `POST /enrichment/company/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench companies find`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/company/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"domain\": \"example.com\"\n }'\n```\n\n### dench jobs find\n\nSearch job postings through Dench find. `companyDomains` takes up to 1000 domains (chunked automatically); `dench jobs find --company-list <id|view>` resolves a saved company list into it.\n\n- API: `POST /enrichment/jobs/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/jobs/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"titles\": [\n \"Account Executive\"\n ],\n \"locations\": [\n \"San Francisco\"\n ],\n \"companyDomains\": [\n \"acme.com\",\n \"globex.com\"\n ],\n \"limit\": 50\n }'\n```\n\n### dench crm enrich cell\n\nLook up one person profile.\n\n- API: `POST /enrichment/person`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/person\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"linkedinURL\": \"https://www.linkedin.com/in/janedoe\"\n }'\n```\n\n### dench crm enrich cell\n\nLook up one company profile.\n\n- API: `POST /enrichment/company`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/company\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"website\": \"acme.com\"\n }'\n```\n\n### dench crm enrich cell\n\nLook up verified emails and phones for people.\n\n- API: `POST /enrichment/person/contact`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/person/contact\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"contacts\": [\n {\n \"linkedinUrl\": \"https://www.linkedin.com/in/janedoe\"\n }\n ]\n }'\n```\n\n### dench crm enrich profiles\n\nLook up up to 100 people or company profiles without buying emails or phones. Pass kind (people|companies) and lookups; results preserve inputIndex. People require linkedinUrl or email; companies require domain or linkedinUrl.\n\n- API: `POST /enrichment/profiles/bulk`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/profiles/bulk\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"kind\": \"companies\",\n \"lookups\": [\n {\n \"domain\": \"acme.com\"\n }\n ]\n }'\n```\n\n### dench companies related\n\nRead company employees, founders, funding, investors, acquisitions, or investments. Pass domain or linkedinUrl, kind, limit (1–100), and optional pageToken. Does not import CRM records or buy contacts.\n\n- API: `POST /enrichment/company/related`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/company/related\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"domain\": \"acme.com\",\n \"kind\": \"founders\",\n \"limit\": 10\n }'\n```\n\n### dench leads find --limit 1\n\nPreview how many records a find would return.\n\n- API: `POST /enrichment/search/preview`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/enrichment/search/preview\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"kind\": \"people\",\n \"titles\": [\n \"VP Sales\"\n ]\n }'\n```\n\n### dench leads filters\n\nList Lead Finder filter vocabularies: exact enum values (seniorities, functions, industries, headcount, company types, languages) and curated suggestions (titles, locations, company HQ, universities, skills, keywords).\n\n- API: `GET /local/enrichment/filter-options`\n- Auth: No bearer token required.\n\n```bash\n# dench leads filters\n# Local-only: Catalogs are bundled with the CLI. Over HTTPS, fetch https://dench.com/references/find-filter-options.json instead.\n```\n\n### dench crm templates list\n\nList one-click CRM templates (objects + automations + sample rows) with per-workspace installed flags.\n\n- API: `GET /crm/templates`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/templates\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm templates install\n\nInstall a CRM template. Idempotent: re-installs top up missing pieces and never duplicate objects, automations, or sample rows.\n\n- API: `POST /crm/templates/{templateId}/install`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/templates/{templateId}/install\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm templates remove-sample-data\n\nDelete a CRM template's sample rows (tagged \"Sample\"); schema, views, and automations stay.\n\n- API: `POST /crm/templates/{templateId}/remove-sample-data`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/templates/{templateId}/remove-sample-data\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm automations list\n\nList deterministic CRM automations (rules that fire inside entry writes, e.g. qualified prospect → opportunity).\n\n- API: `GET /crm/automations`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/automations\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm automations enable|disable\n\nEnable or disable a CRM automation.\n\n- API: `PATCH /crm/automations/{automationId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/crm/automations/{automationId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench crm exports start\n\nStart a server-side CSV export of a CRM object into the workspace files (/exports). Returns at once; one export runs per workspace, and a second start returns the running one.\n\n- API: `POST /crm/exports`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/crm/exports\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"objectName\": \"people\",\n \"columns\": [\n \"Name\",\n \"Email\",\n \"Status\"\n ],\n \"where\": {\n \"Status\": \"Customer\"\n }\n }'\n```\n\n### dench crm exports get\n\nRead a CRM CSV export's progress, and its file path and download link once done.\n\n- API: `GET /crm/exports/{jobId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/crm/exports/{jobId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Email\n\n### dench email identity verify\n\nStart Dench Emailing Service sender verification.\n\n- API: `POST /email/identities/verify`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/identities/verify\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"type\": \"email\",\n \"identity\": \"founder@example.com\"\n }'\n```\n\n### dench email identity verify\n\nCreate a durable Dench email sending identity record.\n\n- API: `POST /email/sending-identities`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sending-identities\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"type\": \"domain\",\n \"domain\": \"example.com\",\n \"fromEmail\": \"founder@example.com\",\n \"fromName\": \"Ada at Example\"\n }'\n```\n\n### dench email identity status --identity-id\n\nRefresh a Dench Emailing Service sender verification status.\n\n- API: `POST /email/sending-identities/{identityId}/status`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sending-identities/{identityId}/status\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity verify\n\nBegin the full Dench sender verification flow for a sending identity.\n\n- API: `POST /email/sending-identities/{identityId}/verify`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sending-identities/{identityId}/verify\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity status\n\nRead Dench Emailing Service sender verification status.\n\n- API: `GET /email/identities/{identity}/status`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/identities/{identity}/status\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity list\n\nList the workspace's email sending identities.\n\n- API: `GET /email/sending-identities`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/sending-identities\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity dns\n\nFetch DNS records (DKIM/SPF/DMARC) for a pending domain sender verification.\n\n- API: `GET /email/sending-identities/{identityId}/dns`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/sending-identities/{identityId}/dns\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity disable\n\nSoft-disable a sender (or every sender on a domain) for the workspace; sends are blocked until restored.\n\n- API: `POST /email/sending-identities/{identity}/disable`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sending-identities/{identity}/disable\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity restore\n\nRestore a previously disabled sender for the workspace.\n\n- API: `POST /email/sending-identities/{identity}/restore`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sending-identities/{identity}/restore\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email identity delete\n\nPermanently delete a sender (or every sender on a domain) from the workspace; re-adding it requires verification from scratch.\n\n- API: `DELETE /email/sending-identities/{identity}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/email/sending-identities/{identity}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email inbox search\n\nSearch authorized synced mailbox headers with bounded cursor pagination. isDone covers stored records, not provider completeness.\n\n- API: `GET /email/inbox/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/inbox/search\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email inbox thread\n\nRead a bounded page of synced headers using an exact thread handle from inbox search; bodies remain on demand.\n\n- API: `GET /email/inbox/threads/{threadHandle}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/inbox/threads/{threadHandle}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email inbox message\n\nRead a bounded stored body using an exact message handle from inbox search; rechecks mailbox and record privacy.\n\n- API: `GET /email/inbox/messages/{messageHandle}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/inbox/messages/{messageHandle}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email draft create\n\nCreate an editable Dench email draft and synchronize its selected native mailbox asynchronously. Use a stable requestId for retries.\n\n- API: `POST /email/drafts`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/drafts\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"requestId\": \"string\"\n }'\n```\n\n### dench email draft show\n\nRead an email draft, eligible senders and provider sync status.\n\n- API: `GET /email/drafts/{draftId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/drafts/{draftId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email draft senders\n\nList native mailboxes this caller may use.\n\n- API: `GET /email/drafts/senders`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/drafts/senders\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email draft update\n\nSave draft content using expectedRevision; sender changes require a new draft after provider binding.\n\n- API: `PATCH /email/drafts/{draftId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/email/drafts/{draftId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"expectedRevision\": 0,\n \"patch\": {}\n }'\n```\n\n### dench email draft send\n\nSend the current Dench draft revision through its native mailbox. Repeated requests share a durable receipt.\n\n- API: `POST /email/drafts/{draftId}/send`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/drafts/{draftId}/send\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"expectedRevision\": 0\n }'\n```\n\n### dench email draft attach\n\nUpload attachment bytes authorized against this draft before adding its storage reference.\n\n- API: `POST /email/drafts/{draftId}/attachments`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/drafts/{draftId}/attachments\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"string\",\n \"contentType\": \"string\",\n \"contentBase64\": \"string\"\n }'\n```\n\n### dench email draft signature\n\nLoad the selected mailbox signature for explicit visible insertion.\n\n- API: `GET /email/drafts/{draftId}/signature`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/drafts/{draftId}/signature\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email send [--mailbox <id/email>]\n\nSend through a native Gmail or Outlook mailbox with a durable request receipt. Only use for an explicit send request.\n\n- API: `POST /email/native/send`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/native/send\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"requestId\": \"send-intro-001\",\n \"to\": [\n {\n \"email\": \"ada@example.com\",\n \"name\": \"Ada\"\n }\n ],\n \"subject\": \"Introduction\",\n \"textBody\": \"Hello Ada\"\n }'\n```\n\n### dench email send --from <verified-email>\n\nSend one raw email (no campaign): to/cc/bcc, custom from-name and reply-to, optional reply threading via replyToMessageId.\n\n- API: `POST /email/send`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/send\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"fromEmail\": \"founder@example.com\",\n \"to\": [\n {\n \"email\": \"ada@lovelace.dev\",\n \"name\": \"Ada\"\n }\n ],\n \"subject\": \"Quick intro\",\n \"htmlBody\": \"<p>Hi Ada — great meeting you!</p>\"\n }'\n```\n\n### dench email message status\n\nRead a raw email message's status and open/click counters.\n\n- API: `GET /email/messages/{messageId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/messages/{messageId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email message list\n\nList recent raw email messages for the workspace.\n\n- API: `GET /email/messages`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/messages\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email template create\n\nCreate a managed email campaign template.\n\n- API: `POST /email/templates`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/templates\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"Intro outreach\",\n \"subject\": \"Hi {{firstName}}\",\n \"htmlBody\": \"<p>Hi {{firstName}}, saw your work at {{company}}.</p>\"\n }'\n```\n\n### dench email template preview\n\nPreview a managed email campaign template.\n\n- API: `POST /email/templates/{templateId}/preview`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/templates/{templateId}/preview\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"data\": {\n \"firstName\": \"Ada\",\n \"company\": \"Lovelace Labs\"\n }\n }'\n```\n\n### dench email campaign create\n\nCreate a managed email campaign draft from a connected inbox or verified sender.\n\n- API: `POST /email/campaigns`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"Q2 outreach\",\n \"identityId\": \"founder@example.com\",\n \"templateId\": \"etpl_abc123\"\n }'\n```\n\n### dench email campaign status\n\nRead campaign status and counters.\n\n- API: `GET /email/campaigns/{campaignId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/campaigns/{campaignId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign recipients add\n\nAdd recipients to a managed email campaign.\n\n- API: `POST /email/campaigns/{campaignId}/recipients`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/recipients\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"recipients\": [\n {\n \"email\": \"ada@lovelace.dev\",\n \"displayName\": \"Ada Lovelace\",\n \"personalization\": {\n \"firstName\": \"Ada\",\n \"company\": \"Lovelace Labs\"\n }\n }\n ]\n }'\n```\n\n### dench email campaign preview\n\nPreview rendered messages for a campaign sample.\n\n- API: `POST /email/campaigns/{campaignId}/preview`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/preview\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"sample\": 5\n }'\n```\n\n### dench email campaign submit\n\nSubmit a campaign for approval or sending.\n\n- API: `POST /email/campaigns/{campaignId}/submit`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/submit\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign pause\n\nPause a sending email campaign.\n\n- API: `POST /email/campaigns/{campaignId}/pause`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/pause\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign resume\n\nResume a paused email campaign.\n\n- API: `POST /email/campaigns/{campaignId}/resume`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/resume\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign cancel\n\nCancel an email campaign.\n\n- API: `POST /email/campaigns/{campaignId}/cancel`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/cancel\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign list\n\nList managed email campaigns (paginated, optional status filter).\n\n- API: `GET /email/campaigns`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/campaigns\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign recipients list\n\nList a campaign's recipients (paginated, optional status filter).\n\n- API: `GET /email/campaigns/{campaignId}/recipients`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/campaigns/{campaignId}/recipients\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email campaign recipients add-from-object\n\nAdd campaign recipients from a CRM object: pick the object, the email field, and the entry ids.\n\n- API: `POST /email/campaigns/{campaignId}/recipients/from-object`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/campaigns/{campaignId}/recipients/from-object\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence create\n\nCreate a follow-up sequence from a connected inbox or verified sender.\n\n- API: `POST /email/sequences`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence update\n\nUpdate a sequence's name, sender, or reply/stop settings.\n\n- API: `POST /email/sequences/{sequenceId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence activate\n\nActivate a sequence so its enrollments begin sending.\n\n- API: `POST /email/sequences/{sequenceId}/activate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/activate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence deactivate\n\nDeactivate a sequence (pause sending, revert to draft).\n\n- API: `POST /email/sequences/{sequenceId}/deactivate`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/deactivate\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence archive\n\nArchive a sequence (stops all sending).\n\n- API: `POST /email/sequences/{sequenceId}/archive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/archive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence list\n\nList the workspace's follow-up sequences.\n\n- API: `GET /email/sequences`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/sequences\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence status\n\nRead a sequence with its ordered steps.\n\n- API: `GET /email/sequences/{sequenceId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/sequences/{sequenceId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence steps add\n\nAdd a step (subject, body, and wait delay) to a sequence.\n\n- API: `POST /email/sequences/{sequenceId}/steps`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/steps\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence steps update\n\nUpdate a sequence step's subject, body, or delay.\n\n- API: `POST /email/sequences/steps/{stepId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/steps/{stepId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence steps remove\n\nRemove a step from a sequence.\n\n- API: `POST /email/sequences/steps/{stepId}/remove`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/steps/{stepId}/remove\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence steps reorder\n\nReorder a sequence's steps.\n\n- API: `POST /email/sequences/{sequenceId}/steps/reorder`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/steps/reorder\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence enroll\n\nEnroll explicit recipients into a sequence.\n\n- API: `POST /email/sequences/{sequenceId}/enroll`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/enroll\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence enroll-from-object\n\nEnroll people from a CRM object: pick the object, the email field, and the entry ids.\n\n- API: `POST /email/sequences/{sequenceId}/enroll/from-object`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/{sequenceId}/enroll/from-object\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence enrollments list\n\nList a sequence's enrollments (paginated, optional status filter).\n\n- API: `GET /email/sequences/{sequenceId}/enrollments`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/email/sequences/{sequenceId}/enrollments\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence enrollment pause\n\nPause one enrollment.\n\n- API: `POST /email/sequences/enrollments/{enrollmentId}/pause`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/enrollments/{enrollmentId}/pause\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence enrollment resume\n\nResume one paused enrollment.\n\n- API: `POST /email/sequences/enrollments/{enrollmentId}/resume`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/enrollments/{enrollmentId}/resume\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench email sequence enrollment stop\n\nStop one enrollment (no further steps send).\n\n- API: `POST /email/sequences/enrollments/{enrollmentId}/stop`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/email/sequences/enrollments/{enrollmentId}/stop\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Environments\n\n### dench env list\n\nList workspace-shared reusable setups and ready revisions (metadata only).\n\n- API: `GET /environments`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/environments\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench env show\n\nInspect a saved setup, its manifest, and an optional immutable revision.\n\n- API: `GET /environments/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/environments/{name}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench env save\n\nReserve an owner-bound source upload. Prefix the uploaded bytes with the returned proof before saving.\n\n- API: `POST /environments/uploads`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/environments/uploads\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"kind\": \"string\",\n \"size\": 0,\n \"sha256\": \"string\"\n }'\n```\n\n### dench env save\n\nPublish an explicitly saved source and manifest for one-time preparation. Returns pending/building until verified; does not run the task.\n\n- API: `POST /environments/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/environments/{name}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"manifest\": {},\n \"uploadId\": \"string\",\n \"storageId\": \"string\",\n \"sha256\": \"string\"\n }'\n```\n\n### dench env delete\n\nRetire a saved setup from new selection; retain immutable revisions and active job evidence.\n\n- API: `DELETE /environments/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/environments/{name}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench env run\n\nRun a command with prepared dependencies and declared credentials, saving declared state with a revision check.\n\n- API: `POST /local/environments/run`\n- Auth: No bearer token required.\n\n```bash\n# dench env run\n# Local-only: Execution occurs in the CLI process. Use dench env run NAME -- COMMAND; secret-bearing execution resolution is not a general REST read endpoint.\n```\n\n## Files\n\n### dench files ls\n\nList workspace files.\n\n- API: `GET /files`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/files\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench files cat\n\nRead a workspace file's text.\n\n- API: `GET /files/content`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/files/content?path=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench files write\n\nWrite a workspace file's text.\n\n- API: `PUT /files/content`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/files/content\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"path\": \"string\",\n \"content\": \"string\"\n }'\n```\n\n### dench files download\n\nGet a signed file download URL.\n\n- API: `GET /files/download-url`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/files/download-url?path=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench files rm\n\nRemove a workspace file or directory.\n\n- API: `DELETE /files`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/files\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"path\": \"string\"\n }'\n```\n\n### dench files mv\n\nMove a workspace file or directory.\n\n- API: `POST /files/move`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/files/move\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"from\": \"string\",\n \"to\": \"string\"\n }'\n```\n\n### dench files mkdir\n\nCreate a workspace directory (and any missing parents). Idempotent.\n\n- API: `POST /files/mkdir`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/files/mkdir\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"path\": \"string\"\n }'\n```\n\n### dench stage\n\nStage uploaded content into the workspace.\n\n- API: `POST /files/stage`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/files/stage\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Gateway\n\n### dench search\n\nSearch the web through the Dench gateway.\n\n- API: `POST /search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"query\": \"latest AI CRM workflows\",\n \"numResults\": 5\n }'\n```\n\n### dench search contents\n\nFetch page contents through the Dench gateway.\n\n- API: `POST /search/contents`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/search/contents\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"urls\": []\n }'\n```\n\n### dench search answer\n\nAnswer a question with web search.\n\n- API: `POST /search/answer`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/search/answer\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"query\": \"string\"\n }'\n```\n\n### dench web scrape\n\nRead a page as clean Markdown through Dench web.\n\n- API: `POST /context/web-scrape-markdown`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-scrape-markdown\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"url\": \"https://example.com\",\n \"useMainContentOnly\": true\n }\n }'\n```\n\n### dench web brand\n\nLook up a brand kit from a domain or email.\n\n- API: `POST /context/brand-retrieve`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/brand-retrieve\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"domain\": \"stripe.com\"\n }\n }'\n```\n\n### dench web sitemap\n\nList sitemap URLs for a domain.\n\n- API: `POST /context/web-sitemap`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-sitemap\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"domain\": \"example.com\",\n \"maxLinks\": 1000\n }\n }'\n```\n\n### dench web crawl\n\nCrawl a site to Markdown (capped).\n\n- API: `POST /context/web-crawl`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-crawl\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"url\": \"https://example.com\",\n \"maxPages\": 15,\n \"useMainContentOnly\": true\n }\n }'\n```\n\n### dench web screenshot\n\nCapture a rendered page screenshot.\n\n- API: `POST /context/web-screenshot`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-screenshot\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"directUrl\": \"https://example.com\",\n \"fullScreenshot\": false\n }\n }'\n```\n\n### dench web extract\n\nExtract typed fields from a page using a JSON Schema.\n\n- API: `POST /context/web-extract`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-extract\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"url\": \"https://example.com\",\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n }\n }\n }\n }\n }'\n```\n\n### dench web product\n\nExtract a product listing from a URL.\n\n- API: `POST /context/web-product`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-product\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"url\": \"https://example.com/product\"\n }\n }'\n```\n\n### dench web competitors\n\nFind competitors of a domain.\n\n- API: `POST /context/web-competitors`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/web-competitors\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"domain\": \"stripe.com\",\n \"numCompetitors\": 5\n }\n }'\n```\n\n### dench web styleguide\n\nRead a brand styleguide from a domain.\n\n- API: `POST /context/brand-styleguide`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/brand-styleguide\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"domain\": \"stripe.com\"\n }\n }'\n```\n\n### dench web fonts\n\nRead site fonts from a domain.\n\n- API: `POST /context/brand-fonts`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/brand-fonts\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"domain\": \"stripe.com\"\n }\n }'\n```\n\n### dench web classify\n\nClassify a domain with NAICS or SIC.\n\n- API: `POST /context/classify-naics`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/classify-naics\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"input\": \"stripe.com\"\n }\n }'\n```\n\n### dench web brand-search\n\nAutocomplete brand names.\n\n- API: `POST /context/brand-search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/context/brand-search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"input\": {\n \"query\": \"stripe\"\n }\n }'\n```\n\n### dench image generate\n\nGenerate an image through the Dench gateway.\n\n- API: `POST /images/generations`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/images/generations\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"prompt\": \"A minimal flat-vector app icon\",\n \"size\": \"1024x1024\"\n }'\n```\n\n### dench image edit\n\nEdit an image through the Dench gateway.\n\n- API: `POST /images/edits`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/images/edits\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"prompt\": \"Make the background transparent\",\n \"input_images_base64\": [\n \"iVBORw0KGgoAAAANSUhEUg...\"\n ]\n }'\n```\n\n### dench integrations\n\nList every connected integration — connected apps plus the Gmail, Outlook, Calendar, LinkedIn and Slack connections Dench provides itself (Slack rows report source: dench).\n\n- API: `GET /integrations`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/integrations\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench tool status\n\nList connected tool accounts.\n\n- API: `GET /tools/status`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/tools/status\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench tool connect\n\nCreate a tool OAuth connection link. Slack is in-house, never a third-party connection: for toolkit slack the CLI prints the first-party install URL (/api/slack/install?slug=<workspace>, org admin) instead of calling this endpoint.\n\n- API: `POST /tools/connections`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/tools/connections\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench tool search\n\nSearch for external tool actions.\n\n- API: `POST /tools/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/tools/search\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"queries\": [\n {\n \"use_case\": \"list Slack channels\"\n }\n ]\n }'\n```\n\n### dench tool run\n\nRun an external tool action. SLACK_* slugs (SLACK_SEND_MESSAGE with Block Kit blocks/buttons, SLACK_FETCH_HISTORY, SLACK_LIST_CHANNELS, …) run through Dench's in-house Slack app install — any channel in the connected workspace — and are always preferred over any third-party Slack connection. Slack writes (send, react, upload, edit, delete) are shared-only: they act as the shared Dench bot, so a personal CLI session or chat is refused with `slack_shared_only`; ask Dench in Slack, or create a shared Slack automation there.\n\n- API: `POST /tools/run`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/tools/run\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"tool_slug\": \"SLACK_LIST_CHANNELS\",\n \"arguments\": {\n \"limit\": 10\n }\n }'\n```\n\n### dench tool disconnect\n\nDisconnect an external tool account.\n\n- API: `DELETE /tools/connections/{connectionId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/tools/connections/{connectionId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench tool labels\n\nList human names given to connected accounts.\n\n- API: `GET /tools/labels`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/tools/labels\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench tool label\n\nName a connected account, or clear its name with an empty string.\n\n- API: `PUT /tools/connections/{connectionId}/label`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/tools/connections/{connectionId}/label\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"displayName\": \"string\"\n }'\n```\n\n### dench mcp list\n\nList custom MCP servers connected in this workspace that you can use.\n\n- API: `GET /mcp/servers`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/mcp/servers\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench mcp tools <server>\n\nList cached tools exposed by a connected custom MCP server.\n\n- API: `GET /mcp/servers/{server}/tools`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/mcp/servers/{server}/tools\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench mcp call <server> <tool>\n\nCall a tool on a connected custom MCP server.\n\n- API: `POST /mcp/servers/{server}/call`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/mcp/servers/{server}/call\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"tool\": \"string\"\n }'\n```\n\n## Lists\n\n### dench lists\n\nList saved searches (find-result lists) in the workspace, newest first.\n\n- API: `GET /lists`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench lists list`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/lists\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists rows\n\nRead saved rows with current enrichment results and original indices; cursor-paged, without repeating a search.\n\n- API: `GET /lists/{artifactId}/rows`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/lists/{artifactId}/rows\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists enrich\n\nBuy contact details for 1–100 saved profiles and save them to the list. Skips fields already found, looked up empty, or in flight. Requires a signed-in member or their personal agent.\n\n- API: `POST /lists/{artifactId}/enrich`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/lists/{artifactId}/enrich\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"rows\": [],\n \"fields\": []\n }'\n```\n\n### dench artifacts import\n\nExplicitly import selected saved profiles, optionally filtered by enrichment, with a configured Lead status. Reuses CRM records; never sends outreach or triggers conversion.\n\n- API: `POST /lists/{artifactId}/import`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/lists/{artifactId}/import\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"to\": \"lead\"\n }'\n```\n\n### dench lists show\n\nGet one saved search / list by artifact id.\n\n- API: `GET /lists/{artifactId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/lists/{artifactId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists save\n\nSave find results as a named list (rows + filters become a workspace artifact).\n\n- API: `POST /lists`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench leads find --save-as \"Name\"`\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/lists\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"createdFrom\": \"find_people\",\n \"title\": \"string\"\n }'\n```\n\n### dench lists update\n\nUpdate a saved list in place (title, filters, and/or replacement rows).\n\n- API: `PATCH /lists/{artifactId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/lists/{artifactId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists rename\n\nRename a saved search / list.\n\n- API: `POST /lists/{artifactId}/rename`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/lists/{artifactId}/rename\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists delete\n\nDelete a saved search / list, its exported CSV/JSONL files, and any linked watch.\n\n- API: `DELETE /lists/{artifactId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/lists/{artifactId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists reviews\n\nRead durable enrichment activity (legacy review metadata remains readable). Use lists rows for current saved profiles and contacts.\n\n- API: `GET /lists/{artifactId}/reviews`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/lists/{artifactId}/reviews\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench lists assess\n\nSuggest ICP fit for one profile. Never changes a human review decision.\n\n- API: `POST /lists/{artifactId}/assess`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/lists/{artifactId}/assess\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"row\": {},\n \"suggestion\": {}\n }'\n```\n\n## Local\n\n### dench sessions\n\nList local CLI sessions.\n\n- API: `GET /local/sessions`\n- Auth: No bearer token required.\n\n```bash\n# dench sessions\n# Local-only: CLI sessions live in the caller's ~/.dench/config.json.\n```\n\n### dench use <session-key-or-workspace-slug>\n\nSelect a local CLI session.\n\n- API: `POST /local/sessions/use`\n- Auth: No bearer token required.\n\n```bash\n# dench use <session-key-or-workspace-slug>\n# Local-only: The server cannot mutate the caller's local CLI config.\n```\n\n### dench logout\n\nSign out: end CLI sessions on the server and remove them locally.\n\n- API: `POST /local/logout`\n- Auth: No bearer token required.\n\n```bash\n# dench logout\n# Local-only: The server cannot mutate the caller's local CLI config.\n```\n\n### dench backend show|set|clear\n\nConfigure the CLI backend target.\n\n- API: `POST /local/backend`\n- Auth: No bearer token required.\n\n```bash\n# dench backend show|set|clear\n# Local-only: Backend selection is local CLI state.\n```\n\n### dench crm import\n\nImport a local CSV into a CRM object.\n\n- API: `POST /local/crm/import`\n- Auth: No bearer token required.\n\n```bash\n# dench crm import\n# Local-only: Reads a CSV from the caller's local filesystem. Over the API, parse the CSV client-side and POST rows to /crm/objects/{objectName}/entries/batch.\n```\n\n### dench crm export\n\nExport a CRM object to a local CSV.\n\n- API: `POST /local/crm/export`\n- Auth: No bearer token required.\n\n```bash\n# dench crm export\n# Local-only: Writes a CSV to the caller's local filesystem. Over the API, call POST /crm/query and format CSV client-side.\n```\n\n### dench meetings import\n\nImport calls from a local CSV/JSONL: meeting fields plus transcript, action items and attendees per row.\n\n- API: `POST /local/meetings/import`\n- Auth: No bearer token required.\n\n```bash\n# dench meetings import\n# Local-only: Reads a CSV/JSONL from the caller's local filesystem. Over the API: POST /crm/objects/meeting/entries/batch with seedKey per row, then POST /meetings/{meetingEntryId}/transcript, POST …/action-items and PUT …/participants for each created meeting.\n```\n\n### dench fs\n\nRun the local file sync daemon.\n\n- API: `POST /local/fs`\n- Auth: No bearer token required.\n\n```bash\n# dench fs\n# Local-only: The fs daemon watches the caller's local /workspace mount.\n```\n\n## Meetings\n\n### dench meetings list\n\nList meetings, newest first, with status and participants.\n\n- API: `GET /meetings`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/meetings\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings transcript get\n\nRead a meeting's transcript, in order, one page at a time.\n\n- API: `GET /meetings/{meetingEntryId}/transcript`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/meetings/{meetingEntryId}/transcript\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings transcript set\n\nAppend up to 500 transcript segments to a meeting (speakers with an email link to existing people).\n\n- API: `POST /meetings/{meetingEntryId}/transcript`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/meetings/{meetingEntryId}/transcript\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"segments\": []\n }'\n```\n\n### dench meetings transcript clear\n\nDelete a batch of a meeting's transcript segments; repeat until `done` before re-appending.\n\n- API: `DELETE /meetings/{meetingEntryId}/transcript`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/meetings/{meetingEntryId}/transcript\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings action-items list\n\nList a meeting's action items.\n\n- API: `GET /meetings/{meetingEntryId}/action-items`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/meetings/{meetingEntryId}/action-items\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings action-items set\n\nAdd action items to a meeting; `replace: true` swaps the whole list.\n\n- API: `POST /meetings/{meetingEntryId}/action-items`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/meetings/{meetingEntryId}/action-items\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"items\": []\n }'\n```\n\n### dench meetings action-items done\n\nTick or untick one action item.\n\n- API: `PATCH /meetings/action-items/{itemId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/meetings/action-items/{itemId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"done\": true\n }'\n```\n\n### dench meetings action-items delete\n\nDelete one action item.\n\n- API: `DELETE /meetings/action-items/{itemId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/meetings/action-items/{itemId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings participants list\n\nWho was in the meeting, merged with the linked calendar invite.\n\n- API: `GET /meetings/{meetingEntryId}/participants`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/meetings/{meetingEntryId}/participants\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings participants set\n\nRecord attendees by name/email; known members and existing people are linked, nobody is created.\n\n- API: `PUT /meetings/{meetingEntryId}/participants`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/meetings/{meetingEntryId}/participants\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"participants\": []\n }'\n```\n\n### dench meetings share\n\nWhether a meeting is shared with the whole workspace, and whether you may change that.\n\n- API: `GET /meetings/{meetingEntryId}/sharing`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/meetings/{meetingEntryId}/sharing\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench meetings share --workspace\n\nShare one meeting with the workspace, or take it back to owner + invitees.\n\n- API: `PUT /meetings/{meetingEntryId}/sharing`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/meetings/{meetingEntryId}/sharing\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"shared\": true\n }'\n```\n\n## Members\n\n### dench members presence\n\nLive presence (online / away / offline) for workspace members.\n\n- API: `GET /members/presence`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/members/presence\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench members get\n\nA member's profile: name, email, tagline, role, timezone, presence, open task count.\n\n- API: `GET /members/{userId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/members/{userId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench members activity\n\nA member's recent comments and record changes across the CRM, newest first.\n\n- API: `GET /members/{userId}/activity`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/members/{userId}/activity\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench members tasks\n\nOpen tasks assigned to a member (plus ones completed today).\n\n- API: `GET /members/{userId}/tasks`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/members/{userId}/tasks\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench members me\n\nYour own member profile.\n\n- API: `GET /me/profile`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/me/profile\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench members me --name … --tagline … --timezone …\n\nUpdate your name, tagline, avatar URL, or timezone.\n\n- API: `PATCH /me/profile`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/me/profile\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"tagline\": \"Head of Ops\",\n \"timezone\": \"America/New_York\"\n }'\n```\n\n### dench members me --avatar <file>\n\nGet a one-time URL to POST an avatar image to; then PUT /me/avatar with the returned storageId.\n\n- API: `POST /me/avatar/upload-url`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/me/avatar/upload-url\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench members me --avatar <file>\n\nSet your avatar from an uploaded storageId.\n\n- API: `PUT /me/avatar`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/me/avatar\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"storageId\": \"kg2abc123def456\"\n }'\n```\n\n### dench members me --clear-avatar\n\nRemove your avatar.\n\n- API: `DELETE /me/avatar`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/me/avatar\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Memory\n\n### dench memory search\n\nSearch durable workspace memory.\n\n- API: `GET /memory/search`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/memory/search?query=string\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench memory save\n\nSave a durable workspace memory fact.\n\n- API: `POST /memory`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/memory\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"key\": \"deployment-policy\",\n \"kind\": \"decision\",\n \"text\": \"Never deploy without human approval.\",\n \"tags\": [\n \"deployment\",\n \"policy\"\n ]\n }'\n```\n\n## Meta\n\n### dench help\n\nList all CLI/API operations and parity classifications.\n\n- API: `GET /commands`\n- Auth: No bearer token required.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/commands\"\n```\n\n## Notifications\n\n### dench notifications list\n\nList your notifications (inbox, unread, archived, or all).\n\n- API: `GET /notifications`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/notifications\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench notifications count\n\nHow many unread notifications you have.\n\n- API: `GET /notifications/unread-count`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/notifications/unread-count\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench notifications read\n\nMark a notification read (or unread).\n\n- API: `PATCH /notifications/{notificationId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/notifications/{notificationId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"read\": true\n }'\n```\n\n### dench notifications read-all\n\nMark every inbox notification read.\n\n- API: `POST /notifications/read-all`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/notifications/read-all\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench notifications archive\n\nArchive a notification.\n\n- API: `POST /notifications/{notificationId}/archive`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/notifications/{notificationId}/archive\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench notifications prefs\n\nRead your notification preferences.\n\n- API: `GET /notifications/preferences`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/notifications/preferences\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench notifications prefs --set\n\nUpdate your notification preferences.\n\n- API: `PATCH /notifications/preferences`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/notifications/preferences\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"emailEnabled\": true,\n \"perKind\": {\n \"entry_activity\": {\n \"email\": false\n }\n }\n }'\n```\n\n## Routines\n\n### dench cron list\n\nList routines.\n\n- API: `GET /routines`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n- Aliases: `dench routine list`, `dench routines list`\n\n```bash\ncurl -sS \"$DENCH_API_BASE/routines\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron history\n\nList routine run history.\n\n- API: `GET /routines/history`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/routines/history\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron get\n\nGet a routine.\n\n- API: `GET /routines/{jobId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/routines/{jobId}\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron create\n\nCreate a routine.\n\n- API: `POST /routines`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/routines\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"name\": \"Daily digest\",\n \"prompt\": \"Summarize open CRM tasks.\",\n \"schedule\": {\n \"kind\": \"every\",\n \"everyMs\": 86400000\n }\n }'\n```\n\n### dench cron update\n\nUpdate a routine.\n\n- API: `PATCH /routines/{jobId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/routines/{jobId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron delete\n\nDelete a routine.\n\n- API: `DELETE /routines/{jobId}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/routines/{jobId}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron enable\n\nEnable a routine.\n\n- API: `POST /routines/{jobId}/enable`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/routines/{jobId}/enable\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron disable\n\nDisable a routine.\n\n- API: `POST /routines/{jobId}/disable`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/routines/{jobId}/disable\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron run\n\nRun a routine now.\n\n- API: `POST /routines/{jobId}/run`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X POST \"$DENCH_API_BASE/routines/{jobId}/run\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench cron runs\n\nList runs for a routine.\n\n- API: `GET /routines/{jobId}/runs`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/routines/{jobId}/runs\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Secrets\n\n### dench secrets list\n\nList workspace-shared credential names, kinds and versions; never values.\n\n- API: `GET /secrets`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/secrets\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench secrets set\n\nEncrypt a workspace credential. Use CLI stdin or the secure chat form; return metadata only. Do not put values in chat, manifests or scripts.\n\n- API: `PUT /secrets/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/secrets/{name}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"kind\": \"env\",\n \"value\": \"string\"\n }'\n```\n\n### dench secrets delete\n\nRevoke a workspace credential for future resolution, optionally checking its version.\n\n- API: `DELETE /secrets/{name}`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X DELETE \"$DENCH_API_BASE/secrets/{name}\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n## Settings\n\n### dench settings sync\n\nRead the workspace's Sync switches (accounts from email, contacts from LinkedIn, Slack Connect, calendar, dossier, tasks from email, lead auto-qualify, summaries and Brief). All on by default.\n\n- API: `GET /settings/sync`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/settings/sync\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench settings sync set\n\nFlip Sync switches (admin). Partial patch: only the keys sent change. Off stops new work; nothing already created is removed.\n\n- API: `PATCH /settings/sync`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PATCH \"$DENCH_API_BASE/settings/sync\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"linkedinContacts\": false\n }'\n```\n\n## Workspace\n\n### dench context --sections\n\nRead selected scoped workspace documents and a compact context index without writes.\n\n- API: `GET /context/sections`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/context/sections\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context\n\nReturn the current Dench workspace context for the bearer.\n\n- API: `GET /context`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/context\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context --instructions\n\nReturn the current workspace's standing instructions for external agents.\n\n- API: `GET /context/instructions`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/context/instructions\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench status\n\nReturn workspace and agent status.\n\n- API: `GET /status`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/status\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench agents\n\nList agents visible in the workspace status payload.\n\n- API: `GET /agents`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/agents\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench artifacts\n\nList artifacts for the authenticated workspace.\n\n- API: `GET /artifacts`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/artifacts\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench suggested-work\n\nList draft suggested-work artifacts.\n\n- API: `GET /suggested-work`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS \"$DENCH_API_BASE/suggested-work\" -H \"Authorization: Bearer $DENCH_API_KEY\"\n```\n\n### dench context set rules\n\nUpdate standing workspace rules; credentials belong in secrets and runnable setup in environments.\n\n- API: `PUT /context/rules`\n- Auth: Requires `Authorization: Bearer $DENCH_API_KEY` or an approved `dch_agent_*` session token.\n\n```bash\ncurl -sS -X PUT \"$DENCH_API_BASE/context/rules\" \\\n -H \"Authorization: Bearer $DENCH_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data '{\n \"content\": \"string\"\n }'\n```\n"
16
16
  },
17
17
  "references/APP-GUIDE.md": {
18
- "sha256": "241ac675169c8d5000d4072cd47d82dbd3cbef8c1bf728cab66ffd33211fe58a",
19
- "content": "---\nname: app-guide\ndescription: Where everything is in the Dench app and how to do things there, step by step, by the names the app shows, with a clickable link for each place — the left rail, every Settings section, Dench in Slack and Announcements, CRM tables and records, Tasks, Meetings, Automations, Integrations, Inbox and Outreach, Find leads, chat and ⌘K. Load this before answering any question about where something is, how to do something in the app, or which button to press.\n---\n\n# Where things are in Dench, and how to do them\n\nChecked against the app's code and screens (2026-11-13). The names in\n**bold** are exactly what the screen shows.\n\n## How to answer\n\n- Write each button and label in full, exactly as this guide prints it\n (**Add Dench to these N**, never a shortened \"Add to these N\").\n- Answer with the names the app shows (bold them), in the order a person\n clicks, and **always include a clickable link** to the page: in the web\n chat a Markdown link named after the page with the relative path as its\n target (Settings → Appearance, to `/?path=~settings/appearance`). Never\n show the path itself, in brackets or in code; nobody can click it.\n In Slack, iMessage or email use the absolute form\n `https://dench.com/your-workspace?path=...` (the slug is `organizationSlug` from\n `dench context --json`).\n- Keep it short: the link plus two to five steps. Do not guess a page or a\n button that is not in this guide; say you are not sure and link the\n closest page. For any other link, load the `navigation` reference.\n- Link only a path written in this guide, or a CRM object's own name\n (`/?path=deal`). Never make one up: `~settings/agents` and the like do\n not exist and open the wrong page. A thing with no page (such as\n **Invite Claude Code**) gets no link.\n- When you will not do something yourself (send an announcement, create a\n customer's channel), still give the steps and the link from this guide.\n- Speak as someone who knows the app. Never mention this guide, a\n summary, or that the labels on screen may differ.\n- Where a feature exists for the job, send the person to it. Do not offer\n to do its job with a connected app instead (see Dench in Slack below).\n\n## The left rail\n\n**Top of the rail:** the \"Dench\" wordmark (back to home), a search\nicon (⌘K), the notifications bell, then the **New Chat** button.\n\n**Home, in this order (always visible):**\n\n1. **Automations** — `/?path=~cron`\n2. **Tasks** — `/?path=~todos` (also where a bare `/your-workspace` lands)\n3. **Meetings** — `/?path=~meetings` (recordings, notes, calendar)\n4. **CRM** — opens one level deeper (header \"CRM\"). CRM objects, saved\n views, installed apps and named groups live **here**, not on home.\n **Archived** (things removed from the sidebar, each with \"Restore to\n sidebar\") appears at the bottom of this level only when something is\n archived.\n5. **Find leads** — opens a level whose first row is **Generate new list**,\n then saved lists. People / Companies / Job postings are tabs inside the\n Find page. Bare `~find` opens People.\n6. **Outreach** — opens a level with **Campaigns, Inbox, Accounts,\n Newsletters**. Campaigns is `~outreach/sequences`; Inbox keeps its own\n path, `/?path=~crm/inbox`.\n\nThen **Pinned** (shortcuts to CRM items; the heading appears once\nsomething is pinned, whatever the item holds: what people\nmean by \"put Leads on my sidebar\"), then **Recent chats** with a **More**\nrow for the full chat list.\n\n**Footer, top to bottom:**\n\n- A **setup checklist** card until setup is done (Connect email, Connect\n calendar, Connect LinkedIn, New campaign, invite the team), then a\n **Get $200 credits** card (\"Get your link →\", Refer & earn).\n- **Invite Claude Code** (the label names the agent picked last, e.g.\n **Invite Cursor**):\n a menu \"Invite an agent\" with Claude Code, Cursor, OpenClaw and ChatGPT\n Codex, \"Copy prompt\" and \"Text Dench\". Picking one copies an invite\n prompt.\n- **Dench in Slack** — opens Settings → Dench in Slack.\n- The bottom row: the **workspace name with a chevron** (the org menu),\n an **Integrations** store icon, and a **Settings** gear (opens Settings\n at My profile).\n\n**The org menu** (click the workspace name): your name and email, the\nworkspace switcher, **My profile** (your member card, not the Settings\npage), **Settings** (reopens the last section), **Usage**, **Contact\nsupport** (when available) and **Sign out**.\n\nThere is **no theme or dark-mode switch in the rail**: that is Settings →\nAppearance.\n\n**⌘K / Ctrl+K** (or the search icon at the top of the rail) jumps to any\nrecord, chat, automation, file or setting, and runs actions such as New\nchat, New automation, New campaign, New meeting and Invite team member.\n\n## Settings\n\nOpen it with the gear at the bottom of the rail, the org menu's\n**Settings**, ⌘K, or a `/?path=~settings/` plus a section link. Its left column is one list, under the headings **Personal** and **Workspace** (they are not tabs). These are every\nsection, by the name the app shows, in the order of its left column. Use\nexactly these names when you tell someone where to click.\n\n| Tab | Section (as shown) | What it is for | `path` |\n| --- | --- | --- | --- |\n| Personal | My profile | your photo, name, tagline and timezone (email is from sign-in) | `~settings/account` |\n| Personal | About you | what Dench should know about you | `~settings/about` |\n| Personal | Meetings | connect your calendar; \"Record my meetings\" (the notetaker joins your calls); who sees your new meetings | `~settings/meetings` |\n| Personal | Appearance | System, Light or Dark theme, and the accent color | `~settings/appearance` |\n| Personal | Notifications | what you are told about, and where | `~settings/notifications` |\n| Personal | Refer & earn | your referral link | `~settings/referrals` |\n| Workspace | General | the workspace's icon, name and URL (not your own profile; admins edit) | `~settings/profile` |\n| Workspace | About the company | what Dench should know about the company | `~settings/company` |\n| Workspace | Members & access | members and roles; \"Invite member\" (admins) and an invite link | `~settings/members` |\n| Workspace | Sharing & privacy | what is shared with the workspace (admins only) | `~settings/sharing` |\n| Workspace | Dench in Slack | adding Dench to Slack, Announcements (admins; a member sees only their own Slack updates) | `~settings/slack` |\n| Workspace | Plan & billing | plan, payment method, next invoice, invoices (admins only) | `~settings/billing` |\n| Workspace | Usage | **Credits left this month** (AI actions, enrichment credits), **History** (past credits), **Top-ups**, **Keep working when credits run out**, and **Activity** (what Dench used) | `~settings/usage` |\n| Workspace › Agent | Models & tools | the agent's model and tools (only admins change the default model) | `~settings/models` |\n| Workspace › Agent | Sync | what Dench does on its own with mail, calendar, Slack, LinkedIn | `~settings/sync` |\n| Workspace › Security | Enterprise access | SSO, SCIM (admins only) | `~settings/enterprise` |\n| Workspace › Security | API keys | keys for the API and CLI | `~settings/api_keys` |\n\n**`~settings/profile` is the workspace's General page, not the person's\nprofile.** \"Change my name / my photo\" is **My profile**\n(`~settings/account`). \"Dark mode\" is **Appearance**\n(`~settings/appearance`); there is no theme switch in the left rail.\n\n## Step by step\n\n### Personal basics\n\n- **Dark mode / theme:** Settings → Appearance (`/?path=~settings/appearance`)\n → **System**, **Light** or **Dark**; **Accent color** below it. Nothing in\n the left rail switches the theme.\n- **My name, photo, tagline, timezone:** Settings → My profile (`/?path=~settings/account`).\n The gear at the bottom of the rail opens it too. Not **General**: that is\n the workspace's own icon, name and URL (General (`/?path=~settings/profile`)).\n- **Invite a teammate:** Settings → Members & access (`/?path=~settings/members`)\n → **Invite member** (admins) → emails and a role (Member or Admin) →\n **Review invite** → **Send invite**. Or share the **Invite link** on the\n same page. ⌘K → \"Invite team member\" also works.\n- **Notetaker joining my calls:** Settings → Meetings (`/?path=~settings/meetings`)\n → connect your calendar (**Connect**) → switch on **Record my meetings**.\n **Join every meeting** is on by default (the notetaker joins every\n calendar meeting); switch it off to record only the ones you pick.\n- **Connect Gmail or Outlook:** Outreach → Accounts (`/?path=~outreach/accounts`)\n → **Connect email** → **Connect Gmail** / **Connect Outlook**, or the\n Gmail card in Integrations (`/?path=~integrations`), or the\n **Connect** buttons on the empty Inbox (`/?path=~crm/inbox`).\n\n### Dench in Slack\n\nEverything is under Settings → Dench in Slack (`/?path=~settings/slack`)\n(also the **Dench in Slack** row at the bottom of the rail).\n\n- **Add Dench to Slack (an admin, once):** **Add to Slack** at the top\n right → allow it in Slack. The page then shows **Live**. **See how it\n works** next to the title shows the four steps below.\n- **Use it in Slack:** type **@Dench** in any channel, or message it\n directly. The first time, Dench replies with **Connect your Dench\n account** (a private link, 15 minutes) → **Approve** → **Back to\n Slack**, then mention it again. Follow-ups in the same thread need no\n new tag. Dench answers only in a channel it is a member of, public or\n private: if it is not in one, type `/invite @Dench` there (Slack also\n offers to add it when you mention it). For many private channels at\n once, see \"Dench is not in some private channels\" below. In a channel with\n customers or guests it uses shared data only.\n- **Slack updates:** on the same page. **Your updates** (New leads every\n morning, Interested replies, Needs you) each have a switch and **Direct\n message** or a channel. **Workspace updates** (Deal stage changes) post\n to one channel for everyone. If it says \"Connect your Slack account\n first\", message @Dench in Slack once and follow its link.\n- **Send one message to many customer channels (Announcements, admins only):**\n Dench in Slack (`/?path=~settings/slack`) → **Announcements** →\n **New announcement** → pick **From** → write the **Message** (paste\n links, pictures, files) → tick the channel **groups** → **Send test to\n me** (optional) → **Send to N channels** → **Send now** in the box\n that asks \"Send to N channels?\". It sends to channel groups\n only: there is no list of single channels to tick. Private channels\n Dench is not in: see \"Dench is not in some private channels\" below.\n **New announcement** is greyed out until your own Slack account is\n linked to Dench: the page then says \"Connect your Slack account first\";\n message @Dench in Slack once, follow its **Connect your Dench account**\n link, then come back.\n The arrow next to Send schedules it: pick **Tomorrow** (9:00 AM),\n **Monday** (9:00 AM) or **Custom time…**; each opens a box with that\n time filled in, and nothing is booked until you click **Schedule for\n …** in it. A scheduled\n one can be edited or cancelled from the list. The agent never sends\n announcements itself: only that button does.\n- **Show the company's name instead of yours:** in New announcement,\n **From** → **Customize sender** → the company name and a logo → **Save**,\n then pick that sender. (It needs \"Allow in Slack\" first if shown.)\n- **From:** your name and photo with the APP tag (Dench posts it), a\n **Custom sender** (a company name and an optional PNG or JPEG picture:\n **Customize sender** → name → picture → **Save**; then **Edit** next to\n it changes it), or **your own Slack account** without the APP tag (**Connect\n account** first). \"Allow in Slack\" under From means Dench needs one more\n Slack permission to show your name.\n- **Channel groups:** in New announcement → **New group** (or a group's\n \"N channels ›\" to edit) → **Name** → **By name** (\"Every channel whose\n name starts with / ends with / contains …\", new matching channels join\n by themselves; untick one to leave it out) or **Picked by hand** →\n **Save group**. There is no automatic group: people make their own.\n- **Dench is not in some private channels:** the quickest way is in\n Dench, New announcement, where the dialog shows one of two lines:\n 1. Your own Slack account is not connected: \"Private channels Dench\n isn't in are not listed.\" → **Connect your Slack account** (or\n **Reconnect your Slack account**) → allow it in Slack.\n 2. It is connected and a ticked group holds such channels: \"Dench isn't\n in N private channels…\" → **Add Dench to these N** (one click for all\n of them).\n Line 2 never shows before line 1 is done. Or, in Slack, `/invite @Dench`\n in each channel. Announcements reach public channels without an invite;\n for **@Dench** to answer in a channel, it must be a member of it.\n- **Make a Slack channel for a customer:** open the company record → in\n **Details** (on the right; when the record is narrow, as beside the\n chat, open it with the panel icon at the right end of the tabs, **Show\n details**), the **Slack** row → **Create #customer-name** (the button shows the suggested channel name) → set the name,\n **Private** or **Public**, who from your team, and **Invite (the contact) by\n email** → **Create channel**. Only admins see **Create**, and Dench must\n know *your own* Slack account (message @Dench in Slack once). The contact invited is\n the record's **POC**, else the first linked person with an email, and\n the invite goes out for a Private or a Public channel alike. The box\n cannot take another email address; to\n invite someone else, set them as the POC first, or untick the invite and\n invite them from Slack. Do not offer to create the channel\n yourself through a connected app: this button also invites the customer\n and ties the channel to the record.\n- **Pasting a Dench link in Slack** turns it into the record's card; a\n click opens its details.\n\n\n### CRM records and tables\n\nObjects are under **CRM** in the rail. A table's link is `/?path=` plus the object's canonical name\nwith the object's canonical name, never `~crm/` plus a name: **Leads** is\n`lead` (`/?path=lead`), People `people`, Companies `company`, Tasks\n`task`; a workspace's own objects (Opportunities, Deals, …) by the name\n`dench crm objects list` gives. Look the name up rather than guess.\n\n- **Toolbar, left to right** (when the table is narrow, as beside the\n chat, every button but **Find** and the + is an icon only: hover shows\n its name): the object's name and count, **Analytics** (a chart icon),\n **Filter**, the views pill (\"All Leads\", \"All People\", … or the view's name), the\n **assigned-to-me** pill (your avatar), **Sort**, the layout button\n (\"Table View\": **Table, Board, Calendar, Timeline, Gallery**), **Search** box (\"Search Leads...\"), **View settings**, **Add to outreach** (when records have\n email or LinkedIn), and **+ Add New**.\n- **Add a record:** **+ Add New** → fill the \"Add\" form (e.g. \"Add lead\") → **Add**.\n On a board, the **+** on a column adds into that stage.\n- **Add a field (column):** the round **+** at the right end of the header\n row (\"Add column\") → pick a type (Text, Number, Email, Phone, Boolean,\n Date, Rich Text, User, Relation, Enum, Action). The column is added at\n once, named after its type (\"Text\", \"User\"); there is no name box, so\n rename it afterwards from the chevron on its header → **Rename**. Enum\n asks for its options and Relation for the object first. Or on a\n record's details: **Add property**. Hide, move or delete a column from\n the same chevron.\n- **Saved views:** set filters with **Filter** (and **Sort**, columns),\n then the views pill → **+ New view** → name it → **Create**\n (keeps the current filters, sort and columns). **New views are private**\n until the owner sets \"Shared with workspace\" in the view's ⋮ menu (also\n Rename, Duplicate, **Pin to sidebar**, Watch, Delete). Edited views show\n \"Unsaved changes\" with **Save for everyone** / **Reset**.\n- **Put something on the home sidebar:** in the rail open **CRM**, then\n the object's row (e.g. Leads) **⋯ → Pin**; it then shows under\n **Pinned** on home. **Pin to sidebar** in a view's ⋮ menu adds a view to\n the CRM level first; then **⋯ → Pin** that row. It then\n shows under **Pinned**. Groups: the folder-plus **New group** in the CRM\n header, or a row's **Move to group**.\n- **Archive (hide) an object or view from the sidebar:** row **⋯ →\n Archive** (admins). It is only hidden: **Archived** at the bottom of the\n CRM level opens a list, and the restore icon on a row (**Restore to\n sidebar**, admins) brings it back. It is not in the row's ⋯ menu.\n- **Create, rename or delete an object:** there is no button for this;\n you (the agent) do it when asked in chat. Answer with the steps:\n 1. Say in this chat what to create and its fields (\"Create an object\n called Investors with Name, Firm, Check size and Stage\"); offer to\n do it now.\n 2. Then open **CRM** in the rail and click **Investors**: a new object\n gets its own row there, and its table link is `/?path=` plus its\n own canonical name.\n 3. Add more columns with the round **+** (Add column) at the right end\n of the header row, and records with **+ Add New**.\n Before it exists there is nothing to link. Never send the person\n through another table (Accounts, Contacts, …) to reach it.\n- **Import a CSV:** there is no import button. Attach the file in chat\n (**+** in the composer) and ask; you follow the `crm-import` reference.\n **Export CRM records:** there is no export button; offer to do it in\n chat. Find leads' **Export CSV** exports a saved Find leads list only,\n never CRM records: do not offer it for those.\n- **Analytics:** **Analytics** in the toolbar (the chart icon next to the\n table's name when the toolbar is narrow) shows charts above the\n table. The strip's controls are icons, named on hover: the period pill\n (All time, This month, …), **+** (Add chart), the expand arrows (Open\n full analytics, `&analytics=1`) and **^** (Hide analytics).\n- **Only my records:** click the assigned-to-me pill (your avatar): one\n click already shows only your records. To pick someone else, click the\n chevron next to the pill (\"Choose whose records to show\") and choose\n under the **Show only** heading: Me, a teammate, Unassigned or\n Everyone; click the pill again to see everyone. It is personal and\n never saved on the view. The pill shows only when the object has a person field (a field of\n type User, such as Owner or Assignee); without one there is no pill:\n filter with **Filter** on the owner column instead, or add a User\n column (then **Rename** it, e.g. to Owner, and set it on each record).\n The app never shows anyone's user id, so never tell someone to type\n one: filter by a name or email column, or use a User column. Check\n the object's fields before naming the pill.\n- **A record:** click a row. Tabs: **Activity** (Brief, tasks, the\n **Notes** card, the activity feed, and the comment box at the bottom),\n **Attachments**, **Team** (companies), **Inbox**, **Meetings**,\n **Outreach**. Details sit on the right; when the record is narrow (as\n beside the chat) they open from the panel icon at the right end of the\n tabs (**Show details**).\n - **Comment:** \"Write a comment…\" → **Comment**. The **Dench** pill asks\n Dench in a comment.\n - **Note:** in the comment box, the caret → **Note** → \"Note title\" →\n **Post note**; or type in the **Notes** card.\n - **Task on a record:** \"Add a task\" in the tasks strip.\n - **⋯ More:** Copy link, Add to outreach, Compose email, Follow, Delete.\n- **Privacy:** CRM records are always shared with the workspace. Only\n meetings (the meeting's **Share** button), calendar events and email\n threads (\"Share with workspace\" on the thread) can be private. The\n \"Shared / Hidden\" pill on a record hides only *your* emails with it.\n- **Templates:** Marketplace → Templates (`/?path=~marketplace/templates`)\n → **Workspace setups** → **Preview** → **Install**.\n\n### Tasks\n\nTasks (`/?path=~todos`) in the rail (also where `/your-workspace` lands): tabs **Just\nme / My team / Done** (**My team** shows teammates' tasks), **Open\ntable** (the task object), **New task**\n(\"What needs doing? (!high)\", priority, due date → **Create**). A task\nopens in the record panel: in its **Details** (folded behind **Show\ndetails** when the record is narrow, as beside the chat) are Assignee,\nPriority, Due Date (an empty one is under **Show N empty fields**), a\n**Remind** bell and **Repeat** next to the due date, and **Add a subtask** (one\nlevel). **Repeat** offers **Daily**, **Every weekday**, **Weekly on**\nthe due date's weekday, **Every 2 weeks on** that day, **Monthly on\nthe** due date's day and **Yearly on** that date, or **Custom…** (every\nN days, weeks, months or years, which weekdays, when it ends); a pick\nsaves at once, with no Save button. On a subtask, set Repeat on the\nparent task. To see what a teammate is assigned: Tasks → **My team**; on a\nCRM board, click the assigned-to-me pill (your avatar), then the chevron\nnext to it → under **Show only**, the teammate (only on an object with a\nUser field; see \"Only my records\").\n\n### Meetings\n\nMeetings (`/?path=~meetings`): the **All meetings** menu (All meetings,\nMy meetings, **Shared with me**), **Connect calendar**, **Search meetings**, **New meeting** (paste a\nZoom, Meet or Teams link → **Join**). Upcoming rows have **Join + Start**\n(its ▾: Join without Dench, Don't record). A meeting has tabs **Brief ·\nRecording · Participants · Chat · CRM updates**; action items, notes and\ncomments are on Brief; the transcript is on Recording. **Share** (everyone\nsees it) → General access **Restricted** or **Anyone in** followed by the\nworkspace name (everyone in the workspace). Only the meeting's owner can\npick **Anyone in**; for anyone else the choice is greyed out (an admin\nsees \"Only the owner can share it with the workspace.\"). The\nnotetaker's switches are not here: Settings → Meetings (`/?path=~settings/meetings`).\n\n### Automations\n\nAutomations (`/?path=~cron`) → **New** → name → **+ Add trigger**:\n**Schedule** (Daily, Weekly, **Interval** for every N minutes or hours,\nOnce, Custom), **App event**, **CRM\nevent** (Created / Updated / Deleted) or **Webhook** → write what to do →\n**Create**. **Weekly** shows a round button per weekday (Monday is on to\nbegin with; tap to add or remove days), a **Time** field and a **Timezone**\nlist (Daily has the same two; the timezone starts as your browser's own,\nnever assume UTC); **Once** asks\n**Run at**; **Custom** takes a cron line such as `0 9 * * 1-5`. On an automation: **▶ Run** (run now), **Runs**, the on/off\nswitch, **Private / Shared with workspace**, ⋯ → Delete. The gear on the\nlist opens Sync (`/?path=~settings/sync`).\n\n### Integrations and Marketplace\n\n- **Connect an app** (HubSpot, Notion, Google Calendar, …): the store icon\n at the bottom of the rail (**Integrations**, `/?path=~integrations`; a\n dialog, not a page) → the app's\n **Connect** → choose **Private** (only you, the default) or **Shared**\n (everyone) → **Continue** → sign in. Once connected, the card's button\n reads **Connected** (green); click it to see accounts, Disconnect and\n **Add account**. Gmail, Outlook and LinkedIn connect from their own\n cards under **Your accounts**, from Outreach → Accounts or from the\n Inbox, and ask the same thing first (\"Who can use what Dench syncs from\n it?\": **Private**, only you, the default, or **Shared** → **Continue**),\n then sign in. Only a reconnect skips that step.\n- **Add an MCP server** (Y Combinator, or any server by its URL): the\n rail's store icon (**Integrations**) → the **Custom MCP** tab\n (`/?path=~integrations/mcp`). Y Combinator is under **Featured** →\n **Connect**, then sign in. Any other: **Add MCP server** → **Server URL**,\n **Name**, **Who can use it** (**Private**, only you, the default, or\n **Shared**) → **Continue to sign in**, or **Use a token instead** →\n **Bearer token** → **Add server**. Under **Connected**, a server's menu\n switches **Only me / Everyone in workspace**; **Disconnect** removes it.\n- Marketplace tabs: **Skills, Apps & plugins, Templates**.\n It is not a rail row: use ⌘K or the links. Skills: **Add** a recommended\n one or **+ Create skill**. Apps: **Get**, and ⋯ → Pin to Sidebar.\n\n### Inbox and Outreach\n\n- Inbox (`/?path=~crm/inbox`) (Outreach → Inbox): **Search people**, **New**,\n filters **All / Unread / Interested / Not interested / Out of office**;\n **Connect Gmail / Outlook / LinkedIn** at the foot of the list. A\n conversation has **Add to CRM** and the reply box (**Write on** picks\n email or LinkedIn).\n- Accounts (`/?path=~outreach/accounts`): **Connect email** (Gmail or\n Outlook → **Finish inbox setup** → warm-up) and **Connect LinkedIn**,\n with daily limits. Each asks **Private** or **Shared** → **Continue**\n before you sign in.\n- **New campaign:** Campaigns (`/?path=~outreach/sequences`) → **+ New\n campaign** → where the leads come from (signals, lookalikes, search,\n upload, your CRM) → **Preview leads** → how to reach out (a template or\n **Build with AI**) → who sends → **Ready to launch?** → **Launch\n campaign**. **Save as draft** works throughout. A campaign has tabs\n **Overview · Leads · Sources · Sequence · Activity · Setup**, **Pause /\n Resume**, and **+ Add people** on Leads.\n\n### Find leads\n\nFind leads (`/?path=~find`): tabs **People / Companies / Job postings**, one\nsearch line → **Search**, **Edit search** for every filter. Switching\ntabs starts a new, empty search: nothing carries over from one tab to\nanother (to find people at companies you found, search People by those\ncompany names). Results:\nselect rows → **Add to Leads** / **Add to CRM** (▾ for a view). **Save\nlist** saves the whole search, not the selected rows (a box \"Include all\nN rows\" is ticked by default when there are more than one page); **Watch**\nre-checks it daily. Open a saved list (rail: **Find leads** → the list) →\nits **⋯** (List actions) → **Export CSV** (people lists only), Rename,\nDelete. Unsaved results have no List actions: to export, **Save list**\nfirst. **Find** in the email or phone cells enriches (uses\ncredits). In the rail, **Find leads → Generate new list**.\n\n### Chat, ⌘K and the rest\n\n- **New chat:** **New Chat** at the top of the rail, or **+** in a chat's\n header. Composer: **+** attaches files, **@** adds context (records,\n files, members), **/** runs a skill. The send button becomes **Stop**\n while Dench works. There is no model picker in chat:\n Settings → Models & tools (`/?path=~settings/models`).\n- **Share or delete a chat:** ⋯ in the chat header → **Share with team /\n Make private**, **Delete this chat**. All chats: **Recent chats →\n More**.\n- **⌘K** (or the search icon): jump to any record, chat, automation,\n file, setting, or run **New chat**, **New automation**, **New\n campaign**, **New meeting**, **Invite team member**, **New** plus an object name (e.g. New Lead).\n- **Memory** (what Dench remembers): Settings → About you (`/?path=~settings/about`)\n (yours) and About the company (`/?path=~settings/company`) (shared);\n `~memories` opens About you.\n- **Files** have no rail row and no page of their own: press ⌘K (or the\n search icon at the top of the rail) → the **Files** tab, and search. Or\n list them in chat and link each one (`/?path=` plus the file's path); a\n click opens it beside the chat.\n- **Notifications:** the bell at the top of the rail → **Mentions /\n Following / All**, **Mark all as read**, **Clear all**. Its gear opens\n Settings → Notifications (`/?path=~settings/notifications`): **Email\n digests** (on/off, **How often**, **Daily limit**), **Email me about**\n (a switch per kind), and **In the app → Notification bell** (one\n on/off switch for alerts and the unread dot; the bell's tabs are not\n set here).\n- **Bring another agent (Claude Code, Cursor, …):** **Invite Claude Code**\n at the bottom of the rail (it has no page or link) → **Invite an agent**\n → pick Claude Code, Cursor, OpenClaw or ChatGPT Codex → paste the copied\n prompt into that agent.\n- **Tutorials:** ⌘K → Tutorials (`/?path=~tutorials`).\n"
18
+ "sha256": "1d680d2bbf9886b0999842e304c4e3a279f9065dca623b4cd747dfa8be173589",
19
+ "content": "---\nname: app-guide\ndescription: Where everything is in the Dench app and how to do things there, step by step, by the names the app shows, with a clickable link for each place — the left rail, every Settings section, Dench in Slack and Announcements, CRM tables and records, Tasks, Meetings, Automations, Integrations, Inbox and Outreach, Find leads, chat and ⌘K. Load this before answering any question about where something is, how to do something in the app, or which button to press.\n---\n\n# Where things are in Dench, and how to do them\n\nChecked against the app's code and screens (2026-11-13). The names in\n**bold** are exactly what the screen shows.\n\n## How to answer\n\n- Write each button and label in full, exactly as this guide prints it\n (**Add Dench to these N**, never a shortened \"Add to these N\").\n- Answer with the names the app shows (bold them), in the order a person\n clicks, and **always include a clickable link** to the page: in the web\n chat a Markdown link named after the page with the relative path as its\n target (Settings → Appearance, to `/?path=~settings/appearance`). Never\n show the path itself, in brackets or in code; nobody can click it.\n In Slack, iMessage or email use the absolute form\n `https://dench.com/your-workspace?path=...` (the slug is `organizationSlug` from\n `dench context --json`).\n- Keep it short: the link plus two to five steps. Do not guess a page or a\n button that is not in this guide; say you are not sure and link the\n closest page. For any other link, load the `navigation` reference.\n- Link only a path written in this guide, or a CRM object's own name\n (`/?path=deal`). Never make one up: `~settings/agents` and the like do\n not exist and open the wrong page. A thing with no page (such as\n **Invite Claude Code**) gets no link.\n- When you will not do something yourself (send an announcement, create a\n customer's channel), still give the steps and the link from this guide.\n- Speak as someone who knows the app. Never mention this guide, a\n summary, or that the labels on screen may differ.\n- Where a feature exists for the job, send the person to it. Do not offer\n to do its job with a connected app instead (see Dench in Slack below).\n\n## The left rail\n\n**Top of the rail:** the \"Dench\" wordmark (back to home), a search\nicon (⌘K), the notifications bell, then the **New Chat** button.\n\n**Home, in this order (always visible):**\n\n1. **Automations** — `/?path=~cron`\n2. **Tasks** — `/?path=~todos` (also where a bare `/your-workspace` lands)\n3. **Meetings** — `/?path=~meetings` (recordings, notes, calendar)\n4. **CRM** — opens one level deeper (header \"CRM\"). CRM objects, saved\n views, installed apps and named groups live **here**, not on home.\n **Archived** (things removed from the sidebar, each with \"Restore to\n sidebar\") appears at the bottom of this level only when something is\n archived.\n5. **Find leads** — opens a level whose first row is **Generate new list**,\n then saved lists. People / Companies / Job postings are tabs inside the\n Find page. Bare `~find` opens People.\n6. **Outreach** — opens a level with **Campaigns, Inbox, Accounts,\n Newsletters**. Campaigns is `~outreach/sequences`; Inbox keeps its own\n path, `/?path=~crm/inbox`.\n\nThen **Pinned** (shortcuts to CRM items; the heading appears once\nsomething is pinned, whatever the item holds: what people\nmean by \"put Leads on my sidebar\"), then **Recent chats** with a **More**\nrow for the full chat list.\n\n**Footer, top to bottom:**\n\n- A **setup checklist** card until setup is done (Connect email, Connect\n calendar, Connect LinkedIn, New campaign, invite the team), then a\n **Get $200 credits** card (\"Get your link →\", Refer & earn).\n- **Invite Claude Code** (the label names the agent picked last, e.g.\n **Invite Cursor**):\n a menu \"Invite an agent\" with Claude Code, Cursor, OpenClaw and ChatGPT\n Codex, \"Copy prompt\" and \"Text Dench\". Picking one copies an invite\n prompt.\n- **Dench in Slack** — opens Settings → Dench in Slack.\n- The bottom row: the **workspace name with a chevron** (the org menu),\n an **Integrations** store icon, and a **Settings** gear (opens Settings\n at My profile).\n\n**The org menu** (click the workspace name): your name and email, the\nworkspace switcher, **My profile** (your member card, not the Settings\npage), **Settings** (reopens the last section), **Usage**, **Contact\nsupport** (when available) and **Sign out**.\n\nThere is **no theme or dark-mode switch in the rail**: that is Settings →\nAppearance.\n\n**⌘K / Ctrl+K** (or the search icon at the top of the rail) jumps to any\nrecord, chat, automation, file or setting, and runs actions such as New\nchat, New automation, New campaign, New meeting and Invite team member.\n\n## Settings\n\nOpen it with the gear at the bottom of the rail, the org menu's\n**Settings**, ⌘K, or a `/?path=~settings/` plus a section link. Its left column is one list, under the headings **Personal** and **Workspace** (they are not tabs). These are every\nsection, by the name the app shows, in the order of its left column. Use\nexactly these names when you tell someone where to click.\n\n| Tab | Section (as shown) | What it is for | `path` |\n| --- | --- | --- | --- |\n| Personal | My profile | your photo, name, tagline and timezone (email is from sign-in) | `~settings/account` |\n| Personal | About you | what Dench should know about you | `~settings/about` |\n| Personal | Meetings | connect your calendar; \"Record my meetings\" (the notetaker joins your calls); who sees your new meetings | `~settings/meetings` |\n| Personal | Appearance | System, Light or Dark theme, and the accent color | `~settings/appearance` |\n| Personal | Notifications | what you are told about, and where | `~settings/notifications` |\n| Personal | Refer & earn | your referral link | `~settings/referrals` |\n| Workspace | General | the workspace's icon, name and URL (not your own profile; admins edit) | `~settings/profile` |\n| Workspace | About the company | what Dench should know about the company | `~settings/company` |\n| Workspace | Members & access | members and roles; \"Invite member\" (admins) and an invite link | `~settings/members` |\n| Workspace | Sharing & privacy | what is shared with the workspace (admins only) | `~settings/sharing` |\n| Workspace | Dench in Slack | adding Dench to Slack, Announcements (admins; a member sees only their own Slack updates) | `~settings/slack` |\n| Workspace | Plan & billing | plan, payment method, next invoice, invoices (admins only) | `~settings/billing` |\n| Workspace | Usage | **Credits left this month** (AI actions, enrichment credits), **History** (past credits), **Top-ups**, **Keep working when credits run out**, and **Activity** (what Dench used) | `~settings/usage` |\n| Workspace › Agent | Models & tools | the agent's model and tools (only admins change the default model) | `~settings/models` |\n| Workspace › Agent | Sync | what Dench does on its own with mail, calendar, Slack, LinkedIn | `~settings/sync` |\n| Workspace › Security | Enterprise access | SSO, SCIM (admins only) | `~settings/enterprise` |\n| Workspace › Security | API keys | keys for the API and CLI | `~settings/api_keys` |\n\n**`~settings/profile` is the workspace's General page, not the person's\nprofile.** \"Change my name / my photo\" is **My profile**\n(`~settings/account`). \"Dark mode\" is **Appearance**\n(`~settings/appearance`); there is no theme switch in the left rail.\n\n## Step by step\n\n### Personal basics\n\n- **Dark mode / theme:** Settings → Appearance (`/?path=~settings/appearance`)\n → **System**, **Light** or **Dark**; **Accent color** below it. Nothing in\n the left rail switches the theme.\n- **My name, photo, tagline, timezone:** Settings → My profile (`/?path=~settings/account`).\n The gear at the bottom of the rail opens it too. Not **General**: that is\n the workspace's own icon, name and URL (General (`/?path=~settings/profile`)).\n- **Invite a teammate:** Settings → Members & access (`/?path=~settings/members`)\n → **Invite member** (admins) → emails and a role (Member or Admin) →\n **Review invite** → **Send invite**. Or share the **Invite link** on the\n same page. ⌘K → \"Invite team member\" also works.\n- **Notetaker joining my calls:** Settings → Meetings (`/?path=~settings/meetings`)\n → connect your calendar (**Connect**) → switch on **Record my meetings**.\n **Join every meeting** is on by default (the notetaker joins every\n calendar meeting); switch it off to record only the ones you pick.\n- **Connect Gmail or Outlook:** Outreach → Accounts (`/?path=~outreach/accounts`)\n → **Connect email** → **Connect Gmail** / **Connect Outlook**, or the\n Gmail card in Integrations (`/?path=~integrations`), or the\n **Connect** buttons on the empty Inbox (`/?path=~crm/inbox`).\n\n### Dench in Slack\n\nEverything is under Settings → Dench in Slack (`/?path=~settings/slack`)\n(also the **Dench in Slack** row at the bottom of the rail).\n\n- **Add Dench to Slack (an admin, once):** **Add to Slack** at the top\n right → allow it in Slack. The page then shows **Live**. **See how it\n works** next to the title shows the four steps below.\n- **Use it in Slack:** type **@Dench** in any channel, or message it\n directly. The first time, Dench replies with **Connect your Dench\n account** (a private link, 15 minutes) → **Approve** → **Back to\n Slack**, then mention it again. Follow-ups in the same thread need no\n new tag. Dench answers only in a channel it is a member of, public or\n private: if it is not in one, type `/invite @Dench` there (Slack also\n offers to add it when you mention it). For many private channels at\n once, see \"Dench is not in some private channels\" below. In a channel with\n customers or guests it uses shared data only.\n- **Slack updates:** on the same page. **Your updates** (New leads every\n morning, Interested replies, Needs you) each have a switch and **Direct\n message** or a channel. **Workspace updates** (Deal stage changes) post\n to one channel for everyone. If it says \"Connect your Slack account\n first\", message @Dench in Slack once and follow its link.\n- **Send one message to many customer channels (Announcements, admins only):**\n Dench in Slack (`/?path=~settings/slack`) → **Announcements** →\n **New announcement** → pick **From** → write the **Message** (paste\n links, pictures, files) → tick the channel **groups** → **Send test to\n me** (optional) → **Send to N channels** → **Send now** in the box\n that asks \"Send to N channels?\". It sends to channel groups\n only: there is no list of single channels to tick. Private channels\n Dench is not in: see \"Dench is not in some private channels\" below.\n **New announcement** is greyed out until your own Slack account is\n linked to Dench: the page then says \"Connect your Slack account first\";\n message @Dench in Slack once, follow its **Connect your Dench account**\n link, then come back.\n The arrow next to Send schedules it: pick **Tomorrow** (9:00 AM),\n **Monday** (9:00 AM) or **Custom time…**; each opens a box with that\n time filled in, and nothing is booked until you click **Schedule for\n …** in it. A scheduled\n one can be edited or cancelled from the list. The agent never sends\n announcements itself: only that button does.\n- **Show the company's name instead of yours:** in New announcement,\n **From** → **Customize sender** → the company name and a logo → **Save**,\n then pick that sender. (It needs \"Allow in Slack\" first if shown.)\n- **From:** your name and photo with the APP tag (Dench posts it), a\n **Custom sender** (a company name and an optional PNG or JPEG picture:\n **Customize sender** → name → picture → **Save**; then **Edit** next to\n it changes it), or **your own Slack account** without the APP tag (**Connect\n account** first). \"Allow in Slack\" under From means Dench needs one more\n Slack permission to show your name.\n- **Channel groups:** in New announcement → **New group** (or a group's\n \"N channels ›\" to edit) → **Name** → **By name** (\"Every channel whose\n name starts with / ends with / contains …\", new matching channels join\n by themselves; untick one to leave it out) or **Picked by hand** →\n **Save group**. There is no automatic group: people make their own.\n- **Dench is not in some private channels:** the quickest way is in\n Dench, New announcement, where the dialog shows one of two lines:\n 1. Your own Slack account is not connected: \"Private channels Dench\n isn't in are not listed.\" → **Connect your Slack account** (or\n **Reconnect your Slack account**) → allow it in Slack.\n 2. It is connected and a ticked group holds such channels: \"Dench isn't\n in N private channels…\" → **Add Dench to these N** (one click for all\n of them).\n Line 2 never shows before line 1 is done. Or, in Slack, `/invite @Dench`\n in each channel. Announcements reach public channels without an invite;\n for **@Dench** to answer in a channel, it must be a member of it.\n- **Make a Slack channel for a customer:** open the company record → in\n **Details** (on the right; when the record is narrow, as beside the\n chat, open it with the panel icon at the right end of the tabs, **Show\n details**), the **Slack** row → **Create #customer-name** (the button shows the suggested channel name) → set the name,\n **Private** or **Public**, who from your team, and **Invite (the contact) by\n email** → **Create channel**. Only admins see **Create**, and Dench must\n know *your own* Slack account (message @Dench in Slack once). The contact invited is\n the record's **POC**, else the first linked person with an email, and\n the invite goes out for a Private or a Public channel alike. The box\n cannot take another email address; to\n invite someone else, set them as the POC first, or untick the invite and\n invite them from Slack. Do not offer to create the channel\n yourself through a connected app: this button also invites the customer\n and ties the channel to the record.\n- **Pasting a Dench link in Slack** turns it into the record's card; a\n click opens its details.\n\n\n### CRM records and tables\n\nObjects are under **CRM** in the rail. A table's link is `/?path=` plus the object's canonical name\nwith the object's canonical name, never `~crm/` plus a name: **Leads** is\n`lead` (`/?path=lead`), People `people`, Companies `company`, Tasks\n`task`; a workspace's own objects (Opportunities, Deals, …) by the name\n`dench crm objects list` gives. Look the name up rather than guess.\n\n- **Toolbar, left to right** (when the table is narrow, as beside the\n chat, every button but **Find** and the + is an icon only: hover shows\n its name): the object's name and count, **Analytics** (a chart icon),\n **Filter**, the views pill (\"All Leads\", \"All People\", … or the view's name), the\n **assigned-to-me** pill (your avatar), **Sort**, the layout button\n (\"Table View\": **Table, Board, Calendar, Timeline, Gallery**), **Search** box (\"Search Leads...\"), **View settings**, **Add to outreach** (when records have\n email or LinkedIn), and **+ Add New**.\n- **Add a record:** **+ Add New** → fill the \"Add\" form (e.g. \"Add lead\") → **Add**.\n On a board, the **+** on a column adds into that stage.\n- **Add a field (column):** the round **+** at the right end of the header\n row (\"Add column\") → pick a type (Text, Number, Email, Phone, Boolean,\n Date, Rich Text, User, Relation, Enum, Action). The column is added at\n once, named after its type (\"Text\", \"User\"); there is no name box, so\n rename it afterwards from the chevron on its header → **Rename**. Enum\n asks for its options and Relation for the object first. Or on a\n record's details: **Add property**. Hide, move or delete a column from\n the same chevron.\n- **Saved views:** set filters with **Filter** (and **Sort**, columns),\n then the views pill → **+ New view** → name it → **Create**\n (keeps the current filters, sort and columns). **New views are private**\n until the owner sets \"Shared with workspace\" in the view's ⋯ menu, View options (also\n Rename, Duplicate, **Pin to sidebar**, Watch, Delete). Edited views show\n \"Unsaved changes\" with **Save for everyone** / **Reset**.\n- **Put something on the home sidebar:** in the rail open **CRM**, then\n the object's row (e.g. Leads) **⋯ → Pin**; it then shows under\n **Pinned** on home. **Pin to sidebar** in a view's ⋯ menu adds a view to\n the CRM level first; then **⋯ → Pin** that row. It then\n shows under **Pinned**. Groups: the folder-plus **New group** in the CRM\n header, or a row's **Move to group**.\n- **Archive (hide) an object or view from the sidebar:** row **⋯ →\n Archive** (admins). It is only hidden: **Archived** at the bottom of the\n CRM level opens a list, and the restore icon on a row (**Restore to\n sidebar**, admins) brings it back. It is not in the row's ⋯ menu.\n- **Create, rename or delete an object:** there is no button for this;\n you (the agent) do it when asked in chat. Answer with the steps:\n 1. Say in this chat what to create and its fields (\"Create an object\n called Investors with Name, Firm, Check size and Stage\"); offer to\n do it now.\n 2. Then open **CRM** in the rail and click **Investors**: a new object\n gets its own row there, and its table link is `/?path=` plus its\n own canonical name.\n 3. Add more columns with the round **+** (Add column) at the right end\n of the header row, and records with **+ Add New**.\n Before it exists there is nothing to link. Never send the person\n through another table (Accounts, Contacts, …) to reach it.\n- **Import a CSV:** there is no import button. Attach the file in chat\n (**+** in the composer) and ask; you follow the `crm-import` reference.\n **Export CRM records:** there is no export button; offer to do it in\n chat. Find leads' **Export CSV** exports a saved Find leads list only,\n never CRM records: do not offer it for those.\n- **Analytics:** **Analytics** in the toolbar (the chart icon next to the\n table's name when the toolbar is narrow) shows charts above the\n table. The strip's controls are icons, named on hover: the period pill\n (All time, This month, …), **+** (Add chart), the expand arrows (Open\n full analytics, `&analytics=1`) and **^** (Hide analytics).\n- **Only my records:** click the assigned-to-me pill (your avatar): one\n click already shows only your records. To pick someone else, click the\n chevron next to the pill (\"Choose whose records to show\") and choose\n under the **Show only** heading: Me, a teammate, Unassigned or\n Everyone; click the pill again to see everyone. It is personal and\n never saved on the view. The pill shows only when the object has a person field (a field of\n type User, such as Owner or Assignee); without one there is no pill:\n filter with **Filter** on the owner column instead, or add a User\n column (then **Rename** it, e.g. to Owner, and set it on each record).\n The app never shows anyone's user id, so never tell someone to type\n one: filter by a name or email column, or use a User column. Check\n the object's fields before naming the pill.\n- **A record:** click a row. Tabs: **Activity** (Brief, tasks, the\n **Notes** card, the activity feed, and the comment box at the bottom),\n **Attachments**, **Team** (companies), **Inbox**, **Meetings**,\n **Outreach**. Details sit on the right; when the record is narrow (as\n beside the chat) they open from the panel icon at the right end of the\n tabs (**Show details**).\n - **Comment:** \"Write a comment…\" → **Comment**. The **Dench** pill asks\n Dench in a comment.\n - **Note:** in the comment box, the caret → **Note** → \"Note title\" →\n **Post note**; or type in the **Notes** card.\n - **Task on a record:** \"Add a task\" in the tasks strip.\n - **⋯ More:** Copy link, Add to outreach, Compose email, Follow, Delete.\n- **Privacy:** CRM records are always shared with the workspace. Only\n meetings (the meeting's **Share** button), calendar events and email\n threads (\"Share with workspace\" on the thread) can be private. The\n \"Shared / Hidden\" pill on a record hides only *your* emails with it.\n- **Templates:** Marketplace → Templates (`/?path=~marketplace/templates`)\n → **Workspace setups** → **Preview** → **Install**.\n\n### Tasks\n\nTasks (`/?path=~todos`) in the rail (also where `/your-workspace` lands): tabs **Just\nme / My team / Done** (**My team** shows teammates' tasks), **Open\ntable** (the task object), **New task**\n(\"What needs doing? (!high)\", priority, due date → **Create**). A task\nopens in the record panel: in its **Details** (folded behind **Show\ndetails** when the record is narrow, as beside the chat) are Assignee,\nPriority, Due Date (an empty one is under **Show N empty fields**), a\n**Remind** bell and **Repeat** next to the due date, and **Add a subtask** (one\nlevel). **Repeat** offers **Daily**, **Every weekday**, **Weekly on**\nthe due date's weekday, **Every 2 weeks on** that day, **Monthly on\nthe** due date's day and **Yearly on** that date, or **Custom…** (every\nN days, weeks, months or years, which weekdays, when it ends); a pick\nsaves at once, with no Save button. On a subtask, set Repeat on the\nparent task. To see what a teammate is assigned: Tasks → **My team**; on a\nCRM board, click the assigned-to-me pill (your avatar), then the chevron\nnext to it → under **Show only**, the teammate (only on an object with a\nUser field; see \"Only my records\").\n\n### Meetings\n\nMeetings (`/?path=~meetings`): the **All meetings** menu (All meetings,\nMy meetings, **Shared with me**), **Connect calendar**, **Search meetings**, **New meeting** (paste a\nZoom, Meet or Teams link → **Join**). Upcoming rows have **Join + Start**\n(its ▾: Join without Dench, Don't record). A meeting has tabs **Brief ·\nRecording · Participants · Chat · CRM updates**; action items, notes and\ncomments are on Brief; the transcript is on Recording. **Share** (everyone\nsees it) → General access **Restricted** or **Anyone in** followed by the\nworkspace name (everyone in the workspace). Only the meeting's owner can\npick **Anyone in**; for anyone else the choice is greyed out (an admin\nsees \"Only the owner can share it with the workspace.\"). The\nnotetaker's switches are not here: Settings → Meetings (`/?path=~settings/meetings`).\n\n### Automations\n\nAutomations (`/?path=~cron`) → **New** → name → **+ Add trigger**:\n**Schedule** (its menu: **Hourly, Daily, Weekly, Once, Custom (cron)**; the\nschedule box then shows **Daily / Weekly / Interval / Once / Custom**, where\nHourly is **Interval**, every N minutes or hours), **App event**, **CRM\nevent** (Created / Updated / Deleted) or **Webhook** → write what to do →\n**Create**. **Weekly** shows a round button per weekday (Monday is on to\nbegin with; tap to add or remove days), a **Time** field and a **Timezone**\nlist (Daily has the same two; the timezone starts as your browser's own,\nnever assume UTC); **Once** asks\n**Run at**; **Custom** takes a cron line such as `0 9 * * 1-5`. On an automation: **▶ Run** (run now), **Runs**, the on/off\nswitch, **Private / Shared with workspace**, ⋯ → Delete. The gear on the\nlist opens Sync (`/?path=~settings/sync`).\n\n### Integrations and Marketplace\n\n- **Connect an app** (HubSpot, Notion, Google Calendar, …): the store icon\n at the bottom of the rail (**Integrations**, `/?path=~integrations`; a\n dialog, not a page) → the app's\n **Connect** → choose **Private** (only you, the default) or **Shared**\n (everyone) → **Continue** → sign in. Once connected, the card's button\n reads **Connected** (green); click it to see accounts, Disconnect and\n **Add account**. Gmail, Outlook and LinkedIn connect from their own\n cards under **Your accounts**, from Outreach → Accounts or from the\n Inbox, and ask the same thing first (\"Who can use what Dench syncs from\n it?\": **Private**, only you, the default, or **Shared** → **Continue**),\n then sign in. Only a reconnect skips that step.\n- **Add an MCP server** (Y Combinator, or any server by its URL): the\n rail's store icon (**Integrations**) → the **Custom MCP** tab\n (`/?path=~integrations/mcp`). Y Combinator is under **Featured** →\n **Connect**, then sign in. Any other: **Add MCP server** → **Server URL**,\n **Name**, **Who can use it** (**Private**, only you, the default, or\n **Shared**) → **Continue to sign in**, or **Use a token instead** →\n **Bearer token** → **Add server**. Under **Connected**, a server's menu\n switches **Only me / Everyone in workspace**; **Disconnect** removes it.\n- Marketplace tabs: **Skills, Apps & plugins, Templates**.\n It is not a rail row: use ⌘K or the links. Skills: **Add** a recommended\n one or **+ Create skill**. Apps: **Get**, and ⋯ → Pin to Sidebar.\n\n### Inbox and Outreach\n\n- Inbox (`/?path=~crm/inbox`) (Outreach → Inbox): **Search people**, **New**,\n filters **All / Unread / Interested / Not interested / Out of office**;\n **Connect Gmail / Outlook / LinkedIn** at the foot of the list. A\n conversation has **Add to CRM** and the reply box (**Write on** picks\n email or LinkedIn).\n- Accounts (`/?path=~outreach/accounts`): **Connect email** (Gmail or\n Outlook → **Finish inbox setup** → warm-up) and **Connect LinkedIn**,\n with daily limits. Each asks **Private** or **Shared** → **Continue**\n before you sign in.\n- **New campaign:** Campaigns (`/?path=~outreach/sequences`) → **+ New\n campaign** → where the leads come from (signals, lookalikes, search,\n upload, your CRM) → **Preview leads** → how to reach out (a template or\n **Build with AI**) → who sends → **Ready to launch?** → **Launch\n campaign**. **Save as draft** works throughout. A campaign has tabs\n **Overview · Leads · Sources · Sequence · Activity · Setup**, **Pause /\n Resume**, and **+ Add people** on Leads.\n\n### Find leads\n\nFind leads (`/?path=~find`): tabs **People / Companies / Job postings**, one\nsearch line → **Search**, **Edit search** for every filter. Switching\ntabs starts a new, empty search: nothing carries over from one tab to\nanother (to find people at companies you found, search People by those\ncompany names). Results:\nselect rows → **Add to Leads** / **Add to CRM** (▾ for a view). **Save\nlist** saves the whole search, not the selected rows (a box \"Include all\nN rows\" is ticked by default when there are more than one page); **Watch**\nre-checks it daily. Open a saved list (rail: **Find leads** → the list) →\nits **⋯** (List actions) → **Export CSV** (people lists only), Rename,\nDelete. Unsaved results have no List actions: to export, **Save list**\nfirst. **Find** in the email or phone cells enriches (uses\ncredits). In the rail, **Find leads → Generate new list**.\n\n### Chat, ⌘K and the rest\n\n- **New chat:** **New Chat** at the top of the rail, or **+** in a chat's\n header. Composer: **+** attaches files, **@** adds context (records,\n files, members), **/** runs a skill. The send button becomes **Stop**\n while Dench works. There is no model picker in chat:\n Settings → Models & tools (`/?path=~settings/models`).\n- **Share or delete a chat:** ⋯ in the chat header → **Share with team /\n Make private**, **Delete this chat**. All chats: **Recent chats →\n More**.\n- **⌘K** (or the search icon): jump to any record, chat, automation,\n file, setting, or run **New chat**, **New automation**, **New\n campaign**, **New meeting**, **Invite team member**, **New** plus an object name (e.g. New Lead).\n- **Memory** (what Dench remembers): Settings → About you (`/?path=~settings/about`)\n (yours) and About the company (`/?path=~settings/company`) (shared);\n `~memories` opens About you.\n- **Files** have no rail row and no page of their own: press ⌘K (or the\n search icon at the top of the rail) → the **Files** tab, and search. Or\n list them in chat and link each one (`/?path=` plus the file's path); a\n click opens it beside the chat.\n- **Notifications:** the bell at the top of the rail → **Mentions /\n Following / All**, **Mark all as read**, **Clear all**. Its gear opens\n Settings → Notifications (`/?path=~settings/notifications`): **Email\n digests** (on/off, **How often**, **Daily limit**), **Email me about**\n (a switch per kind), and **In the app → Notification bell** (one\n on/off switch for alerts and the unread dot; the bell's tabs are not\n set here).\n- **Bring another agent (Claude Code, Cursor, …):** **Invite Claude Code**\n at the bottom of the rail (it has no page or link) → **Invite an agent**\n → pick Claude Code, Cursor, OpenClaw or ChatGPT Codex → paste the copied\n prompt into that agent.\n- **Tutorials:** ⌘K → Tutorials (`/?path=~tutorials`).\n"
20
20
  },
21
21
  "references/APPS.md": {
22
22
  "sha256": "666c66d527c53a7d64c4b49b671f3d7ba2db8415698eece6c2a8bdb1a180404d",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dench.com/cli",
3
- "version": "3.12.8-staging.1236",
3
+ "version": "3.12.9-staging.1239",
4
4
  "description": "Dench agent workspace CLI.",
5
5
  "type": "module",
6
6
  "bin": {