Every request is authenticated with an organization API key. Create one on the settings page of the Deutero dashboard.
Pass the key
Environment variable
Constructor argument
export DEUTERO_API_KEY="dtro_..."
from deutero import Deuteroclient = Deutero() # reads DEUTERO_API_KEY
from deutero import Deuteroclient = Deutero(api_key="dtro_...")
An explicit api_key takes precedence over the environment variable. If neither is set, the constructor raises ValueError before any request is made.The key is sent in the X-API-Key header on every request, including when you bring your own HTTP client.
Treat API keys like passwords. Load them from the environment or a secrets manager rather than committing them to source control.
Authentication errors
Status
Exception
Meaning
401
AuthenticationError
The key is missing or invalid.
403
PermissionDeniedError
The key is valid but not allowed to do this, for example because of a plan limit.
PermissionDeniedError subclasses AuthenticationError, so catch it first if you want to handle the two differently. See Error handling.
Keys that never reach the API
Two kinds of secret are separate from your API key:
Webhook signing secrets (whsec_...) verify deliveries Deutero sends you. Verification runs locally and needs no API key. See Receiving webhooks.
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Deutero Python SDK","description":"Official Python SDK for the Deutero Study Management API: design AI-moderated interview studies, recruit participants, rehearse with AI personas and analyze responses.","colors":{"primary":"#2A12E6","light":"#809FFF","dark":"#2A12E6"},"logo":{"light":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a","dark":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a"},"favicon":{"light":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a","dark":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a"},"api":{"openapi":"https://dashboard.deutero.ai/study-api/api/v1/openapi.json"},"background":{"decoration":"gradient","color":{"light":"#f9f8fe","dark":"#0d0e12"}},"navbar":{"links":[{"href":"https://dashboard.deutero.ai","label":"Dashboard"},{"href":"https://deutero.ai","label":"Home"}],"primary":{"type":"github","href":"https://github.com/deutero-ai/deutero-python"}},"footer":{"socials":{"github":"https://github.com/deutero-ai/deutero-python","website":"https://deutero.ai","x":"https://x.com/deuteroai"}},"fonts":{"heading":{"family":"Changa"},"body":{"family":"Victor Mono"}},"icons":{"library":"lucide"},"integrations":{"posthog":{"apiKey":"phc_qda5r4S3eV1sN0kOGvhkMneozBh4rWOUeVRt3m7EDcc","sessionRecording":false}},"contextual":{"options":["copy","chatgpt","claude","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"deutero","hasAudioNarration":false,"actualSubdomain":"deutero","customDomains":["docs.deutero.ai"],"gitSource":{"type":"github","owner":"deutero-ai","repo":"deutero-python","deployBranch":"master","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b1102689ffae5051c41e63f"},"feedback":{"thumbs":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ac5c20854bd690cf49cf692","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"SDK reference","count":20},{"language":"default","tag":"Study setup","count":7},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Results","count":3},{"language":"default","tag":"Utilities","count":3},{"language":"default","tag":"Organization","count":2},{"language":"default","tag":"Recruitment","count":2},{"language":"default","tag":"Simulation","count":2},{"language":"default","tag":"Resources","count":1}]},"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":"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":"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":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"get-started/authentication","slug":"/get-started/authentication","pageMetadata":{"title":"Authentication","description":"Provide your Deutero API key to the client.","icon":"key","href":"/get-started/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: \"Provide your Deutero API key to the client.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tab,Table,Tabs,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Every request is authenticated with an organization API key. Create one on the settings page of the `,_jsx(_components.a,{href:`https://dashboard.deutero.ai`,children:`Deutero dashboard`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`pass-the-key`,children:`Pass the key`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Environment variable`,id:`environment-variable`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DEUTERO_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dtro_...\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deutero `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Deutero`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Deutero() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# reads DEUTERO_API_KEY`})]}),`\n`]})})})]}),_jsx(Tab,{title:`Constructor argument`,id:`constructor-argument`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deutero `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Deutero`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Deutero(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dtro_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})})})]}),`\n`,_jsxs(_components.p,{children:[`An explicit `,_jsx(_components.code,{children:`api_key`}),` takes precedence over the environment variable. If neither is set, the constructor raises `,_jsx(_components.code,{children:`ValueError`}),` before any request is made.`]}),`\n`,_jsxs(_components.p,{children:[`The key is sent in the `,_jsx(_components.code,{children:`X-API-Key`}),` header on every request, including when you bring your own `,_jsx(_components.a,{href:`/get-started/configuration#custom-http-client`,children:`HTTP client`}),`.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Treat API keys like passwords. Load them from the environment or a secrets manager rather than committing them to source control.`})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-errors`,children:`Authentication errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Exception`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AuthenticationError`})}),_jsx(_components.td,{children:`The key is missing or invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PermissionDeniedError`})}),_jsx(_components.td,{children:`The key is valid but not allowed to do this, for example because of a plan limit.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PermissionDeniedError`}),` subclasses `,_jsx(_components.code,{children:`AuthenticationError`}),`, so catch it first if you want to handle the two differently. See `,_jsx(_components.a,{href:`/guides/error-handling`,children:`Error handling`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`keys-that-never-reach-the-api`,children:`Keys that never reach the API`}),`\n`,_jsx(_components.p,{children:`Two kinds of secret are separate from your API key:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Webhook signing secrets`}),` (`,_jsx(_components.code,{children:`whsec_...`}),`) verify deliveries Deutero sends you. Verification runs locally and needs no API key. See `,_jsx(_components.a,{href:`/guides/receiving-webhooks`,children:`Receiving webhooks`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Embed publishable keys`}),` let a website load the interview widget. See `,_jsx(_components.a,{href:`/guides/recruitment-and-embedding#embed-the-interview`,children:`Recruitment and embedding`}),`.`]}),`\n`]})]})}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":"Authentication","description":"Provide your Deutero API key to the client.","icon":"key","href":"/get-started/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Pass the key","slug":"pass-the-key","depth":2,"children":[]},{"title":"Authentication errors","slug":"authentication-errors","depth":2,"children":[]},{"title":"Keys that never reach the API","slug":"keys-that-never-reach-the-api","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"deutero","siteName":"Deutero Python SDK","title":"Authentication - Deutero Python SDK","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-06T03:11:21.068Z","originalFileLocation":"get-started/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=\"Provide your Deutero API key to the client.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Deutero Python SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Deutero Python SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Provide your Deutero API key to the client.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Deutero Python SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.deutero.ai/get-started/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://deutero.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=Provide+your+Deutero+API+key+to+the+client.\u0026amp;theme=db02cb18367b668e487d1a24\u0026amp;signature=ea38baf91f4907314f5499432548c7300dd9c95c7cb24d57df0cdd30dc8fde25\">\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=\"Authentication - Deutero Python SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Provide your Deutero API key to the client.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://deutero.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=Provide+your+Deutero+API+key+to+the+client.\u0026amp;theme=db02cb18367b668e487d1a24\u0026amp;signature=ea38baf91f4907314f5499432548c7300dd9c95c7cb24d57df0cdd30dc8fde25\">\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/deutero/Vn8aLLTKgPILOsVi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Deutero Python SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2A12E6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.deutero.ai/get-started/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/get-started/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.deutero.ai/#organization\",\"name\":\"Deutero Python SDK\",\"url\":\"https://docs.deutero.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.deutero.ai#website\",\"name\":\"Deutero Python SDK\",\"url\":\"https://docs.deutero.ai\",\"publisher\":{\"@id\":\"https://docs.deutero.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.deutero.ai/get-started/authentication#webpage\",\"url\":\"https://docs.deutero.ai/get-started/authentication\",\"name\":\"Authentication\",\"description\":\"Provide your Deutero API key to the client.\",\"dateModified\":\"2026-10-06T03:11:21.068Z\",\"isPartOf\":{\"@id\":\"https://docs.deutero.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.deutero.ai/get-started/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.deutero.ai/get-started/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.deutero.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.deutero.ai/get-started/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.deutero.ai/get-started/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Provide your Deutero API key to the client.\",\"url\":\"https://docs.deutero.ai/get-started/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.deutero.ai/get-started/authentication#webpage\"},\"dateModified\":\"2026-10-06T03:11:21.068Z\",\"publisher\":{\"@id\":\"https://docs.deutero.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.deutero.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Deutero Python SDK\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Deutero Python SDK\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/get-started/authentication.md","siteName":"Deutero Python SDK","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Deutero Python SDK","sidebarTitle":"Introduction","icon":"house","href":""},{"title":"Quickstart","description":"Install the SDK and take a study from nothing to a shareable participation link.","icon":"rocket","href":"/get-started/quickstart"},{"title":"Authentication","icon":"key","href":"/get-started/authentication"},{"title":"Async usage","description":"Use AsyncDeutero with asyncio. Every method has the same signature as the sync client.","icon":"bolt-lightning","href":"/get-started/async"},{"title":"Configuration","icon":"sliders","href":"/get-started/configuration"}]},{"group":"Guides","pages":[{"title":"Study lifecycle","icon":"arrows-spin","href":"/guides/study-lifecycle"},{"title":"Interview flows","icon":"diagram-project","href":"/guides/interview-flows"},{"title":"Recruitment and embedding","icon":"user-plus","href":"/guides/recruitment-and-embedding"},{"title":"Simulations","icon":"robot","href":"/guides/simulations"},{"title":"Analyzing responses","icon":"chart-scatter","href":"/guides/analyzing-responses"},{"title":"Receiving webhooks","icon":"bolt","href":"/guides/receiving-webhooks"},{"title":"Error handling","icon":"triangle-exclamation","href":"/guides/error-handling"}]},{"group":"Resources","pages":[{"title":"Changelog","icon":"clock-rotate-left","href":"/changelog"}]}]},{"tab":"SDK reference","pages":[{"title":"SDK reference","href":"/reference/client"}]}]},"basePath":"","title":"Authentication - Deutero Python SDK","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":[],"chunks":[]}