API keys, scopes, and the two ways requests authenticate.
The Flowyte API has two authentication modes that both resolve to the same tenant-scoped
identity, so a key can never reach another organization’s data.
Secret API keys (server-to-server)
For your backend and for agents building against the API, use a secret key:
Authorization: Bearer flowyte_sk_…
Your API key already determines the organization — no extra headers are needed.
The first key is minted in the dashboard’s Developer page (a chicken-and-egg bootstrap).
Manage your keys — mint, rotate, and revoke — in the dashboard Developer page.
Browser sessions
The dashboard authenticates with a session token. You won’t use this directly when building
against the API — it’s how the builder UI talks to the same endpoints your key does.
Publishable keys (the chat widget)
The embeddable chat widget authenticates in the browser with a publishable key
(flowyte_pk_…). It is agent-pinned, origin-allowlisted, and limited to public chat — safe to
ship in client-side code.
Scopes
Secret keys carry scopes that gate which operations they can call. Request only what you
need. Common scopes:
Scope
Grants
agents:read / agents:write
Read or modify agents, simulate, mint a talk token
knowledge:write
Add and manage knowledge sources
skills:write
Create and configure skills
pubkeys:write
Mint publishable keys for the widget
numbers:write
Search, reserve, and assign phone numbers
billing:read / billing:write
Read the wallet / manage credits and plans
analytics:read
List conversations and read post-call analytics — every channel
calls:read
Read a conversation’s detail, its transcript text — voice, chat, and SMS, and its event receipt
audit:read
Read the organization’s account activity trail (who changed what, plus Flowyte-staff access)
sms:read / sms:write
A2P 10DLC registration, per-number SMS enablement, the opt-out list and contacts. sms:read also downloads text attachments by id (GET /sms/media/{id}); sms:write also records or revokes a contact’s consent and uploads pictures and short videos to send (POST /sms/media). No message text
sms:send
Send a text from your SMS-enabled numbers (POST /sms/messages), with pictures or short videos attached. Consent, opt-outs and quiet hours are enforced server-side. It can attach any text attachment in your workspace whose id it knows — an upload, or a picture a customer sent. Grants no read access to past messages — the receipt echoes only what that call sent
The authoritative scope list is the Scope enum in the API Reference.
Message content lives under calls:read, not sms:read. Despite the name, calls:read is
channel-agnostic: an SMS conversation is stored as a conversation like any other, so
GET /conversations/{id}/transcript returns the verbatim text of every message a customer sent or
received. A key holding calls:read can read all of it.sms:read is the compliance surface — registration status, number toggles, the opt-out list and the
contact roster. It grants no message text. It does download text attachments:
GET /sms/media/{id} returns a link to any picture, video or file (a PDF, for example) sent or
received by text in your workspace, given its id. Those ids appear in transcripts, webhook deliveries
and send receipts. Neither sms:read nor sms:send can read a conversation, but sms:send can
attach any text attachment whose id it knows to a message it sends — including a picture a customer
sent you. Only text attachments are reachable this way: a file a visitor uploaded in a web chat is
not.Four consequences worth planning around:
A key granted “just call reads” can read your customers’ text messages.
A key with sms:read that knows (or is handed) an attachment id can download the picture or file
behind it, and a key with sms:send can forward it. Treat attachment ids as you would the
pictures themselves.
calls:read also grants the event receipt (GET /conversations/{id}/receipt) — the forensic
record of everything the agent did on that call: tool calls, knowledge lookups, guardrail
decisions and latency samples. Summary, transcript and receipt are one grant, not three.
There is currently no way to grant SMS visibility without also granting voice and chat;
calls:read is all-or-nothing across channels.
Reading a conversation also needs analytics:read to find it in the first place — the list endpoint
and the transcript endpoint are separately scoped, so a key with only analytics:read sees
conversations listed but every transcript comes back empty. That is a missing scope, not a bug.
Some endpoints documented in the contract are reserved (planned ahead of release). Calling
one returns a 403, not a 404. If a correctly-scoped call returns 403, check whether the
endpoint is marked reserved.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flowyte","description":"Build AI voice and chat agents with an API-first platform.","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"favicon":"https://mintcdn.com/flowyte/fmtYwMfV10g-ZMSz/favicon.png?fit=max\u0026auto=format\u0026n=fmtYwMfV10g-ZMSz\u0026q=85\u0026s=528cc7713e1da3bf15ac1ac62b9bc226","navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://builder.flowyte.com"}},"footer":{"socials":{"website":"https://flowyte.com"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flowyte","hasAudioNarration":false,"actualSubdomain":"flowyte","customDomains":["docs.flowyte.com"],"gitSource":{"type":"github","owner":"boarderking01","repo":"flowyte","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ac1773743a63d1170d90c4a","clientVersion":"0.0.4277","searchFilterCounts":[{"language":"default","tag":"API Reference","count":284},{"language":"default","tag":"Endpoints","count":283},{"language":"default","tag":"Integrations","count":48},{"language":"default","tag":"Documentation","count":46},{"language":"default","tag":"Outbound","count":35},{"language":"default","tag":"Observe","count":28},{"language":"default","tag":"Numbers","count":21},{"language":"default","tag":"Escalation","count":20},{"language":"default","tag":"SMS","count":19},{"language":"default","tag":"Agents","count":16}]},"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"get-started/authentication","slug":"/get-started/authentication","pageMetadata":{"title":"Authentication","description":"API keys, scopes, and the two ways requests authenticate.","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: \"API keys, scopes, and the two ways requests authenticate.\"\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,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Flowyte API has two authentication modes that both resolve to the same tenant-scoped\nidentity, so a key can never reach another organization’s data.`}),`\n`,_jsx(Heading,{level:`2`,id:`secret-api-keys-server-to-server`,children:`Secret API keys (server-to-server)`}),`\n`,_jsxs(_components.p,{children:[`For your backend and for agents building against the API, use a `,_jsx(_components.strong,{children:`secret key`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer flowyte_sk_…`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Your API key already determines the organization — no extra headers are needed.`})}),`\n`,_jsxs(_components.p,{children:[`The first key is minted in the dashboard’s `,_jsx(_components.strong,{children:`Developer`}),` page (a chicken-and-egg bootstrap).\nManage your keys — mint, rotate, and revoke — in the dashboard Developer page.`]}),`\n`,_jsx(Heading,{level:`2`,id:`browser-sessions`,children:`Browser sessions`}),`\n`,_jsx(_components.p,{children:`The dashboard authenticates with a session token. You won’t use this directly when building\nagainst the API — it’s how the builder UI talks to the same endpoints your key does.`}),`\n`,_jsx(Heading,{level:`2`,id:`publishable-keys-the-chat-widget`,children:`Publishable keys (the chat widget)`}),`\n`,_jsxs(_components.p,{children:[`The embeddable chat widget authenticates in the browser with a `,_jsx(_components.strong,{children:`publishable key`}),`\n(`,_jsx(_components.code,{children:`flowyte_pk_…`}),`). It is agent-pinned, origin-allowlisted, and limited to public chat — safe to\nship in client-side code.`]}),`\n`,_jsx(Heading,{level:`2`,id:`scopes`,children:`Scopes`}),`\n`,_jsxs(_components.p,{children:[`Secret keys carry `,_jsx(_components.strong,{children:`scopes`}),` that gate which operations they can call. Request only what you\nneed. Common scopes:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Grants`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`agents:read`}),` / `,_jsx(_components.code,{children:`agents:write`})]}),_jsx(_components.td,{children:`Read or modify agents, simulate, mint a talk token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`knowledge:write`})}),_jsx(_components.td,{children:`Add and manage knowledge sources`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`skills:write`})}),_jsx(_components.td,{children:`Create and configure skills`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pubkeys:write`})}),_jsx(_components.td,{children:`Mint publishable keys for the widget`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`numbers:write`})}),_jsx(_components.td,{children:`Search, reserve, and assign phone numbers`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`billing:read`}),` / `,_jsx(_components.code,{children:`billing:write`})]}),_jsx(_components.td,{children:`Read the wallet / manage credits and plans`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`analytics:read`})}),_jsxs(_components.td,{children:[`List conversations and read post-call analytics — `,_jsx(_components.strong,{children:`every channel`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`calls:read`})}),_jsxs(_components.td,{children:[`Read a conversation’s detail, its `,_jsx(_components.strong,{children:`transcript text — voice, chat, and SMS`}),`, and its event receipt`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`audit:read`})}),_jsx(_components.td,{children:`Read the organization’s account activity trail (who changed what, plus Flowyte-staff access)`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`sms:read`}),` / `,_jsx(_components.code,{children:`sms:write`})]}),_jsxs(_components.td,{children:[`A2P 10DLC registration, per-number SMS enablement, the opt-out list and contacts. `,_jsx(_components.code,{children:`sms:read`}),` also `,_jsx(_components.strong,{children:`downloads text attachments`}),` by id (`,_jsx(_components.code,{children:`GET /sms/media/{id}`}),`); `,_jsx(_components.code,{children:`sms:write`}),` also records or revokes a contact’s consent and uploads pictures and short videos to send (`,_jsx(_components.code,{children:`POST /sms/media`}),`). `,_jsx(_components.strong,{children:`No message text`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sms:send`})}),_jsxs(_components.td,{children:[`Send a text from your SMS-enabled numbers (`,_jsx(_components.code,{children:`POST /sms/messages`}),`), with pictures or short videos attached. Consent, opt-outs and quiet hours are enforced server-side. It can attach `,_jsx(_components.strong,{children:`any`}),` text attachment in your workspace whose id it knows — an upload, or a picture a customer sent. Grants `,_jsx(_components.strong,{children:`no`}),` read access to past messages — the receipt echoes only what that call sent`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The authoritative scope list is the `,_jsx(_components.code,{children:`Scope`}),` enum in the `,_jsx(_components.a,{href:`/api-reference/introduction`,children:`API Reference`}),`.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Message content lives under `,_jsx(_components.code,{children:`calls:read`}),`, not `,_jsx(_components.code,{children:`sms:read`}),`.`]}),` Despite the name, `,_jsx(_components.code,{children:`calls:read`}),` is\nchannel-agnostic: an SMS conversation is stored as a conversation like any other, so\n`,_jsx(_components.code,{children:`GET /conversations/{id}/transcript`}),` returns the verbatim text of every message a customer sent or\nreceived. A key holding `,_jsx(_components.code,{children:`calls:read`}),` can read all of it.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sms:read`}),` is the compliance surface — registration status, number toggles, the opt-out list and the\ncontact roster. It grants `,_jsx(_components.strong,{children:`no`}),` message text. It does download `,_jsx(_components.strong,{children:`text attachments`}),`:\n`,_jsx(_components.code,{children:`GET /sms/media/{id}`}),` returns a link to any picture, video or file (a PDF, for example) sent or\nreceived by text in your workspace, given its id. Those ids appear in transcripts, webhook deliveries\nand send receipts. Neither `,_jsx(_components.code,{children:`sms:read`}),` nor `,_jsx(_components.code,{children:`sms:send`}),` can read a conversation, but `,_jsx(_components.code,{children:`sms:send`}),` can\nattach any text attachment whose id it knows to a message it sends — including a picture a customer\nsent you. Only text attachments are reachable this way: a file a visitor uploaded in a web chat is\nnot.`]}),_jsx(_components.p,{children:`Four consequences worth planning around:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A key granted “just call reads” can read your customers’ text messages.`}),`\n`,_jsxs(_components.li,{children:[`A key with `,_jsx(_components.code,{children:`sms:read`}),` that knows (or is handed) an attachment id can download the picture or file\nbehind it, and a key with `,_jsx(_components.code,{children:`sms:send`}),` can forward it. Treat attachment ids as you would the\npictures themselves.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`calls:read`}),` also grants the `,_jsx(_components.strong,{children:`event receipt`}),` (`,_jsx(_components.code,{children:`GET /conversations/{id}/receipt`}),`) — the forensic\nrecord of everything the agent did on that call: tool calls, knowledge lookups, guardrail\ndecisions and latency samples. Summary, transcript and receipt are one grant, not three.`]}),`\n`,_jsxs(_components.li,{children:[`There is currently `,_jsx(_components.strong,{children:`no way to grant SMS visibility without also granting voice and chat`}),`;\n`,_jsx(_components.code,{children:`calls:read`}),` is all-or-nothing across channels.`]}),`\n`]}),_jsxs(_components.p,{children:[`Reading a conversation also needs `,_jsx(_components.code,{children:`analytics:read`}),` to find it in the first place — the list endpoint\nand the transcript endpoint are separately scoped, so a key with only `,_jsx(_components.code,{children:`analytics:read`}),` sees\nconversations listed but every transcript comes back empty. That is a missing scope, not a bug.`]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Some endpoints documented in the contract are `,_jsx(_components.strong,{children:`reserved`}),` (planned ahead of release). Calling\none returns a `,_jsx(_components.code,{children:`403`}),`, not a `,_jsx(_components.code,{children:`404`}),`. If a correctly-scoped call returns `,_jsx(_components.code,{children:`403`}),`, check whether the\nendpoint is marked reserved.`]})})]})}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 keys, scopes, and the two ways requests authenticate.","href":"/get-started/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Secret API keys (server-to-server)","slug":"secret-api-keys-server-to-server","depth":2,"children":[]},{"title":"Browser sessions","slug":"browser-sessions","depth":2,"children":[]},{"title":"Publishable keys (the chat widget)","slug":"publishable-keys-the-chat-widget","depth":2,"children":[]},{"title":"Scopes","slug":"scopes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"flowyte","siteName":"Flowyte","title":"Authentication - Flowyte","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-03T19:19:00.386Z","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=\"API keys, scopes, and the two ways requests authenticate.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flowyte\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_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/flowyte/Z_GhxvXdfHoIuVAX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Flowyte\">\u003cmeta data-mint-head property=\"og:description\" content=\"API keys, scopes, and the two ways requests authenticate.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flowyte\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flowyte.com/get-started/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flowyte.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=API+keys%2C+scopes%2C+and+the+two+ways+requests+authenticate.\u0026amp;theme=0a3a852175ddc8e5bfd2cfca\u0026amp;signature=b893fa75a00e2ad4463cdcc9d46cd7a9e389bbb370c98b591a2f19f073ea90f8\">\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 - Flowyte\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"API keys, scopes, and the two ways requests authenticate.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flowyte.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=API+keys%2C+scopes%2C+and+the+two+ways+requests+authenticate.\u0026amp;theme=0a3a852175ddc8e5bfd2cfca\u0026amp;signature=b893fa75a00e2ad4463cdcc9d46cd7a9e389bbb370c98b591a2f19f073ea90f8\">\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/flowyte/Z_GhxvXdfHoIuVAX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flowyte\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flowyte.com/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.flowyte.com/#organization\",\"name\":\"Flowyte\",\"url\":\"https://docs.flowyte.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flowyte.com#website\",\"name\":\"Flowyte\",\"url\":\"https://docs.flowyte.com\",\"publisher\":{\"@id\":\"https://docs.flowyte.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flowyte.com/get-started/authentication#webpage\",\"url\":\"https://docs.flowyte.com/get-started/authentication\",\"name\":\"Authentication\",\"description\":\"API keys, scopes, and the two ways requests authenticate.\",\"dateModified\":\"2026-10-03T19:19:00.386Z\",\"isPartOf\":{\"@id\":\"https://docs.flowyte.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flowyte.com/get-started/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flowyte.com/get-started/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.flowyte.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.flowyte.com/get-started/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.flowyte.com/get-started/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"API keys, scopes, and the two ways requests authenticate.\",\"url\":\"https://docs.flowyte.com/get-started/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flowyte.com/get-started/authentication#webpage\"},\"dateModified\":\"2026-10-03T19:19:00.386Z\",\"publisher\":{\"@id\":\"https://docs.flowyte.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flowyte.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flowyte\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Flowyte\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/get-started/authentication.md","siteName":"Flowyte","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Flowyte","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"For AI agents","href":"/get-started/for-ai-agents"},{"title":"MCP gateway","description":"Configure and operate your Flowyte tenant from any MCP client — Claude Code, Claude.ai, or your own agent runtime — over a remote MCP server.","href":"/get-started/mcp-gateway"},{"title":"Authentication","href":"/get-started/authentication"},{"title":"Draft vs Published vs Sandbox","description":"How edits, the tester, and live phone \u0026 chat traffic relate — and why you publish before going live.","href":"/get-started/draft-vs-published"}]},{"group":"Concepts","pages":[{"title":"Agents","href":"/concepts/agents"},{"title":"Languages \u0026 Voice","href":"/concepts/languages-and-voice"},{"title":"Knowledge","href":"/concepts/knowledge"},{"title":"Skills","href":"/concepts/skills"},{"title":"Integrations","href":"/concepts/integrations"},{"title":"Guardrails","href":"/concepts/guardrails"},{"title":"Playbooks","href":"/concepts/playbooks"},{"title":"Numbers","href":"/concepts/numbers"},{"title":"Test \u0026 Simulate","href":"/concepts/testing"},{"title":"Observe \u0026 Receipts","href":"/concepts/observe"},{"title":"Billing \u0026 Credits","href":"/concepts/billing"},{"title":"Versioning \u0026 Publishing","href":"/concepts/versioning"}]},{"group":"Channels","pages":[{"title":"Voice (PSTN)","href":"/channels/voice"},{"title":"Chat","href":"/channels/chat"},{"title":"Embeddable Widget","href":"/channels/widget"},{"title":"SMS (10DLC)","href":"/channels/sms"},{"title":"DTMF / Keypad","href":"/channels/dtmf"}]},{"group":"Integrations","pages":[{"title":"Integrations overview","href":"/integrations/overview"},{"title":"Google Calendar","href":"/integrations/google-calendar"},{"title":"Google Sheets","href":"/integrations/google-sheets"},{"title":"HubSpot","href":"/integrations/hubspot"},{"title":"Shopify","href":"/integrations/shopify"},{"title":"SQL database (Postgres \u0026 MySQL)","href":"/integrations/sql-database"},{"title":"Zapier","href":"/integrations/zapier"},{"title":"AI Harnesses","href":"/integrations/ai-harness"},{"title":"AI Harness connector reference","href":"/integrations/ai-harness-connector"},{"title":"Build a custom integration","href":"/integrations/custom"}]},{"group":"Guides","pages":[{"title":"Build an HVAC answering agent","href":"/guides/build-hvac-agent"},{"title":"Take an order with a delivery check","href":"/guides/take-orders"},{"title":"Add a knowledge base \u0026 verify coverage","href":"/guides/add-knowledge"},{"title":"Buy a number \u0026 go live","href":"/guides/buy-a-number"},{"title":"Warm transfer to a human","href":"/guides/warm-transfer"},{"title":"Verify a caller before disclosure","href":"/guides/caller-verification"},{"title":"Embed the chat widget","href":"/guides/embed-chat-widget"},{"title":"Use the OpenAI-compatible chat endpoint","href":"/guides/openai-compatible-chat"},{"title":"Map an integration's fields","href":"/guides/map-integration-fields"},{"title":"Connect a SQL database","href":"/guides/connect-sql-database"},{"title":"Connect Zapier","href":"/guides/connect-zapier"},{"title":"Connect your AI harness","href":"/guides/connect-ai-harness"}]},{"group":"Trust \u0026 Security","pages":[{"title":"Trust \u0026 Security","href":"/trust/security"}]}]},{"tab":"Solutions","pages":[{"title":"Solutions","href":"/solutions/answering-service"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/feature-matrix"}]}]},"basePath":"","title":"Authentication - Flowyte","deploymentId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","buildId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","dynamics":[],"chunks":[]}