What the server does for you regardless of client, and the two places where a script must do what the browser does.
The co-construction loop is driven entirely server-side, so an API-only client and a browser
user produce the same state. Specifically, all of the following happen inside the agent turn
with no client involvement:
Concern
Where it happens
Turn indexing
increment_turn runs server-side before the agent, and the assigned turn_index comes back on conversation_info. You never track it yourself.
Workspace snapshots
Written during the turn, keyed by (thread_id, turn_index). This is what makes branching and history work.
Artifacts
Persisted by the tool layer as the agent produces them, already tagged with the right turn.
Trajectory graph
GET /api/conversations/{id}/graph is computed from persisted data. The web UI only does visual layout on top of it.
Branching
POST /api/conversations/{id}/branch reconstructs the workspace from the snapshot. The workspace field is an optional override the UI uses to carry unsaved edits; omit it and the server does the right thing.
Two differences are worth knowing before you rely on the API alone.
Feedback vocabulary is not discoverable from the API. The backend deliberately validates
only the shape of a feedback row, so that the research instrument can evolve without a
migration (see ADR-0005). It enforces:
sentiment ∈ positive, neutral, negative (null for reports)
aspect as a bounded slug, and category as a bounded string, with no enum
The actual aspects (target_endorsement, plan_delta, artifact_satisfaction,
task_completion, trajectory_assessment, and so on) and their permitted category values
live only in frontend/src/lib/feedback-taxonomy.ts. Treat that file as the authoritative
list, and expect it to change between releases without the API contract changing.
The API does not enforce study-mode feedback gating. In the web UI under study mode, the
send button is blocked until the required feedback for a turn has been given. That rule is
implemented client-side only, so a script can advance turns without submitting any feedback.
If you are collecting study data over the API, enforce the requirement in your own client.
The default model is not a difference: a request that omits config runs the same
gemini-2.5-flash the web UI sends. See choosing a model
if you want to override it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HAI-Co²","description":"Human-AI Co-Construction — a reference implementation where humans and an AI agent co-create a single shared solution.","colors":{"primary":"#b3122e","light":"#ef5350","dark":"#8f0020"},"logo":{"light":"https://mintcdn.com/haico/aNUR3wbnrnztqqGB/logo/light.svg?fit=max\u0026auto=format\u0026n=aNUR3wbnrnztqqGB\u0026q=85\u0026s=3045cc326627afefe53e7fec59fb3a3b","dark":"https://mintcdn.com/haico/aNUR3wbnrnztqqGB/logo/dark.svg?fit=max\u0026auto=format\u0026n=aNUR3wbnrnztqqGB\u0026q=85\u0026s=0f9f1bd9d8728a6dafef3140b46e3a94"},"favicon":"https://mintcdn.com/haico/aNUR3wbnrnztqqGB/favicon.svg?fit=max\u0026auto=format\u0026n=aNUR3wbnrnztqqGB\u0026q=85\u0026s=090143620f4c5d840c585111f7d92182","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://haico.gr","label":"Live app"}],"primary":{"type":"github","href":"https://github.com/petrosrapto/HAICO"}},"footer":{"socials":{"github":"https://github.com/petrosrapto/HAICO","website":"https://haico.gr"},"links":[{"header":"Documentation","items":[{"label":"What is HAI-Co²","href":"/overview"},{"label":"Architecture","href":"/architecture"},{"label":"Agent core logic","href":"/agent-core-logic"},{"label":"Tracing \u0026 data collection","href":"/observability"},{"label":"API reference","href":"/api-reference"}]},{"header":"Project","items":[{"label":"Live app","href":"https://haico.gr"},{"label":"GitHub","href":"https://github.com/petrosrapto/HAICO"},{"label":"Decision records","href":"/adr/index"}]},{"header":"Contributing","items":[{"label":"Community guide","href":"/community-guide"},{"label":"Maintainers handbook","href":"/maintainers-handbook"},{"label":"Demo walkthrough","href":"/demo"}]}]},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"haico","hasAudioNarration":false,"actualSubdomain":"haico","customDomains":["haico.gr"],"gitSource":{"type":"github","owner":"petrosrapto","repo":"haico","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a9bf56d401bc72924942f6a","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API Reference","count":60},{"language":"default","tag":"Endpoints","count":53},{"language":"default","tag":"Documentation","count":30},{"language":"default","tag":"Workspace","count":22},{"language":"default","tag":"How it works","count":11},{"language":"default","tag":"Reference","count":10},{"language":"default","tag":"Decision records","count":9},{"language":"default","tag":"Study","count":8},{"language":"default","tag":"Contributing","count":7},{"language":"default","tag":"Guide","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"site-roles","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":"full-page-search","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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"pre[language=\"text\"] code,pre[language=\"text\"] .line,pre[language=\"text\"] .line span{font-family:\"Menlo\", \"DejaVu Sans Mono\", \"Cascadia Mono\", \"Consolas\",\n \"Liberation Mono\", \"Courier New\", monospace!important;font-variant-ligatures:none!important}.max-w-8xl{max-width:none!important}#sidebar{left:2rem!important}#footer>div{max-width:none!important;padding-top:1.75rem!important;padding-bottom:1.75rem!important;gap:1.5rem!important}"}]}
{"page":{"pagePath":"api-guide/api-only-clients","slug":"/api-guide/api-only-clients","pageMetadata":{"title":"API-only clients","sidebarTitle":"API-only clients","description":"What the server does for you regardless of client, and the two places where a script must do what the browser does.","href":"/api-guide/api-only-clients"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"What the server does for you regardless of client, and the two places where a script must do what the browser does.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Note,Table,Warning}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The co-construction loop is driven entirely server-side, so an API-only client and a browser\nuser produce the same state. Specifically, all of the following happen inside the agent turn\nwith no client involvement:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Concern`}),_jsx(_components.th,{children:`Where it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Turn indexing`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`increment_turn`}),` runs server-side before the agent, and the assigned `,_jsx(_components.code,{children:`turn_index`}),` comes back on `,_jsx(_components.code,{children:`conversation_info`}),`. You never track it yourself.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Workspace snapshots`})}),_jsxs(_components.td,{children:[`Written during the turn, keyed by `,_jsx(_components.code,{children:`(thread_id, turn_index)`}),`. This is what makes branching and history work.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Artifacts`})}),_jsx(_components.td,{children:`Persisted by the tool layer as the agent produces them, already tagged with the right turn.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Trajectory graph`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`GET /api/conversations/{id}/graph`}),` is computed from persisted data. The web UI only does visual layout on top of it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Branching`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /api/conversations/{id}/branch`}),` reconstructs the workspace from the snapshot. The `,_jsx(_components.code,{children:`workspace`}),` field is an optional override the UI uses to carry unsaved edits; `,_jsx(_components.strong,{children:`omit it and the server does the right thing.`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Two differences are worth knowing before you rely on the API alone.`}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Feedback vocabulary is not discoverable from the API.`}),` The backend deliberately validates\nonly the `,_jsx(_components.em,{children:`shape`}),` of a feedback row, so that the research instrument can evolve without a\nmigration (see `,_jsx(_components.a,{href:`/adr/0005-user-feedback-frame`,children:`ADR-0005`}),`). It enforces:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`scope`}),` ∈ `,_jsx(_components.code,{children:`message`}),`, `,_jsx(_components.code,{children:`objective`}),`, `,_jsx(_components.code,{children:`plan`}),`, `,_jsx(_components.code,{children:`artifact`}),`, `,_jsx(_components.code,{children:`preferences`}),`, `,_jsx(_components.code,{children:`conversation`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sentiment`}),` ∈ `,_jsx(_components.code,{children:`positive`}),`, `,_jsx(_components.code,{children:`neutral`}),`, `,_jsx(_components.code,{children:`negative`}),` (null for reports)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`aspect`}),` as a bounded slug, and `,_jsx(_components.code,{children:`category`}),` as a bounded string, `,_jsx(_components.strong,{children:`with no enum`})]}),`\n`]}),_jsxs(_components.p,{children:[`The actual aspects (`,_jsx(_components.code,{children:`target_endorsement`}),`, `,_jsx(_components.code,{children:`plan_delta`}),`, `,_jsx(_components.code,{children:`artifact_satisfaction`}),`,\n`,_jsx(_components.code,{children:`task_completion`}),`, `,_jsx(_components.code,{children:`trajectory_assessment`}),`, and so on) and their permitted `,_jsx(_components.code,{children:`category`}),` values\nlive only in `,_jsx(_components.code,{children:`frontend/src/lib/feedback-taxonomy.ts`}),`. Treat that file as the authoritative\nlist, and expect it to change between releases without the API contract changing.`]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The API does not enforce study-mode feedback gating.`}),` In the web UI under study mode, the\nsend button is blocked until the required feedback for a turn has been given. That rule is\nimplemented client-side only, so a script can advance turns without submitting any feedback.\nIf you are collecting study data over the API, enforce the requirement in your own client.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The default model is `,_jsx(_components.strong,{children:`not`}),` a difference: a request that omits `,_jsx(_components.code,{children:`config`}),` runs the same\n`,_jsx(_components.code,{children:`gemini-2.5-flash`}),` the web UI sends. See `,_jsx(_components.a,{href:`/api-guide/streaming-turns#choosing-a-model`,children:`choosing a model`}),`\nif you want to override it.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API-only clients","sidebarTitle":"API-only clients","description":"What the server does for you regardless of client, and the two places where a script must do what the browser does.","href":"/api-guide/api-only-clients"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"haico","siteName":"HAI-Co²","title":"API-only clients - HAI-Co²","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-02T19:37:46.151Z","originalFileLocation":"api-guide/api-only-clients.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=\"light\"}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=\"What the server does for you regardless of client, and the two places where a script must do what the browser does.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HAI-Co²\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_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=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API-only clients - HAI-Co²\">\u003cmeta data-mint-head property=\"og:description\" content=\"What the server does for you regardless of client, and the two places where a script must do what the browser does.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HAI-Co²\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://haico.gr/docs/api-guide/api-only-clients\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://haico.mintlify.site/docs/_mintlify/api/og/v2?division=Guide\u0026amp;title=API-only+clients\u0026amp;description=What+the+server+does+for+you+regardless+of+client%2C+and+the+two+places+where+a+script+must+do+what+the+browser+does.\u0026amp;theme=7429cdab4c1937c4fde669c9\u0026amp;signature=57477461099f0ae14b9c18adb421e61d0cc5c54a95b6525996a55c358a6a17a7\">\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=\"API-only clients - HAI-Co²\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What the server does for you regardless of client, and the two places where a script must do what the browser does.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://haico.mintlify.site/docs/_mintlify/api/og/v2?division=Guide\u0026amp;title=API-only+clients\u0026amp;description=What+the+server+does+for+you+regardless+of+client%2C+and+the+two+places+where+a+script+must+do+what+the+browser+does.\u0026amp;theme=7429cdab4c1937c4fde669c9\u0026amp;signature=57477461099f0ae14b9c18adb421e61d0cc5c54a95b6525996a55c358a6a17a7\">\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=\"/docs/mintlify-assets/_mintlify/favicons/haico/EWKTxZ3q1jF3X9VP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HAI-Co²\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#b3122e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://haico.gr/docs/api-guide/api-only-clients\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-guide/api-only-clients.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://haico.gr/#organization\",\"name\":\"HAI-Co²\",\"url\":\"https://haico.gr\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/haico/aNUR3wbnrnztqqGB/logo/light.svg?fit=max\u0026auto=format\u0026n=aNUR3wbnrnztqqGB\u0026q=85\u0026s=3045cc326627afefe53e7fec59fb3a3b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://haico.gr/docs#website\",\"name\":\"HAI-Co²\",\"url\":\"https://haico.gr/docs\",\"publisher\":{\"@id\":\"https://haico.gr/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://haico.gr/docs/api-guide/api-only-clients#webpage\",\"url\":\"https://haico.gr/docs/api-guide/api-only-clients\",\"name\":\"API-only clients\",\"description\":\"What the server does for you regardless of client, and the two places where a script must do what the browser does.\",\"dateModified\":\"2026-08-02T19:37:46.151Z\",\"isPartOf\":{\"@id\":\"https://haico.gr/docs#website\"},\"breadcrumb\":{\"@id\":\"https://haico.gr/docs/api-guide/api-only-clients#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://haico.gr/docs/api-guide/api-only-clients#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guide\",\"item\":\"https://haico.gr/docs/api-reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API-only clients\",\"item\":\"https://haico.gr/docs/api-guide/api-only-clients\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://haico.gr/docs/api-guide/api-only-clients#article\",\"headline\":\"API-only clients\",\"name\":\"API-only clients\",\"description\":\"What the server does for you regardless of client, and the two places where a script must do what the browser does.\",\"url\":\"https://haico.gr/docs/api-guide/api-only-clients\",\"mainEntityOfPage\":{\"@id\":\"https://haico.gr/docs/api-guide/api-only-clients#webpage\"},\"dateModified\":\"2026-08-02T19:37:46.151Z\",\"publisher\":{\"@id\":\"https://haico.gr/#organization\"},\"isPartOf\":{\"@id\":\"https://haico.gr/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HAI-Co²\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"HAI-Co²\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-guide/api-only-clients.md","siteName":"HAI-Co²","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Contributing","pages":[{"title":"Contributing","href":"/community-guide"}]},{"tab":"API Reference","groups":[{"group":"Guide","pages":[{"title":"Getting started","sidebarTitle":"Getting started","href":"/api-reference"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/api-guide/authentication"},{"title":"Endpoint groups","sidebarTitle":"Endpoint groups","href":"/api-guide/endpoint-groups"},{"title":"Streaming agent turns","sidebarTitle":"Streaming agent turns","href":"/api-guide/streaming-turns"},{"title":"Reading the workspace","sidebarTitle":"Reading the workspace","description":"Fetch the objective, document, and plan that the agent and the user co-constructed.","href":"/api-guide/workspace"},{"title":"API-only clients","sidebarTitle":"API-only clients","href":"/api-guide/api-only-clients"},{"title":"Recipes","sidebarTitle":"Recipes","description":"A runnable two-turn co-construction loop in Python, and a token check for CI.","href":"/api-guide/recipes"}]},{"group":"Endpoints","pages":[{"group":"Health","pages":[{"title":"Health","deprecated":null,"version":null,"openapi":"/openapi.json get /health","href":"/api-reference/health/health"},{"title":"Ready","deprecated":null,"version":null,"openapi":"/openapi.json get /ready","href":"/api-reference/health/ready"}]},{"group":"Auth","pages":[{"title":"Register","deprecated":null,"version":null,"openapi":"/openapi.json post /api/auth/register","href":"/api-reference/auth/register"},{"title":"Login","deprecated":null,"version":null,"openapi":"/openapi.json post /api/auth/login","href":"/api-reference/auth/login"},{"title":"Google Auth","deprecated":null,"version":null,"openapi":"/openapi.json post /api/auth/google-auth","href":"/api-reference/auth/google-auth"},{"title":"Verify Email","deprecated":null,"version":null,"openapi":"/openapi.json get /api/auth/verify-email","href":"/api-reference/auth/verify-email"},{"title":"Resend Verification","deprecated":null,"version":null,"openapi":"/openapi.json post /api/auth/resend-verification","href":"/api-reference/auth/resend-verification"},{"title":"Me","deprecated":null,"version":null,"openapi":"/openapi.json get /api/auth/me","href":"/api-reference/auth/me"},{"title":"Record Consent","deprecated":null,"version":null,"openapi":"/openapi.json post /api/auth/consent","href":"/api-reference/auth/record-consent"}]},{"group":"API Keys","pages":[{"title":"List Keys","deprecated":null,"version":null,"openapi":"/openapi.json get /api/keys","href":"/api-reference/api-keys/list-keys"},{"title":"Create Key","deprecated":null,"version":null,"openapi":"/openapi.json post /api/keys","href":"/api-reference/api-keys/create-key"},{"title":"Revoke Key","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/keys/{key_id}","href":"/api-reference/api-keys/revoke-key"}]},{"group":"Query","pages":[{"title":"Stream Steps Sse","deprecated":null,"version":null,"openapi":"/openapi.json post /api/query/stream_steps/sse","href":"/api-reference/query/stream-steps-sse"}]},{"group":"Conversations","pages":[{"title":"List Conversations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/conversations","href":"/api-reference/conversations/list-conversations"},{"title":"Create Conversation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/conversations","href":"/api-reference/conversations/create-conversation"},{"title":"Delete Conversation","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/conversations/{thread_id}","href":"/api-reference/conversations/delete-conversation"},{"title":"Get Conversation Messages","deprecated":null,"version":null,"openapi":"/openapi.json get /api/conversations/{thread_id}/messages","href":"/api-reference/conversations/get-conversation-messages"},{"title":"Branch Conversation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/conversations/{thread_id}/branch","href":"/api-reference/conversations/branch-conversation"},{"title":"Get Conversation Graph","deprecated":null,"version":null,"openapi":"/openapi.json get /api/conversations/{thread_id}/graph","href":"/api-reference/conversations/get-conversation-graph"}]},{"group":"Workspace","pages":[{"title":"Get Document","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/document","href":"/api-reference/workspace/get-document"},{"title":"Put Document","deprecated":null,"version":null,"openapi":"/openapi.json put /api/workspace/{thread_id}/document","href":"/api-reference/workspace/put-document"},{"title":"Get Objective","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/objective","href":"/api-reference/workspace/get-objective"},{"title":"Put Objective","deprecated":null,"version":null,"openapi":"/openapi.json put /api/workspace/{thread_id}/objective","href":"/api-reference/workspace/put-objective"},{"title":"Get Objective History","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/objective/history","href":"/api-reference/workspace/get-objective-history"},{"title":"List Todos","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/todos","href":"/api-reference/workspace/list-todos"},{"title":"Create Todo","deprecated":null,"version":null,"openapi":"/openapi.json post /api/workspace/{thread_id}/todos","href":"/api-reference/workspace/create-todo"},{"title":"Toggle Todo","deprecated":null,"version":null,"openapi":"/openapi.json post /api/workspace/{thread_id}/todos/{todo_id}/toggle","href":"/api-reference/workspace/toggle-todo"},{"title":"Reorder Todos","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/workspace/{thread_id}/todos/reorder","href":"/api-reference/workspace/reorder-todos"},{"title":"Reindent Todo","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/workspace/{thread_id}/todos/{todo_id}/reindent","href":"/api-reference/workspace/reindent-todo"},{"title":"Delete Todo","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/workspace/{thread_id}/todos/{todo_id}","href":"/api-reference/workspace/delete-todo"},{"title":"Update Todo","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/workspace/{thread_id}/todos/{todo_id}","href":"/api-reference/workspace/update-todo"},{"title":"List Preferences","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/preferences","href":"/api-reference/workspace/list-preferences"},{"title":"Create Preference","deprecated":null,"version":null,"openapi":"/openapi.json post /api/workspace/{thread_id}/preferences","href":"/api-reference/workspace/create-preference"},{"title":"Reorder Preferences","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/workspace/{thread_id}/preferences/reorder","href":"/api-reference/workspace/reorder-preferences"},{"title":"Delete Preference","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/workspace/{thread_id}/preferences/{pref_id}","href":"/api-reference/workspace/delete-preference"},{"title":"Update Preference","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/workspace/{thread_id}/preferences/{pref_id}","href":"/api-reference/workspace/update-preference"},{"title":"List Artifacts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/artifacts","href":"/api-reference/workspace/list-artifacts"},{"title":"Get Latest Artifact","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/artifacts/latest","href":"/api-reference/workspace/get-latest-artifact"},{"title":"Get Artifact","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/artifacts/{artifact_id}","href":"/api-reference/workspace/get-artifact"},{"title":"List Snapshots","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/snapshots","href":"/api-reference/workspace/list-snapshots"},{"title":"Get Snapshot","deprecated":null,"version":null,"openapi":"/openapi.json get /api/workspace/{thread_id}/snapshots/{turn_index}","href":"/api-reference/workspace/get-snapshot"}]},{"group":"Feedback","pages":[{"title":"Upsert Feedback","deprecated":null,"version":null,"openapi":"/openapi.json put /api/feedback","href":"/api-reference/feedback/upsert-feedback"},{"title":"Delete Feedback","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/feedback","href":"/api-reference/feedback/delete-feedback"},{"title":"Get Thread Feedback","deprecated":null,"version":null,"openapi":"/openapi.json get /api/feedback/{thread_id}","href":"/api-reference/feedback/get-thread-feedback"}]},{"group":"Study","pages":[{"title":"Study Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/study/status","href":"/api-reference/study/study-status"},{"title":"Start Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/study/sessions","href":"/api-reference/study/start-session"},{"title":"Current Session","deprecated":null,"version":null,"openapi":"/openapi.json get /api/study/sessions/current","href":"/api-reference/study/current-session"},{"title":"Advance Step","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/study/sessions/{session_id}/step","href":"/api-reference/study/advance-step"},{"title":"Link Thread","deprecated":null,"version":null,"openapi":"/openapi.json post /api/study/sessions/{session_id}/thread","href":"/api-reference/study/link-thread"},{"title":"Submit Response","deprecated":null,"version":null,"openapi":"/openapi.json post /api/study/sessions/{session_id}/responses","href":"/api-reference/study/submit-response"},{"title":"Complete Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/study/sessions/{session_id}/complete","href":"/api-reference/study/complete-session"},{"title":"Export Study","deprecated":null,"version":null,"openapi":"/openapi.json get /api/study/export","href":"/api-reference/study/export-study"}]},{"group":"Root","pages":[{"title":"Root","deprecated":null,"version":null,"openapi":"/openapi.json get /","href":"/api-reference/root/root"}]}]}]}]},"basePath":"","title":"API-only clients - HAI-Co²","deploymentId":"dpl_3L1FNBg9Mynx3haQDgU9Rf9VMnSS","buildId":"dpl_3L1FNBg9Mynx3haQDgU9Rf9VMnSS","dynamics":[],"chunks":[]}