CliqHub delivers one event of a Hub Hug (a Hub command: tx_id dedup and ack). It is stored
before the reply; an event already stored, or for a Hug this daemon doesn’t have, replies
stored: false. A file in an answer stays a reference; the agent reads it with ctx.download.
No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon’s realm; this only works once the daemon is connected to CliqHub. See Authentication.
Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a cliq_tok_… personal token whose user is in the daemon's realm.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"cliq","description":"Ready-made AI teams. Your requirements. No code. Get started, concepts, CLI, Hub API, and Daemon API.","colors":{"primary":"#6366F1","light":"#A5B4FC","dark":"#818CF8"},"logo":{"light":"https://mintcdn.com/cliq-bfc61444/Qv4fKCToxYZ9eIU-/logo/light.svg?fit=max\u0026auto=format\u0026n=Qv4fKCToxYZ9eIU-\u0026q=85\u0026s=1e870d95d0e7c37b083a67675484bf8d","dark":"https://mintcdn.com/cliq-bfc61444/Qv4fKCToxYZ9eIU-/logo/dark.svg?fit=max\u0026auto=format\u0026n=Qv4fKCToxYZ9eIU-\u0026q=85\u0026s=a3a04d200588f8d7fe8eecb6500dcd63","href":"https://getcliq.io"},"favicon":"https://mintcdn.com/cliq-bfc61444/Qv4fKCToxYZ9eIU-/favicon.svg?fit=max\u0026auto=format\u0026n=Qv4fKCToxYZ9eIU-\u0026q=85\u0026s=902b753eb8f93b636c5eb7347d1ac7e0","appearance":{"default":"dark"},"background":{"decoration":"gradient","color":{"light":"#F8FAFC","dark":"#0B1020"}},"navbar":{"links":[{"href":"https://cliqhub.io","label":"Hub"},{"href":"https://getcliq.io","label":"Product"}],"primary":{"type":"button","label":"Get started","href":"/get-started"}},"footer":{"socials":{"github":"https://github.com/getcliqio/cliq","website":"https://getcliq.io"}},"fonts":{"family":"IBM Plex Sans"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"one-dark-pro"}},"latex":false},"interaction":{"drilldown":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cliq-bfc61444","hasAudioNarration":false,"actualSubdomain":"cliq-bfc61444","customDomains":["docs.getcliq.io"],"gitSource":{"type":"github","owner":"getcliqio","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ad89b14f98be02d9c7f4713","collectionId":"01105704-eb28-42c2-9338-e50493e33d0f","liveDeploymentHistoryId":"6ad89b14f98be02d9c7f4713","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae2dbbe544ac7d3fd25287e","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"Hub API","count":151},{"language":"default","tag":"Daemon API","count":70},{"language":"default","tag":"Docs","count":52},{"language":"default","tag":"Agents","count":46},{"language":"default","tag":"Runs","count":30},{"language":"default","tag":"Organizations","count":26},{"language":"default","tag":"Teams","count":24},{"language":"default","tag":"Realms","count":14},{"language":"default","tag":"Workspaces","count":12},{"language":"default","tag":"Start","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--cliq-ink:#0b1020;--cliq-panel:#12182b;--cliq-indigo:#6366f1;--cliq-indigo-bright:#a5b4fc;--cliq-heat:#f97316}#navbar{backdrop-filter:blur(14px);border-bottom:1px solid color-mix(in srgb,var(--cliq-indigo) 25%,transparent)}#page-title,eyebrow{letter-spacing:-.03em;font-weight:700}eyebrow{letter-spacing:.1em;text-transform:uppercase;font-size:.68rem;color:var(--cliq-indigo-bright)}code-block{border-radius:10px!important;border:1px solid color-mix(in srgb,var(--cliq-indigo) 28%,transparent)}.cliq-hero h1,method-nav-pill,method-pill{font-weight:700;letter-spacing:.03em}card{border-radius:12px;border:1px solid color-mix(in srgb,#fff 8%,transparent);background:color-mix(in srgb,var(--cliq-panel) 80%,transparent);transition:border-color 140ms ease,transform 140ms ease}card:hover{border-color:color-mix(in srgb,var(--cliq-indigo) 55%,transparent);transform:translateY(-1px)}.cliq-hero{position:relative;overflow:hidden;border-radius:16px;padding:2.5rem 2rem;margin-bottom:2rem;background:radial-gradient(90% 80% at 50% 0%,color-mix(in srgb,#6366f1 35%,transparent),transparent 60%),radial-gradient(70% 60% at 100% 100%,color-mix(in srgb,#312e81 40%,transparent),transparent 55%),linear-gradient(165deg,#0b1020 0%,#1e1b4b 100%);color:#e2e8f0;border:1px solid color-mix(in srgb,#818cf8 25%,transparent)}.cliq-hero h1{margin:.4rem 0 .85rem;font-size:clamp(2.1rem,4.5vw,2.9rem);line-height:1.1;letter-spacing:-.035em;color:#fff}.cliq-hero p{max-width:38rem;margin:0;font-size:1.05rem;line-height:1.55;color:#cbd5e1}.cliq-hero-brand{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;font-weight:500;letter-spacing:.16em;text-transform:lowercase;color:var(--cliq-indigo-bright)}.cliq-hero-cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.6rem}.cliq-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.7rem 1.15rem;border-radius:999px;font-weight:700;font-size:.88rem;text-decoration:none;transition:transform 140ms ease,filter 140ms ease}.cliq-btn:hover{transform:translateY(-1px);filter:brightness(1.06)}.cliq-btn-primary{background:linear-gradient(90deg,#6366f1 0,#a855f7 100%);color:#fff}.cliq-btn-ghost{background:color-mix(in srgb,#fff 6%,transparent);color:#e2e8f0;border:1px solid color-mix(in srgb,#a5b4fc 35%,transparent)}.cliq-kicker{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--cliq-indigo-bright);margin-bottom:.4rem}.cliq-token-grid{display:grid;gap:.75rem;margin:1rem 0 1.5rem}html[data-current-path=\"/\"] #page-title,html[data-current-path=\"/index\"] #page-title{display:none}"}],"page":{"pagePath":"api-reference/daemon-hugs/deliver-a-hug-event","slug":"/api-reference/daemon-hugs/deliver-a-hug-event","pageMetadata":{"title":"Deliver a Hug event","description":"CliqHub delivers one event of a Hub Hug (a Hub command: `tx_id` dedup and ack). It is stored\nbefore the reply; an event already stored, or for a Hug this daemon doesn't have, replies\n`stored: false`. A file in an answer stays a reference; the agent reads it with `ctx.download`.\n\nNo credential is needed from this machine. From another host, send `Authorization: Bearer` with a dispatch token CliqHub signed for this daemon or a `cliq_tok_…` personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See [Authentication](/daemon-api/overview#authentication).","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/deliver","href":"/api-reference/daemon-hugs/deliver-a-hug-event","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"CliqHub delivers one event of a Hub Hug (a Hub command: \", _jsx(_components.code, {\n children: \"tx_id\"\n }), \" dedup and ack). It is stored\\nbefore the reply; an event already stored, or for a Hug this daemon doesn’t have, replies\\n\", _jsx(_components.code, {\n children: \"stored: false\"\n }), \". A file in an answer stays a reference; the agent reads it with \", _jsx(_components.code, {\n children: \"ctx.download\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"No credential is needed from this machine. From another host, send \", _jsx(_components.code, {\n children: \"Authorization: Bearer\"\n }), \" with a dispatch token CliqHub signed for this daemon or a \", _jsx(_components.code, {\n children: \"cliq_tok_…\"\n }), \" personal token of a user in the daemon’s realm; this only works once the daemon is connected to CliqHub. See \", _jsx(_components.a, {\n href: \"/daemon-api/overview#authentication\",\n children: \"Authentication\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"one-dark-pro"}},"config":{},"pageMetadata":{"title":"Deliver a Hug event","description":"CliqHub delivers one event of a Hub Hug (a Hub command: `tx_id` dedup and ack). It is stored\nbefore the reply; an event already stored, or for a Hug this daemon doesn't have, replies\n`stored: false`. A file in an answer stays a reference; the agent reads it with `ctx.download`.\n\nNo credential is needed from this machine. From another host, send `Authorization: Bearer` with a dispatch token CliqHub signed for this daemon or a `cliq_tok_…` personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See [Authentication](/daemon-api/overview#authentication).","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/deliver","href":"/api-reference/daemon-hugs/deliver-a-hug-event","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Daemon Hugs"],"summary":"Deliver a Hug event","operationId":"daemon_post_hugs_deliver","description":"CliqHub delivers one event of a Hub Hug (a Hub command: `tx_id` dedup and ack). It is stored\nbefore the reply; an event already stored, or for a Hug this daemon doesn't have, replies\n`stored: false`. A file in an answer stays a reference; the agent reads it with `ctx.download`.\n\nNo credential is needed from this machine. From another host, send `Authorization: Bearer` with a dispatch token CliqHub signed for this daemon or a `cliq_tok_…` personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See [Authentication](/daemon-api/overview#authentication).","x-cliq-auth":"No credential is needed from this machine. From another host, send `Authorization: Bearer` with a dispatch token CliqHub signed for this daemon or a `cliq_tok_…` personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See [Authentication](/daemon-api/overview#authentication).","security":["3f8c0182-c0ec-4052-85d8-189f5f318da6","c7d34a62-f6b8-4297-b3c1-77e612577775"],"requestBody":"874fed63-fc65-4e6c-a814-8564f6fe3423","responses":{"200":"215fcfa6-2bcc-4612-8c1b-637eb880b708","400":"acf56387-ff7e-4b58-998c-ade9ca2ce1a0","401":"289fe5e9-2c02-4677-9854-2720ce178df7","403":"108b24b1-f2ea-4b15-bfb8-d9cbbcf8c270","500":"29d2294a-7d4e-4c2a-9e91-e36e4e74a76c"},"method":"post","type":"path","servers":["3a1f5703-bd61-4ee8-af1d-18959ad4ef6d"],"path":"/v1/hugs/deliver","baseUrlOptions":["http://127.0.0.1:4900"],"title":"Deliver a Hug event","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hug_id":{"type":"string","minLength":1,"description":"The Hug the event is about","isRequired":true,"uniqueKey":"hug_id","typeLabel":"string"},"seq":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Event number, per Hug (delivered in order; duplicates ignored)","isRequired":true,"uniqueKey":"seq","typeLabel":"integer"},"type":{"type":"string","enum":["response","expired","cancelled"],"description":"What happened","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"run_id":{"description":"Its run","type":"string","uniqueKey":"run_id","typeLabel":"string"},"payload":{"default":{},"description":"The event: `{ response }` for a response, `{ reason? }` when cancelled","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"payload.additionalProperties","typeLabel":"any"},"uniqueKey":"payload","typeLabel":"object"},"tx_id":{"description":"Hub command id (dedup + ack)","type":"string","uniqueKey":"tx_id","typeLabel":"string"}},"required":["hug_id","seq","type"],"additionalProperties":{"oneOf":[{}],"uniqueKey":"additionalProperties","typeLabel":"any"},"uniqueKey":"","typeLabel":"object"},"examples":{"default":{"title":"default","value":{"hug_id":"6c2d1e0f-9a8b-4c7d-8e6f-5a4b3c2d1e0f","run_id":"run-abc","seq":1,"type":"response","payload":{"response":{"response_id":"r-1","responder":{"user_id":"u-1","name":"Ann"},"via":["security"],"values":{"decision":"approve"},"responded_at":"2026-10-07T10:20:00Z"}},"tx_id":"tx-9"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"215fcfa6-2bcc-4612-8c1b-637eb880b708":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","const":true,"isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"data":{"type":"object","properties":{"stored":{"type":"boolean","uniqueKey":"data.stored","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"ok":true,"data":{"stored":true}},"examples":{"Example":{"title":"Example","value":{"ok":true,"data":{"stored":true}}}},"exampleType":"examples"}},"exampleType":"examples"},"acf56387-ff7e-4b58-998c-ade9ca2ce1a0":{"description":"`PAYLOAD_INVALID` — The body (query string for `GET`) fails the request schema. `details` lists each issue.\n\n`BAD_REQUEST` — The body is not valid JSON or is larger than the route allows (10 MB; artifact uploads more).","content":{"application/json":{"schema":{"type":"object","description":"Every failure. Switch on `error.code` — it is stable; `message` is for people and may change.","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable error code. See [Errors](/daemon-api/errors).","example":"TEAM_NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and, where possible, what to do.","example":"Team 'acme/code-review' not found","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured detail when there is some: the list of schema issues for `PAYLOAD_INVALID`, the agent problems for `TEAM_AGENT_CONFIG_REQUIRED`, …","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"PAYLOAD_INVALID":{"title":"PAYLOAD_INVALID","value":{"ok":false,"error":{"code":"PAYLOAD_INVALID","message":"hug_id: Invalid input: expected string, received undefined; seq: Invalid input: expected number, received undefined; type: Invalid option: expected one of \"response\"|\"expired\"|\"cancelled\"","details":[{"path":"hug_id","message":"Invalid input: expected string, received undefined"},{"path":"seq","message":"Invalid input: expected number, received undefined"},{"path":"type","message":"Invalid option: expected one of \"response\"|\"expired\"|\"cancelled\""}]}}},"BAD_REQUEST":{"title":"BAD_REQUEST","value":{"ok":false,"error":{"code":"BAD_REQUEST","message":"Request body could not be read: Unexpected token } in JSON at position 12"}}}},"exampleType":"examples"}},"exampleType":"examples"},"289fe5e9-2c02-4677-9854-2720ce178df7":{"description":"`UNAUTHORIZED` — A caller on another host sent no `Authorization: Bearer` token, or one that does not verify (expired, wrong audience).","content":{"application/json":{"schema":{"type":"object","description":"Every failure. Switch on `error.code` — it is stable; `message` is for people and may change.","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable error code. See [Errors](/daemon-api/errors).","example":"TEAM_NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and, where possible, what to do.","example":"Team 'acme/code-review' not found","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured detail when there is some: the list of schema issues for `PAYLOAD_INVALID`, the agent problems for `TEAM_AGENT_CONFIG_REQUIRED`, …","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"UNAUTHORIZED":{"title":"UNAUTHORIZED","value":{"ok":false,"error":{"code":"UNAUTHORIZED","message":"Missing or invalid Authorization Bearer token"}}}},"exampleType":"examples"}},"exampleType":"examples"},"108b24b1-f2ea-4b15-bfb8-d9cbbcf8c270":{"description":"`WEB_REQUEST_REFUSED` — The request carries an `Origin` header (it came from a web page).\n\n`HOST_NOT_LOCAL` — A loopback caller addressed a `Host` other than localhost (DNS rebinding guard).\n\n`LOCAL_ONLY` — The daemon isn't connected to CliqHub (no dispatch key) and the caller is on another host.\n\n`FORBIDDEN` — A `cliq_tok_…` token's user is not in this daemon's realm ACL, or the ACL is not loaded yet.","content":{"application/json":{"schema":{"type":"object","description":"Every failure. Switch on `error.code` — it is stable; `message` is for people and may change.","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable error code. See [Errors](/daemon-api/errors).","example":"TEAM_NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and, where possible, what to do.","example":"Team 'acme/code-review' not found","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured detail when there is some: the list of schema issues for `PAYLOAD_INVALID`, the agent problems for `TEAM_AGENT_CONFIG_REQUIRED`, …","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"WEB_REQUEST_REFUSED":{"title":"WEB_REQUEST_REFUSED","value":{"ok":false,"error":{"code":"WEB_REQUEST_REFUSED","message":"cliqd doesn't accept requests from web pages"}}},"HOST_NOT_LOCAL":{"title":"HOST_NOT_LOCAL","value":{"ok":false,"error":{"code":"HOST_NOT_LOCAL","message":"cliqd only answers requests addressed to localhost"}}},"LOCAL_ONLY":{"title":"LOCAL_ONLY","value":{"ok":false,"error":{"code":"LOCAL_ONLY","message":"This cliqd isn't connected to CliqHub yet, so from another machine it only accepts a local token (minted by tokens/create on the machine running cliqd)"}}},"FORBIDDEN":{"title":"FORBIDDEN","value":{"ok":false,"error":{"code":"FORBIDDEN","message":"Access denied — identity not in realm ACL"}}}},"exampleType":"examples"}},"exampleType":"examples"},"29d2294a-7d4e-4c2a-9e91-e36e4e74a76c":{"description":"`INTERNAL_ERROR` — An unexpected daemon fault. The message names the request id; the cause is in the cliqd log.","content":{"application/json":{"schema":{"type":"object","description":"Every failure. Switch on `error.code` — it is stable; `message` is for people and may change.","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable error code. See [Errors](/daemon-api/errors).","example":"TEAM_NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and, where possible, what to do.","example":"Team 'acme/code-review' not found","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"description":"Structured detail when there is some: the list of schema issues for `PAYLOAD_INVALID`, the agent problems for `TEAM_AGENT_CONFIG_REQUIRED`, …","uniqueKey":"error.details","typeLabel":"any"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"INTERNAL_ERROR":{"title":"INTERNAL_ERROR","value":{"ok":false,"error":{"code":"INTERNAL_ERROR","message":"cliqd hit an unexpected error (request 7f3a…). Details are in the cliqd log."}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3f8c0182-c0ec-4052-85d8-189f5f318da6":{},"c7d34a62-f6b8-4297-b3c1-77e612577775":{"DaemonBearer":{"type":"http","scheme":"bearer","description":"Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a `cliq_tok_…` personal token whose user is in the daemon's realm.","scopes":[],"schemeName":"DaemonBearer"}}},"servers":{"3a1f5703-bd61-4ee8-af1d-18959ad4ef6d":{"url":"http://127.0.0.1:4900","description":"Local daemon (default port; `CLIQ_DAEMON_PORT` changes it)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a `cliq_tok_…` personal token whose user is in the daemon's realm.","scopes":[],"schemeName":"DaemonBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a `cliq_tok_…` personal token whose user is in the daemon's realm.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"DaemonBearer","name":"Authorization"}],"title":"DaemonBearer"}]},"originalFileLocation":"openapi/daemon-by-tag/daemon-hug.yaml"},"subdomain":"cliq-bfc61444","siteName":"cliq","title":"Deliver a Hug event - cliq","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T05:38:32.406Z","originalFileLocation":"api-reference/daemon-hugs/deliver-a-hug-event.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"CliqHub delivers one event of a Hub Hug (a Hub command: tx_id dedup and ack). It is stored before the reply; an event already stored, or for a Hug this daemon doesn\u0026#x27;t have, replies stored: false. A file in an answer stays a reference; the agent reads it with ctx.download. No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon\u0026#x27;s realm; this only works once the daemon is connected to CliqHub. See Authentication.\">\u003cmeta data-mint-head name=\"application-name\" content=\"cliq\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Deliver a Hug event - cliq\">\u003cmeta data-mint-head property=\"og:description\" content=\"CliqHub delivers one event of a Hub Hug (a Hub command: tx_id dedup and ack). It is stored before the reply; an event already stored, or for a Hug this daemon doesn\u0026#x27;t have, replies stored: false. A file in an answer stays a reference; the agent reads it with ctx.download. No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon\u0026#x27;s realm; this only works once the daemon is connected to CliqHub. See Authentication.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"cliq\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cliq-bfc61444.mintlify.app/_mintlify/api/og/v2?division=Hugs\u0026amp;title=Deliver+a+Hug+event\u0026amp;description=CliqHub+delivers+one+event+of+a+Hub+Hug+%28a+Hub+command%3A+%60tx_id%60+dedup+and+ack%29.+It+is+stored%0Abefore+the+reply%3B+an+event+already+stored%2C+or+for+a+Hug+this+daemon\u0026amp;theme=9070f785cb6521323ef25a11\u0026amp;signature=2f6b09b935c88be9c0a283755c302dad7f82723d68589bcc4e22940ead66d91d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Deliver a Hug event - cliq\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"CliqHub delivers one event of a Hub Hug (a Hub command: tx_id dedup and ack). It is stored before the reply; an event already stored, or for a Hug this daemon doesn\u0026#x27;t have, replies stored: false. A file in an answer stays a reference; the agent reads it with ctx.download. No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon\u0026#x27;s realm; this only works once the daemon is connected to CliqHub. See Authentication.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cliq-bfc61444.mintlify.app/_mintlify/api/og/v2?division=Hugs\u0026amp;title=Deliver+a+Hug+event\u0026amp;description=CliqHub+delivers+one+event+of+a+Hub+Hug+%28a+Hub+command%3A+%60tx_id%60+dedup+and+ack%29.+It+is+stored%0Abefore+the+reply%3B+an+event+already+stored%2C+or+for+a+Hug+this+daemon\u0026amp;theme=9070f785cb6521323ef25a11\u0026amp;signature=2f6b09b935c88be9c0a283755c302dad7f82723d68589bcc4e22940ead66d91d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cliq-bfc61444/db4-CFxuo784dgun/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"cliq\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/daemon-hugs/deliver-a-hug-event.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getcliq.io/#organization\",\"name\":\"cliq\",\"url\":\"https://docs.getcliq.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cliq-bfc61444/Qv4fKCToxYZ9eIU-/logo/light.svg?fit=max\u0026auto=format\u0026n=Qv4fKCToxYZ9eIU-\u0026q=85\u0026s=1e870d95d0e7c37b083a67675484bf8d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getcliq.io#website\",\"name\":\"cliq\",\"url\":\"https://docs.getcliq.io\",\"publisher\":{\"@id\":\"https://docs.getcliq.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event#webpage\",\"url\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event\",\"name\":\"Deliver a Hug event\",\"description\":\"CliqHub delivers one event of a Hub Hug (a Hub command: tx_id dedup and ack). It is stored before the reply; an event already stored, or for a Hug this daemon doesn't have, replies stored: false. A file in an answer stays a reference; the agent reads it with ctx.download. No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See Authentication.\",\"dateModified\":\"2026-10-29T05:38:32.406Z\",\"isPartOf\":{\"@id\":\"https://docs.getcliq.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hugs\",\"item\":\"https://docs.getcliq.io/api-reference/daemon-hugs/open-a-hug\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deliver a Hug event\",\"item\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event#apireference\",\"headline\":\"Deliver a Hug event\",\"name\":\"Deliver a Hug event\",\"description\":\"CliqHub delivers one event of a Hub Hug (a Hub command: tx_id dedup and ack). It is stored before the reply; an event already stored, or for a Hug this daemon doesn't have, replies stored: false. A file in an answer stays a reference; the agent reads it with ctx.download. No credential is needed from this machine. From another host, send Authorization: Bearer with a dispatch token CliqHub signed for this daemon or a cliq_tok_… personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See Authentication.\",\"url\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getcliq.io/api-reference/daemon-hugs/deliver-a-hug-event#webpage\"},\"dateModified\":\"2026-10-29T05:38:32.406Z\",\"publisher\":{\"@id\":\"https://docs.getcliq.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getcliq.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"cliq\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"cliq","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"Hub API","pages":[{"title":"Hub API","href":"/hub-api/overview"}]},{"tab":"Daemon API","groups":[{"group":"Introduction","pages":[{"title":"cliqd API","sidebarTitle":"Overview","href":"/daemon-api/overview"},{"title":"Errors","href":"/daemon-api/errors"}]},{"group":"System","pages":[{"title":"Check daemon health","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-system.yaml get /v1/system/health","href":"/api-reference/daemon-system/check-daemon-health"}]},{"group":"Teams","pages":[{"title":"Install a team from a manifest","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/install","href":"/api-reference/daemon-teams/install-a-team-from-a-manifest"},{"title":"Uninstall a team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/uninstall","href":"/api-reference/daemon-teams/uninstall-a-team"},{"title":"List installed teams","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/get","href":"/api-reference/daemon-teams/list-installed-teams"},{"title":"Search CliqHub's team catalog","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/search","href":"/api-reference/daemon-teams/search-cliqhubs-team-catalog"},{"title":"Get one installed team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/get_by_name","href":"/api-reference/daemon-teams/get-one-installed-team"},{"title":"Update an installed team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/update","href":"/api-reference/daemon-teams/update-an-installed-team"},{"title":"Publish a team to CliqHub","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/publish","href":"/api-reference/daemon-teams/publish-a-team-to-cliqhub"},{"title":"Validate a team manifest","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/validate","href":"/api-reference/daemon-teams/validate-a-team-manifest"},{"title":"Install a team from CliqHub","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-teams.yaml post /v1/teams/hub_install","href":"/api-reference/daemon-teams/install-a-team-from-cliqhub"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/get","href":"/api-reference/daemon-workspaces/list-workspaces"},{"title":"Register a workspace","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/init","href":"/api-reference/daemon-workspaces/register-a-workspace"},{"title":"Assign a team to a workspace","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/assemble_team","href":"/api-reference/daemon-workspaces/assign-a-team-to-a-workspace"},{"title":"Remove a team from a workspace","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/remove_team","href":"/api-reference/daemon-workspaces/remove-a-team-from-a-workspace"},{"title":"Start a run","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/run","href":"/api-reference/daemon-workspaces/start-a-run"},{"title":"Get workspace status","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/status","href":"/api-reference/daemon-workspaces/get-workspace-status"},{"title":"Clean run history from a workspace","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/clean","href":"/api-reference/daemon-workspaces/clean-run-history-from-a-workspace"},{"title":"Unregister a workspace","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/remove","href":"/api-reference/daemon-workspaces/unregister-a-workspace"},{"title":"Diagnose this daemon","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-workspaces.yaml post /v1/workspaces/doctor","href":"/api-reference/daemon-workspaces/diagnose-this-daemon"}]},{"group":"Runs","pages":[{"title":"Stream run events","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml get /v1/runs/events","href":"/api-reference/daemon-runs/stream-run-events"},{"title":"Push a run event","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/events","href":"/api-reference/daemon-runs/push-a-run-event"},{"title":"Subscribe to run events","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/events/subscribe","href":"/api-reference/daemon-runs/subscribe-to-run-events"},{"title":"Unsubscribe from run events","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/events/unsubscribe","href":"/api-reference/daemon-runs/unsubscribe-from-run-events"},{"title":"List runs","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/get","href":"/api-reference/daemon-runs/list-runs"},{"title":"Read a run log","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/logs","href":"/api-reference/daemon-runs/read-a-run-log"},{"title":"Get a run tree","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/tree","href":"/api-reference/daemon-runs/get-a-run-tree"},{"title":"Send a run data record","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/create_rdr","href":"/api-reference/daemon-runs/send-a-run-data-record"},{"title":"Resume a run from a phase","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/resume","href":"/api-reference/daemon-runs/resume-a-run-from-a-phase"},{"title":"List run phases","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-runs.yaml post /v1/runs/phases","href":"/api-reference/daemon-runs/list-run-phases"}]},{"group":"Artifacts","pages":[{"title":"Upload an artifact","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-artifacts.yaml post /v1/runs/artifacts/submit","href":"/api-reference/daemon-artifacts/upload-an-artifact"},{"title":"Get an artifact","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-artifacts.yaml post /v1/artifacts/get_by_id","href":"/api-reference/daemon-artifacts/get-an-artifact"},{"title":"Download an artifact","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-artifacts.yaml post /v1/artifacts/download","href":"/api-reference/daemon-artifacts/download-an-artifact"}]},{"group":"Agents","pages":[{"title":"List local agents","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-agents.yaml post /v1/agents/get","href":"/api-reference/daemon-agents/list-local-agents"},{"title":"Get a local agent","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-agents.yaml post /v1/agents/get_by_id","href":"/api-reference/daemon-agents/get-a-local-agent"},{"title":"Register an agent with CliqHub","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-agents.yaml post /v1/agents/register","href":"/api-reference/daemon-agents/register-an-agent-with-cliqhub"},{"title":"Unregister an agent from CliqHub","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-agents.yaml post /v1/agents/unregister","href":"/api-reference/daemon-agents/unregister-an-agent-from-cliqhub"}]},{"group":"Settings","pages":[{"title":"List settings","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-settings.yaml post /v1/settings/get","href":"/api-reference/daemon-settings/list-settings"},{"title":"Get a setting","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-settings.yaml post /v1/settings/get_by_key","href":"/api-reference/daemon-settings/get-a-setting"},{"title":"Set a setting","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-settings.yaml post /v1/settings/set","href":"/api-reference/daemon-settings/set-a-setting"}]},{"group":"Instances","pages":[{"title":"List instances","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-instances.yaml post /v1/instances/get","href":"/api-reference/daemon-instances/list-instances"},{"title":"Get an instance","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-instances.yaml post /v1/instances/get_by_id","href":"/api-reference/daemon-instances/get-an-instance"},{"title":"Stop an instance","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-instances.yaml post /v1/instances/stop","href":"/api-reference/daemon-instances/stop-an-instance"}]},{"group":"Daemon","pages":[{"title":"Get daemon status","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-daemon.yaml post /v1/daemon/status","href":"/api-reference/daemon-daemon/get-daemon-status"},{"title":"Restart the daemon","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-daemon.yaml post /v1/daemon/restart","href":"/api-reference/daemon-daemon/restart-the-daemon"},{"title":"Get daemon summary","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-daemon.yaml post /v1/daemon/summary","href":"/api-reference/daemon-daemon/get-daemon-summary"}]},{"group":"Sign-in","pages":[{"title":"Sign in to CliqHub","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-auth.yaml post /v1/login","href":"/api-reference/daemon-sign-in/sign-in-to-cliqhub"},{"title":"Sign out of CliqHub","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-auth.yaml post /v1/logout","href":"/api-reference/daemon-sign-in/sign-out-of-cliqhub"},{"title":"Mint a CliqHub token","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-auth.yaml post /v1/auth/token","href":"/api-reference/daemon-sign-in/mint-a-cliqhub-token"},{"title":"Rotate a dispatch key","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-auth.yaml post /v1/auth/rotate_dispatch","href":"/api-reference/daemon-sign-in/rotate-a-dispatch-key"}]},{"group":"Local tokens","pages":[{"title":"Create a local token","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-tokens.yaml post /v1/tokens/create","href":"/api-reference/daemon-local-tokens/create-a-local-token"},{"title":"List local tokens","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-tokens.yaml post /v1/tokens/get","href":"/api-reference/daemon-local-tokens/list-local-tokens"},{"title":"Revoke a local token","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-tokens.yaml post /v1/tokens/revoke","href":"/api-reference/daemon-local-tokens/revoke-a-local-token"}]},{"group":"Hugs","pages":[{"title":"Open a Hug","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/open","href":"/api-reference/daemon-hugs/open-a-hug"},{"title":"Wait for Hug events","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/next","href":"/api-reference/daemon-hugs/wait-for-hug-events"},{"title":"Save the agent's Hug state","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/save_state","href":"/api-reference/daemon-hugs/save-the-agents-hug-state"},{"title":"Close a Hug","description":"The agent ends its Hug with its outcome; later answers are refused. Closing again changes nothing. When enrolled, CliqHub is told through the outbox.\n\nNo credential is needed from this machine. From another host, send `Authorization: Bearer` with a dispatch token CliqHub signed for this daemon or a `cliq_tok_…` personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See [Authentication](/daemon-api/overview#authentication).","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/close","href":"/api-reference/daemon-hugs/close-a-hug"},{"title":"Deliver a Hug event","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/deliver","href":"/api-reference/daemon-hugs/deliver-a-hug-event"},{"title":"Answer a local Hug","description":"Standalone mode: the person at the terminal answers (what `cliq run` sends). `values` are\nchecked against the Hug's inputs; a file input takes `{ path, name, size, sha256 }` for a\nfile copied into the Hug's directory (`.cliq/hugs/\u003chug_id>/`), and the file on disk must\nsuit the input (its accepted types and size). The daemon then moves it into its own store\nand the answer carries a reference to it, as a CliqHub answer would. The answer counts for\nevery channel the Hug went to.\n\nNo credential is needed from this machine. From another host, send `Authorization: Bearer` with a dispatch token CliqHub signed for this daemon or a `cliq_tok_…` personal token of a user in the daemon's realm; this only works once the daemon is connected to CliqHub. See [Authentication](/daemon-api/overview#authentication).","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-hug.yaml post /v1/hugs/respond","href":"/api-reference/daemon-hugs/answer-a-local-hug"}]},{"group":"Hub commands","pages":[{"title":"Execute a run","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/execute","href":"/api-reference/daemon-hub-commands/execute-a-run"},{"title":"Offer a run","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/offer_job","href":"/api-reference/daemon-hub-commands/offer-a-run"},{"title":"Install an authorized team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/install","href":"/api-reference/daemon-hub-commands/install-an-authorized-team"},{"title":"Cancel a run","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/cancel","href":"/api-reference/daemon-hub-commands/cancel-a-run"},{"title":"Initialize a workspace","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/init","href":"/api-reference/daemon-hub-commands/initialize-a-workspace"},{"title":"Assign a team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/assemble","href":"/api-reference/daemon-hub-commands/assign-a-team"},{"title":"Unbind a team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/unbind","href":"/api-reference/daemon-hub-commands/unbind-a-team"},{"title":"Uninstall a team","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/uninstall","href":"/api-reference/daemon-hub-commands/uninstall-a-team"},{"title":"Resume a run","deprecated":null,"version":null,"openapi":"/openapi/daemon-by-tag/daemon-commands.yaml post /v1/resume","href":"/api-reference/daemon-hub-commands/resume-a-run"}]}]}]},"title":"Deliver a Hug event - cliq","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-CBCH2P7b.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}