Keep machine credentials separate from the human review session.
Create a client with an exact HTTPS origin: no path, query, fragment or embedded user information. The bearer credential identifies one provisioned principal and its tenant. Do not give a producer an operator or publisher credential as a shortcut.
import { HAIPClient } from '@haip/sdk';const client = new HAIPClient(origin, producerToken);
For the disposable local walkthrough only, the third constructor argument permits HTTP on localhost or 127.0.0.1:
const localClient = new HAIPClient(localOrigin, temporaryProducerToken, true);
This exception does not allow public plain-HTTP hosts. Keep credentials out of URLs, browser bundles, committed configuration and ordinary logs. Credential rotation changes the token, not the stable producer identity or its quotas.The SDK does not exchange a bearer credential for a human session. Review links are locators; the person must sign in through the trusted host and confirm there. Server authentication describes those checks.A service’s trust-discovery endpoint is descriptive. Configure accepted signing issuers and keys through an independent trusted channel before verifying receipts, events or execution authority.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HAIP — Human-Agent Interaction Protocol","colors":{"primary":"#EAB308","light":"#FCD34D","dark":"#CA8A04"},"logo":{"light":"https://mintcdn.com/haip/bvtTs9hubZXlzNes/light.svg?fit=max\u0026auto=format\u0026n=bvtTs9hubZXlzNes\u0026q=85\u0026s=3ed590bbaca8e17bbc8d65fd0d4cba41","dark":"https://mintcdn.com/haip/bvtTs9hubZXlzNes/dark.svg?fit=max\u0026auto=format\u0026n=bvtTs9hubZXlzNes\u0026q=85\u0026s=1748e60cac2bfd32071628b48d349907"},"favicon":"https://mintcdn.com/haip/DhC2iVc3fnbULdh0/favicon.ico?fit=max\u0026auto=format\u0026n=DhC2iVc3fnbULdh0\u0026q=85\u0026s=41a2d25947268ac46821d60071ba9c7f","styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"haip","hasAudioNarration":false,"actualSubdomain":"haip","customDomains":["haiprotocol.com"],"gitSource":{"type":"github","owner":"haiprotocol","repo":"haip","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6ac762bb5b1873d75a48d7e3","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"TypeScript SDK","count":7},{"language":"default","tag":"Protocol","count":6},{"language":"default","tag":"Reference service","count":6},{"language":"default","tag":"Command line","count":3},{"language":"default","tag":"Local examples","count":3},{"language":"default","tag":"HAIP 2 draft","count":3},{"language":"default","tag":"Unsupported HAIP 1 archive","count":1}]},"assistantConfig":{},"basePath":"","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":[]}
{"page":{"pagePath":"sdk/authentication","slug":"/sdk/authentication","pageMetadata":{"title":"SDK credentials and origins","description":"Keep machine credentials separate from the human review session.","href":"/sdk/authentication"},"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: \"Keep machine credentials separate from the human review session.\"\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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Create a client with an exact HTTPS origin: no path, query, fragment or embedded user information. The bearer credential identifies one provisioned principal and its tenant. Do not give a producer an operator or publisher credential as a shortcut.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`HAIPClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@haip/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` HAIPClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`origin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`producerToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For the `,_jsx(_components.a,{href:`/quickstart`,children:`disposable local walkthrough`}),` only, the third constructor argument permits HTTP on `,_jsx(_components.code,{children:`localhost`}),` or `,_jsx(_components.code,{children:`127.0.0.1`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` localClient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` HAIPClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`localOrigin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`temporaryProducerToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This exception does not allow public plain-HTTP hosts. Keep credentials out of URLs, browser bundles, committed configuration and ordinary logs. Credential rotation changes the token, not the stable producer identity or its quotas.`}),`\n`,_jsxs(_components.p,{children:[`The SDK does not exchange a bearer credential for a human session. Review links are locators; the person must sign in through the trusted host and confirm there. `,_jsx(_components.a,{href:`/server/authentication`,children:`Server authentication`}),` describes those checks.`]}),`\n`,_jsx(_components.p,{children:`A service’s trust-discovery endpoint is descriptive. Configure accepted signing issuers and keys through an independent trusted channel before verifying receipts, events or execution authority.`})]})}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":"SDK credentials and origins","description":"Keep machine credentials separate from the human review session.","href":"/sdk/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"haip","siteName":"HAIP — Human-Agent Interaction Protocol","title":"SDK credentials and origins - HAIP — Human-Agent Interaction Protocol","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-04T03:44:40.600Z","originalFileLocation":"sdk/authentication.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=\"system\"}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=\"Keep machine credentials separate from the human review session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HAIP — Human-Agent Interaction Protocol\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_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/haip/tS5iWbwl1tewKMep/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SDK credentials and origins - HAIP — Human-Agent Interaction Protocol\">\u003cmeta data-mint-head property=\"og:description\" content=\"Keep machine credentials separate from the human review session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HAIP — Human-Agent Interaction Protocol\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://haiprotocol.com/sdk/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://haip.mintlify.site/_mintlify/api/og/v2?division=TypeScript+SDK\u0026amp;title=SDK+credentials+and+origins\u0026amp;description=Keep+machine+credentials+separate+from+the+human+review+session.\u0026amp;theme=bf9e7c51d4effe8576163a43\u0026amp;signature=9221ac5927fc1836724c1ef63812f85624c563a9fa0bfab3eb1433a2b6339498\">\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=\"SDK credentials and origins - HAIP — Human-Agent Interaction Protocol\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Keep machine credentials separate from the human review session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://haip.mintlify.site/_mintlify/api/og/v2?division=TypeScript+SDK\u0026amp;title=SDK+credentials+and+origins\u0026amp;description=Keep+machine+credentials+separate+from+the+human+review+session.\u0026amp;theme=bf9e7c51d4effe8576163a43\u0026amp;signature=9221ac5927fc1836724c1ef63812f85624c563a9fa0bfab3eb1433a2b6339498\">\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/haip/tS5iWbwl1tewKMep/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HAIP — Human-Agent Interaction Protocol\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EAB308\">\u003clink data-mint-head rel=\"canonical\" href=\"https://haiprotocol.com/sdk/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://haiprotocol.com/#organization\",\"name\":\"HAIP — Human-Agent Interaction Protocol\",\"url\":\"https://haiprotocol.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/haip/bvtTs9hubZXlzNes/light.svg?fit=max\u0026auto=format\u0026n=bvtTs9hubZXlzNes\u0026q=85\u0026s=3ed590bbaca8e17bbc8d65fd0d4cba41\"}},{\"@type\":\"WebSite\",\"@id\":\"https://haiprotocol.com#website\",\"name\":\"HAIP — Human-Agent Interaction Protocol\",\"url\":\"https://haiprotocol.com\",\"publisher\":{\"@id\":\"https://haiprotocol.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://haiprotocol.com/sdk/authentication#webpage\",\"url\":\"https://haiprotocol.com/sdk/authentication\",\"name\":\"SDK credentials and origins\",\"description\":\"Keep machine credentials separate from the human review session.\",\"dateModified\":\"2026-09-04T03:44:40.600Z\",\"isPartOf\":{\"@id\":\"https://haiprotocol.com#website\"},\"breadcrumb\":{\"@id\":\"https://haiprotocol.com/sdk/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://haiprotocol.com/sdk/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TypeScript SDK\",\"item\":\"https://haiprotocol.com/sdk/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SDK credentials and origins\",\"item\":\"https://haiprotocol.com/sdk/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://haiprotocol.com/sdk/authentication#article\",\"headline\":\"SDK credentials and origins\",\"name\":\"SDK credentials and origins\",\"description\":\"Keep machine credentials separate from the human review session.\",\"url\":\"https://haiprotocol.com/sdk/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://haiprotocol.com/sdk/authentication#webpage\"},\"dateModified\":\"2026-09-04T03:44:40.600Z\",\"publisher\":{\"@id\":\"https://haiprotocol.com/#organization\"},\"isPartOf\":{\"@id\":\"https://haiprotocol.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HAIP — Human-Agent Interaction Protocol\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"HAIP — Human-Agent Interaction Protocol\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdk/authentication.md","siteName":"HAIP — Human-Agent Interaction Protocol","nav":{"global":null,"groups":[{"group":"HAIP 2 draft","pages":[{"title":"HAIP: Human-Agent Interaction Protocol","href":"/index"},{"title":"Try HAIP 2 locally","href":"/quickstart"},{"title":"Architecture and ownership","href":"/technical_overview"}]},{"group":"Protocol","pages":[{"title":"Protocol revisions and authority","href":"/protocol/overview"},{"title":"Review lifecycle and commitments","href":"/protocol/review"},{"title":"Execution claims and fresh admission","href":"/protocol/execution"},{"title":"HTTP transport and event polling","href":"/protocol/essentials/transport"},{"title":"Protocol errors and safe retries","href":"/protocol/essentials/error-handling"},{"title":"OpenAPI and schema: 2.0.0-draft.3","href":"/protocol/openapi"}]},{"group":"Reference service","pages":[{"title":"Reference review service","href":"/server/overview"},{"title":"Identity and trusted confirmation","href":"/server/authentication"},{"title":"Configuration and captured limits","href":"/server/configuration"},{"title":"Self-hosting and recovery boundaries","href":"/server/deployment"},{"title":"Monitoring, retention and incidents","href":"/server/monitoring"},{"title":"Free-first hosting and identity","href":"/server/providers"}]},{"group":"TypeScript SDK","pages":[{"title":"TypeScript SDK","href":"/sdk/overview"},{"title":"SDK method reference","description":"The public client methods and their result boundaries.","href":"/sdk/api-reference"},{"title":"SDK credentials and origins","href":"/sdk/authentication"},{"title":"Handle SDK errors","description":"Distinguish service refusals, uncertain requests and local verification failures.","href":"/sdk/error-handling"},{"title":"Verify execution authority","href":"/sdk/execution"},{"title":"Verify and retain webhooks","href":"/sdk/webhooks"},{"title":"View client: @haip/view","href":"/sdk/view"}]},{"group":"Command line","pages":[{"title":"Command-line client","href":"/cli/overview"},{"title":"CLI commands","href":"/cli/commands"},{"title":"CLI configuration","href":"/cli/configuration"}]},{"group":"Local examples","pages":[{"title":"Independent HTTP review example","href":"/examples/review"},{"title":"Review from the CLI","href":"/examples/using-cli"},{"title":"One bounded counter effect","href":"/examples/counter"}]},{"group":"Unsupported HAIP 1 archive","pages":[{"title":"HAIP 1 archive — Human-Agent Interaction Protocol","href":"/archive/v1/index"}]}]},"basePath":"","title":"SDK credentials and origins - HAIP — Human-Agent Interaction Protocol","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}