API Key authentication for sessions and OAuth tokens for iframe embedding.
API Key Authentication
All v1 endpoints use API Key authentication. Pass your key in the X-Api-Key header:
curl -X POST "https://api.whatabot.app/api/v1/sessions/flows/{flowId}/create" \ -H "X-Api-Key: wh_your_api_key_here"
API keys are prefixed with wh_ and scoped to a workspace. Each key can have a callbackUrl where session responses are delivered via Webhook.
How to create an API Key
Go to the whatabot Dashboard
Navigate to the Workspaces screen
Click Edit on the desired workspace
Go to the API tab
Click Create API Key, set a name and the callbackUrl
Copy the generated key (starts with wh_)
The API key is only shown once. Store it in a secure location.
Iframe Authentication
To embed the whatabot flow editor in your app via iframe, you need an OAuth client (clientId + clientSecret).See the full Embed Authentication guide for instructions on how to create the client and the authentication flow.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"whatabot","colors":{"primary":"#00a884","light":"#00d6a3","dark":"#008069"},"logo":{"light":"https://mintcdn.com/whatabot/t6ahHF1XDdOZ2zCX/logo/logo-full.svg?fit=max\u0026auto=format\u0026n=t6ahHF1XDdOZ2zCX\u0026q=85\u0026s=5a7c0e3a1eb3f787c49ca501f731490e","dark":"https://mintcdn.com/whatabot/t6ahHF1XDdOZ2zCX/logo/logo-full.svg?fit=max\u0026auto=format\u0026n=t6ahHF1XDdOZ2zCX\u0026q=85\u0026s=5a7c0e3a1eb3f787c49ca501f731490e"},"favicon":"https://mintcdn.com/whatabot/F0JbbHOI3DWfo3gJ/logo/fav.png?fit=max\u0026auto=format\u0026n=F0JbbHOI3DWfo3gJ\u0026q=85\u0026s=35b03f1a5c3c091ca98c77db697a2d9e","api":{"playground":{},"mdx":{"server":"https://api.whatabot.app/api"}},"background":{},"footer":{"socials":{"website":"https://whatabot.app"}},"search":{"prompt":"Search documentation..."},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/get-started/introduction"},{"language":"pt-BR","href":"get-started/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"whatabot","hasAudioNarration":false,"actualSubdomain":"whatabot","customDomains":["docs.whatabot.app"],"gitSource":{"type":"github","owner":"whatabot-app","repo":"whatabot-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94b13e968ff68fad409a0:success","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"pt-BR","tag":"Referência da API","count":27},{"language":"en","tag":"API Reference","count":27},{"language":"pt-BR","tag":"Documentação","count":9},{"language":"en","tag":"Documentation","count":9},{"language":"pt-BR","tag":"Clientes OAuth","count":5},{"language":"en","tag":"OAuth Clients","count":5},{"language":"pt-BR","tag":"Kanban","count":4},{"language":"pt-BR","tag":"Setores","count":4},{"language":"pt-BR","tag":"Sessões","count":4},{"language":"pt-BR","tag":"Espaços de Trabalho","count":4},{"language":"en","tag":"Kanban","count":4},{"language":"en","tag":"Sectors","count":4},{"language":"en","tag":"Sessions","count":4},{"language":"en","tag":"Workspaces","count":4},{"language":"pt-BR","tag":"Visão Geral","count":3},{"language":"pt-BR","tag":"Início","count":3},{"language":"en","tag":"Overview","count":3},{"language":"en","tag":"Get Started","count":3},{"language":"pt-BR","tag":"Fluxos","count":2},{"language":"en","tag":"Flows","count":2}]},"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":"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":":root{--font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace}h1{letter-spacing:-0.02em}h2{letter-spacing:-0.01em}pre{border-radius:8px!important;font-size:13px!important;line-height:1.6!important}code{font-family:var(--font-mono)!important;font-size:0.875em}table{border-collapse:separate;border-spacing:0}th{font-weight:600;text-transform:uppercase;font-size:0.75rem;letter-spacing:0.05em}[role=\"tabpanel\"] table,[role=\"tabpanel\"] p,[role=\"tabpanel\"] code{font-size:0.8125rem!important}[role=\"tabpanel\"] th{font-size:0.6875rem!important}[role=\"tabpanel\"] td{font-size:0.8125rem!important}[role=\"tabpanel\"] pre{font-size:12px!important}"}]}
{"page":{"pagePath":"en/api-reference/authentication","slug":"/en/api-reference/authentication","pageMetadata":{"title":"Authentication","description":"API Key authentication for sessions and OAuth tokens for iframe embedding.","href":"/en/api-reference/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: \"API Key authentication for sessions and OAuth tokens for iframe embedding.\"\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`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`api-key-authentication`,children:`API Key Authentication`}),`\n`,_jsxs(_components.p,{children:[`All v1 endpoints use `,_jsx(_components.strong,{children:`API Key`}),` authentication. Pass your key in the `,_jsx(_components.code,{children:`X-Api-Key`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.whatabot.app/api/v1/sessions/flows/{flowId}/create\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Api-Key: wh_your_api_key_here\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`API keys are prefixed with `,_jsx(_components.code,{children:`wh_`}),` and scoped to a workspace. Each key can have a `,_jsx(_components.code,{children:`callbackUrl`}),` where session responses are delivered via `,_jsx(_components.a,{href:`/en/api-reference/webhooks`,children:`Webhook`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`how-to-create-an-api-key`,children:`How to create an API Key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to the whatabot `,_jsx(_components.strong,{children:`Dashboard`})]}),`\n`,_jsxs(_components.li,{children:[`Navigate to the `,_jsx(_components.strong,{children:`Workspaces`}),` screen`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Edit`}),` on the desired workspace`]}),`\n`,_jsxs(_components.li,{children:[`Go to the `,_jsx(_components.strong,{children:`API`}),` tab`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Create API Key`}),`, set a name and the `,_jsx(_components.code,{children:`callbackUrl`})]}),`\n`,_jsxs(_components.li,{children:[`Copy the generated key (starts with `,_jsx(_components.code,{children:`wh_`}),`)`]}),`\n`]}),`\n`,_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,src:`https://objectstorage.sa-saopaulo-1.oraclecloud.com/n/gr9obbkmjpjj/b/whatabot-stg/o/4/flows/8b7aa7d7-e8ad-434a-a7b8-495fa480d671_71e2c99e-19ad-4d82-9370-d92642b3ae86.mp4`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The API key is only shown once. Store it in a secure location.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`iframe-authentication`,children:`Iframe Authentication`}),`\n`,_jsxs(_components.p,{children:[`To embed the whatabot flow editor in your app via iframe, you need an OAuth client (`,_jsx(_components.code,{children:`clientId`}),` + `,_jsx(_components.code,{children:`clientSecret`}),`).`]}),`\n`,_jsxs(_components.p,{children:[`See the full `,_jsx(_components.a,{href:`/en/embed/authentication`,children:`Embed Authentication`}),` guide for instructions on how to create the client and the authentication flow.`]})]})}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":"API Key authentication for sessions and OAuth tokens for iframe embedding.","href":"/en/api-reference/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API Key Authentication","slug":"api-key-authentication","depth":2,"children":[{"title":"How to create an API Key","slug":"how-to-create-an-api-key","depth":3,"children":[]}]},{"title":"Iframe Authentication","slug":"iframe-authentication","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"whatabot","siteName":"whatabot","title":"Authentication - whatabot","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/authentication","matchLevel":0},"pt-BR":{"href":"/api-reference/authentication","matchLevel":1}}},"lastModified":"2026-04-15T00:33:40.600Z","originalFileLocation":"en/api-reference/authentication.mdx","locale":"en"},"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=\"API Key authentication for sessions and OAuth tokens for iframe embedding.\">\u003cmeta data-mint-head name=\"application-name\" content=\"whatabot\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_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/whatabot/kV3XBDF4Fw-Ws-2R/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - whatabot\">\u003cmeta data-mint-head property=\"og:description\" content=\"API Key authentication for sessions and OAuth tokens for iframe embedding.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"whatabot\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.whatabot.app/en/api-reference/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://whatabot.mintlify.site/_mintlify/api/og/v2?division=Overview\u0026amp;title=Authentication\u0026amp;description=API+Key+authentication+for+sessions+and+OAuth+tokens+for+iframe+embedding.\u0026amp;theme=24012fa078ed70c98e03d585\u0026amp;signature=3d4c1bf3a03fe72861900dda80dcb732ead59760f609a3c1775450d5fcb3a75a\">\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 - whatabot\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"API Key authentication for sessions and OAuth tokens for iframe embedding.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://whatabot.mintlify.site/_mintlify/api/og/v2?division=Overview\u0026amp;title=Authentication\u0026amp;description=API+Key+authentication+for+sessions+and+OAuth+tokens+for+iframe+embedding.\u0026amp;theme=24012fa078ed70c98e03d585\u0026amp;signature=3d4c1bf3a03fe72861900dda80dcb732ead59760f609a3c1775450d5fcb3a75a\">\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/whatabot/kV3XBDF4Fw-Ws-2R/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"whatabot\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00a884\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.whatabot.app/en/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/authentication.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.whatabot.app/en/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.whatabot.app/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.whatabot.app/en/api-reference/authentication\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.whatabot.app/#organization\",\"name\":\"whatabot\",\"url\":\"https://docs.whatabot.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/whatabot/t6ahHF1XDdOZ2zCX/logo/logo-full.svg?fit=max\u0026auto=format\u0026n=t6ahHF1XDdOZ2zCX\u0026q=85\u0026s=5a7c0e3a1eb3f787c49ca501f731490e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.whatabot.app#website\",\"name\":\"whatabot\",\"url\":\"https://docs.whatabot.app\",\"publisher\":{\"@id\":\"https://docs.whatabot.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.whatabot.app/en/api-reference/authentication#webpage\",\"url\":\"https://docs.whatabot.app/en/api-reference/authentication\",\"name\":\"Authentication\",\"description\":\"API Key authentication for sessions and OAuth tokens for iframe embedding.\",\"dateModified\":\"2026-04-15T00:33:40.600Z\",\"isPartOf\":{\"@id\":\"https://docs.whatabot.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.whatabot.app/en/api-reference/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.whatabot.app/en/api-reference/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://docs.whatabot.app/en/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.whatabot.app/en/api-reference/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.whatabot.app/en/api-reference/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"API Key authentication for sessions and OAuth tokens for iframe embedding.\",\"url\":\"https://docs.whatabot.app/en/api-reference/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.whatabot.app/en/api-reference/authentication#webpage\"},\"dateModified\":\"2026-04-15T00:33:40.600Z\",\"publisher\":{\"@id\":\"https://docs.whatabot.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.whatabot.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"whatabot\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"whatabot\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/authentication.md","siteName":"whatabot","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Overview","description":"Introduction to the whatabot REST API.","href":"/en/api-reference/overview"},{"title":"Authentication","href":"/en/api-reference/authentication"},{"title":"Webhooks","description":"Receive real-time notifications when your flow sends messages or performs actions.","href":"/en/api-reference/webhooks"}]},{"group":"Sessions","pages":[{"title":"Create Session","api":"POST /v1/sessions/flows/{flowId}/create","href":"/en/api-reference/sessions/create-session"},{"title":"Send Message","api":"POST /v1/sessions/{sessionId}/message","href":"/en/api-reference/sessions/send-message"},{"title":"List Session Logs","api":"GET /v1/sessions/logs","href":"/en/api-reference/sessions/list-session-logs"},{"title":"Get Session Events","api":"GET /v1/sessions/logs/{sessionId}/events","href":"/en/api-reference/sessions/get-session-events"}]},{"group":"Flows","pages":[{"title":"Create Flow","api":"POST /v1/flows","href":"/en/api-reference/flows/create-flow"},{"title":"List Flows","api":"GET /v1/flows","href":"/en/api-reference/flows/list-flows"}]},{"group":"Workspaces","pages":[{"title":"Create Workspace","api":"POST /v1/workspaces","href":"/en/api-reference/workspaces/create-workspace"},{"title":"List Workspaces","api":"GET /v1/workspaces","href":"/en/api-reference/workspaces/list-workspaces"},{"title":"Update Workspace","api":"PATCH /v1/workspaces/{workspaceId}","href":"/en/api-reference/workspaces/update-workspace"},{"title":"Delete Workspace","api":"DELETE /v1/workspaces/{workspaceId}","href":"/en/api-reference/workspaces/delete-workspace"}]},{"group":"Sectors","pages":[{"title":"Create Sector","api":"POST /v1/sectors","href":"/en/api-reference/sectors/create-sector"},{"title":"List Sectors","api":"GET /v1/sectors","href":"/en/api-reference/sectors/list-sectors"},{"title":"Update Sector","api":"PATCH /v1/sectors/{id}","href":"/en/api-reference/sectors/update-sector"},{"title":"Delete Sector","api":"DELETE /v1/sectors/{id}","href":"/en/api-reference/sectors/delete-sector"}]},{"group":"OAuth Clients","pages":[{"title":"Create Client","api":"POST /v1/clients","href":"/en/api-reference/clients/create-client"},{"title":"List Clients","api":"GET /v1/clients","href":"/en/api-reference/clients/list-clients"},{"title":"Get Client","api":"GET /v1/clients/{id}","href":"/en/api-reference/clients/get-client"},{"title":"Update Client","api":"PATCH /v1/clients/{id}","href":"/en/api-reference/clients/update-client"},{"title":"Delete Client","api":"DELETE /v1/clients/{id}","href":"/en/api-reference/clients/delete-client"}]},{"group":"Kanban","pages":[{"title":"List Pipelines","api":"GET /v1/kanban/pipelines","href":"/en/api-reference/kanban/list-pipelines"},{"title":"List Cards","api":"GET /v1/kanban/pipelines/{pipelineId}/cards","href":"/en/api-reference/kanban/list-cards"},{"title":"Create Card","api":"POST /v1/kanban/pipelines/{pipelineId}/cards","href":"/en/api-reference/kanban/create-card"},{"title":"Update Card","api":"PATCH /v1/kanban/cards/{id}","href":"/en/api-reference/kanban/update-card"}]},{"group":"Iframe","pages":[{"title":"Generate Iframe Token","api":"POST /v1/auth/iframe-token","href":"/en/api-reference/auth/generate-iframe-token"}]}]}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/api-reference/authentication"}]}]},"basePath":"","title":"Authentication - whatabot","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}