// Node.js: Using form-data libraryimport FormData from 'form-data';import * as fs from 'fs';const form = new FormData();form.append('file', fs.createReadStream('voice_sample.mp3'));form.append('name', 'My Voice');const response = await fetch('https://dev.voice.ai/api/v1/tts/clone-voice', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', ...form.getHeaders() }, body: form});const data = await response.json();
Browser Usage & CORS
Browser Requests: The API has CORS restrictions. TypeScript/JavaScript examples in the docs are for reference. For browser-based applications, use a backend proxy or server-side code to avoid CORS errors. API keys should never be exposed in client-side code.
For browser applications, make API calls from your backend server (Node.js, Python, etc.) rather than directly from the browser to avoid CORS issues and keep your API key secure.
Security Best Practices
Never commit API keys to version control
Never expose API keys in client-side code
Use environment variables or secret management tools
Rotate keys regularly
Use separate keys for development, staging, and production
Delete unused keys
Base URL
https://dev.voice.ai
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Voice AI Developer Docs","colors":{"primary":"#1848D9","light":"#859EE7","dark":"#1338AA"},"logo":{"light":"https://mintcdn.com/voiceai-148d3dbe/Caj7cV8dLvcnQZ8I/logo/light.svg?fit=max\u0026auto=format\u0026n=Caj7cV8dLvcnQZ8I\u0026q=85\u0026s=c9828ffd0570aa2789d59a940e26f5b3","dark":"https://mintcdn.com/voiceai-148d3dbe/Caj7cV8dLvcnQZ8I/logo/dark.svg?fit=max\u0026auto=format\u0026n=Caj7cV8dLvcnQZ8I\u0026q=85\u0026s=77c05ac1a85161a28c23833ac1684124"},"favicon":"https://mintcdn.com/voiceai-148d3dbe/Caj7cV8dLvcnQZ8I/favicon.svg?fit=max\u0026auto=format\u0026n=Caj7cV8dLvcnQZ8I\u0026q=85\u0026s=c3d070475d0ae85cc31e9bc3d41993a3","navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://voice.ai/app/dashboard/developers"}},"footer":{"socials":{"x":"https://x.com/TryVoiceAI","linkedin":"https://www.linkedin.com/company/voice-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"voiceai-148d3dbe","hasAudioNarration":false,"actualSubdomain":"voiceai-148d3dbe","customDomains":["voice.ai"],"gitSource":{"type":"github","owner":"voice-ai-internal","repo":"voice-agent-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a95c5194e25ee4c8efb3c66","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API reference","count":54},{"language":"default","tag":"REST API","count":52},{"language":"default","tag":"Agent Management","count":11},{"language":"default","tag":"Pronunciation Dictionaries","count":10},{"language":"default","tag":"Agent Knowledge Base","count":7},{"language":"default","tag":"Text To Speech","count":7},{"language":"default","tag":"Phone Number Management","count":5},{"language":"default","tag":"Agent Analytics","count":4},{"language":"default","tag":"Agent Connection","count":4},{"language":"default","tag":"Managed Tools","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"global.css","content":"#sidebar-group li.active a{--tw-text-opacity: 1;color:rgb(var(--primary-light) / var(--tw-text-opacity));background-color:rgb(var(--gray-200) / .05)}.method-wss,[data-method=\"WSS\"]{display:inline-block;padding:2px 8px;border-radius:4px;font-size:0.75rem;font-weight:600;text-transform:uppercase;background-color:#9333ea!important;color:white!important;font-family:ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace}span[data-method=\"WSS\"],code[data-method=\"WSS\"],div[data-method=\"WSS\"]{background-color:#9333ea!important;color:white!important}.api-reference .method-wss,.endpoint .method-wss,[class*=\"method\"].method-wss{background-color:#9333ea!important;color:white!important}"}]}
{"page":{"pagePath":"guides/authentication","slug":"/guides/authentication","pageMetadata":{"title":"Authentication","description":null,"href":"/guides/authentication"},"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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`All API requests require authentication using an API key.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-an-api-key`,children:`Create an API Key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Visit the `,_jsx(_components.a,{href:`https://voice.ai/app/dashboard/developers`,children:`API Keys dashboard`})]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`”+ API Key”`})]}),`\n`,_jsx(_components.li,{children:`Name your key (e.g., “Production”, “Development”)`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`“Create”`})]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`API keys are only shown once when created. Copy and store your key securely.`})}),`\n`,_jsx(Heading,{level:`2`,id:`using-your-api-key`,children:`Using Your API Key`}),`\n`,_jsxs(_components.p,{children:[`Include your API key in the `,_jsx(_components.code,{children:`Authorization`}),` header as a Bearer token:`]}),`\n`,_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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`]})})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`12`,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:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Upload audio file using multipart/form-data`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'voice_sample.mp3'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'rb'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` files `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'file'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'voice_sample.mp3'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, f, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'audio/mpeg'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'My Voice'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://dev.voice.ai/api/v1/tts/clone-voice'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`files,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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://dev.voice.ai/api/v1/tts/clone-voice\"`}),_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:` \"Authorization: Bearer YOUR_API_KEY\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@voice_sample.mp3\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name=My Voice\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`18`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Node.js: Using form-data library`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` FormData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'form-data'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'fs'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` form`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FormData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'file'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createReadStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'voice_sample.mp3'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'My Voice'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://dev.voice.ai/api/v1/tts/clone-voice'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getHeaders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` form`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`browser-usage-\u0026-cors`,children:`Browser Usage \u0026 CORS`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Browser Requests`}),`: The API has CORS restrictions. TypeScript/JavaScript examples in the docs are for reference. For browser-based applications, use a backend proxy or server-side code to avoid CORS errors. API keys should never be exposed in client-side code.`]})}),`\n`,_jsx(_components.p,{children:`For browser applications, make API calls from your backend server (Node.js, Python, etc.) rather than directly from the browser to avoid CORS issues and keep your API key secure.`}),`\n`,_jsx(Heading,{level:`2`,id:`security-best-practices`,children:`Security Best Practices`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Never commit API keys to version control`}),`\n`,_jsx(_components.li,{children:`Never expose API keys in client-side code`}),`\n`,_jsx(_components.li,{children:`Use environment variables or secret management tools`}),`\n`,_jsx(_components.li,{children:`Rotate keys regularly`}),`\n`,_jsx(_components.li,{children:`Use separate keys for development, staging, and production`}),`\n`,_jsx(_components.li,{children:`Delete unused keys`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`base-url`,children:`Base URL`}),`\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:`https://dev.voice.ai`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})}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":null,"href":"/guides/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create an API Key","slug":"create-an-api-key","depth":2,"children":[]},{"title":"Using Your API Key","slug":"using-your-api-key","depth":2,"children":[]},{"title":"Browser Usage \u0026 CORS","slug":"browser-usage-\u0026-cors","depth":2,"children":[]},{"title":"Security Best Practices","slug":"security-best-practices","depth":2,"children":[]},{"title":"Base URL","slug":"base-url","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/voiceai-148d3dbe/75d9f4e3c0edb344/global.js"],"subdomain":"voiceai-148d3dbe","siteName":"Voice AI Developer Docs","title":"Authentication - Voice AI Developer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-22T15:28:22.191Z","originalFileLocation":"guides/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=\"application-name\" content=\"Voice AI Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Voice AI Developer Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Voice AI Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://voice.ai/guides/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://voiceai-148d3dbe.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Authentication\u0026amp;theme=fca0104e5cd428e8fa6dc368\u0026amp;signature=b75b55e6c02d5894111f59a41fc672042897e1653ede3fe83d154bef20c3e69e\">\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 - Voice AI Developer Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://voiceai-148d3dbe.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Authentication\u0026amp;theme=fca0104e5cd428e8fa6dc368\u0026amp;signature=b75b55e6c02d5894111f59a41fc672042897e1653ede3fe83d154bef20c3e69e\">\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/voiceai-148d3dbe/d4TKGuPc-kBhyxhT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Voice AI Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1848D9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://voice.ai/guides/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Voice AI Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Voice AI Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/authentication.md","siteName":"Voice AI Developer Docs","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Overview","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/docs/introduction"},{"title":"Authentication","href":"/docs/guides/authentication"},{"title":"Recipes","href":"/docs/guides/recipes"}]},{"group":"Text-to-Speech","pages":[{"title":"Quickstart","href":"/docs/guides/text-to-speech/quickstart"},{"title":"Pronunciation dictionaries","href":"/docs/guides/text-to-speech/pronunciation-dictionaries"},{"title":"Voice cloning","href":"/docs/guides/text-to-speech/voice-cloning"},{"title":"Streaming","href":"/docs/guides/text-to-speech/streaming"}]},{"group":"Voice Agents","pages":[{"title":"Quickstart","href":"/docs/guides/voice-agents/quickstart"},{"group":"Settings","pages":[{"title":"Configuration","href":"/docs/guides/voice-agents/configuration"},{"title":"Knowledge base","href":"/docs/guides/voice-agents/knowledge-base"},{"title":"Phone numbers","href":"/docs/guides/voice-agents/phone-numbers"},{"title":"Webhooks","href":"/docs/guides/voice-agents/webhooks"},{"title":"Managed tools","href":"/docs/guides/voice-agents/managed-tools"},{"title":"Model context protocol","href":"/docs/guides/voice-agents/model-context-protocol"}]},{"title":"Analytics","href":"/docs/guides/voice-agents/analytics"},{"title":"Auto evals","href":"/docs/guides/voice-agents/auto-evals"}]},{"group":"SDKs","pages":[{"title":"Web","href":"/docs/guides/voice-agents/web"}]}]},{"tab":"API reference","groups":[{"group":"REST API","pages":[{"group":"Text To Speech","pages":[{"title":"Generate Speech","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/speech","href":"/docs/api-reference/text-to-speech/generate-speech"},{"title":"Speech Stream","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/speech/stream","href":"/docs/api-reference/text-to-speech/speech-stream"},{"title":"Clone Voice","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/clone-voice","href":"/docs/api-reference/text-to-speech/clone-voice"},{"title":"List Voices","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/tts/voices","href":"/docs/api-reference/text-to-speech/list-voices"},{"title":"Get Voice","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/tts/voice/{voice_id}","href":"/docs/api-reference/text-to-speech/get-voice"},{"title":"Delete Voice","deprecated":null,"version":null,"openapi":"/docs/openapi.json delete /api/v1/tts/voice/{voice_id}","href":"/docs/api-reference/text-to-speech/delete-voice"},{"title":"Update Voice","deprecated":null,"version":null,"openapi":"/docs/openapi.json patch /api/v1/tts/voice/{voice_id}","href":"/docs/api-reference/text-to-speech/update-voice"}]},{"group":"Agent Management","pages":[{"title":"List Agents","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/","href":"/docs/api-reference/agent-management/list-agents"},{"title":"Create Agent","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/","href":"/docs/api-reference/agent-management/create-agent"},{"title":"Initialize Agent From Template","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/init-agent","href":"/docs/api-reference/agent-management/initialize-agent-from-template"},{"title":"Get Agent Details","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/{agent_id}","href":"/docs/api-reference/agent-management/get-agent-details"},{"title":"Update Agent","deprecated":null,"version":null,"openapi":"/docs/openapi.json put /api/v1/agent/{agent_id}","href":"/docs/api-reference/agent-management/update-agent"},{"title":"Deploy Agent","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/deploy","href":"/docs/api-reference/agent-management/deploy-agent"},{"title":"Pause Agent","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/pause","href":"/docs/api-reference/agent-management/pause-agent"},{"title":"Delete Agent","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/disable","href":"/docs/api-reference/agent-management/delete-agent"},{"title":"Test Events Webhook","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/webhook/test","href":"/docs/api-reference/agent-management/test-events-webhook"},{"title":"Test Inbound Call Webhook","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/webhook/test-inbound-call","href":"/docs/api-reference/agent-management/test-inbound-call-webhook"},{"title":"Test Tools Webhook","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/webhook/test-tool/{tool_name}","href":"/docs/api-reference/agent-management/test-tools-webhook"}]},{"group":"Models","pages":[{"title":"List Supported Models","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/models","href":"/docs/api-reference/models/list-supported-models"}]},{"group":"Phone Number Management","pages":[{"title":"Get Available Phone Numbers","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/available-phone-numbers","href":"/docs/api-reference/phone-number-management/get-available-phone-numbers"},{"title":"List Phone Number Details","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/phone-numbers","href":"/docs/api-reference/phone-number-management/list-phone-number-details"},{"title":"Search Available Phone Numbers","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/search-phone-numbers","href":"/docs/api-reference/phone-number-management/search-available-phone-numbers"},{"title":"Select Phone Number","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/select-phone-number","href":"/docs/api-reference/phone-number-management/select-phone-number"},{"title":"Release Phone Number","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/release-phone-number","href":"/docs/api-reference/phone-number-management/release-phone-number"}]},{"group":"Agent Analytics","pages":[{"title":"Call History","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/call-history","href":"/docs/api-reference/agent-analytics/call-history"},{"title":"Get Call Transcript URL","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/call-history/{call_id}/transcript","href":"/docs/api-reference/agent-analytics/get-call-transcript-url"},{"title":"Call Recording","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/call-history/{call_id}/recording","href":"/docs/api-reference/agent-analytics/call-recording"},{"title":"Get Agent Status Summary","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/agent/stats-summary","href":"/docs/api-reference/agent-analytics/get-agent-status-summary"}]},{"group":"Agent Connection","pages":[{"title":"Agent Connection Status","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/connection/agent-status/{agent_id}","href":"/docs/api-reference/agent-connection/agent-connection-status"},{"title":"Connection Details","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/connection/connection-details","href":"/docs/api-reference/agent-connection/connection-details"},{"title":"End Call","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/calls/{call_id}/end","href":"/docs/api-reference/agent-connection/end-call"},{"title":"Create Outbound Call","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/calls/outbound","href":"/docs/api-reference/agent-connection/create-outbound-call"}]},{"group":"Agent Knowledge Base","pages":[{"title":"Knowledge Base List","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/knowledge-base/","href":"/docs/api-reference/agent-knowledge-base/knowledge-base-list"},{"title":"Create Knowledge Base","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/knowledge-base/","href":"/docs/api-reference/agent-knowledge-base/create-knowledge-base"},{"title":"Knowledge Base Details","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/knowledge-base/{kb_id}","href":"/docs/api-reference/agent-knowledge-base/knowledge-base-details"},{"title":"Update Knowledge Base","deprecated":null,"version":null,"openapi":"/docs/openapi.json put /api/v1/knowledge-base/{kb_id}","href":"/docs/api-reference/agent-knowledge-base/update-knowledge-base"},{"title":"Delete Knowledge Base","deprecated":null,"version":null,"openapi":"/docs/openapi.json delete /api/v1/knowledge-base/{kb_id}","href":"/docs/api-reference/agent-knowledge-base/delete-knowledge-base"},{"title":"Assign Knowledge Base","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/agent/{agent_id}/assign-knowledge-base","href":"/docs/api-reference/agent-knowledge-base/assign-knowledge-base"},{"title":"Unassign Knowledge Base","deprecated":null,"version":null,"openapi":"/docs/openapi.json delete /api/v1/agent/{agent_id}/knowledge-base","href":"/docs/api-reference/agent-knowledge-base/unassign-knowledge-base"}]},{"group":"Pronunciation Dictionaries","pages":[{"title":"List pronunciation dictionaries","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/tts/pronunciation-dictionaries","href":"/docs/api-reference/pronunciation-dictionaries/list-pronunciation-dictionaries"},{"title":"Create pronunciation dictionary from PLS file","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/pronunciation-dictionaries/add-from-file","href":"/docs/api-reference/pronunciation-dictionaries/create-pronunciation-dictionary-from-pls-file"},{"title":"Create pronunciation dictionary from rules","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/pronunciation-dictionaries/add-from-rules","href":"/docs/api-reference/pronunciation-dictionaries/create-pronunciation-dictionary-from-rules"},{"title":"Get pronunciation dictionary","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/tts/pronunciation-dictionaries/{dictionary_id}","href":"/docs/api-reference/pronunciation-dictionaries/get-pronunciation-dictionary"},{"title":"Delete pronunciation dictionary","deprecated":null,"version":null,"openapi":"/docs/openapi.json delete /api/v1/tts/pronunciation-dictionaries/{dictionary_id}","href":"/docs/api-reference/pronunciation-dictionaries/delete-pronunciation-dictionary"},{"title":"Rename pronunciation dictionary","deprecated":null,"version":null,"openapi":"/docs/openapi.json patch /api/v1/tts/pronunciation-dictionaries/{dictionary_id}","href":"/docs/api-reference/pronunciation-dictionaries/rename-pronunciation-dictionary"},{"title":"Download pronunciation dictionary version as PLS","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/tts/pronunciation-dictionaries/{dictionary_id}/{version}/download","href":"/docs/api-reference/pronunciation-dictionaries/download-pronunciation-dictionary-version-as-pls"},{"title":"Replace pronunciation dictionary rules","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/pronunciation-dictionaries/{dictionary_id}/set-rules","href":"/docs/api-reference/pronunciation-dictionaries/replace-pronunciation-dictionary-rules"},{"title":"Add pronunciation dictionary rules","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/pronunciation-dictionaries/{dictionary_id}/add-rules","href":"/docs/api-reference/pronunciation-dictionaries/add-pronunciation-dictionary-rules"},{"title":"Remove pronunciation dictionary rules","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/tts/pronunciation-dictionaries/{dictionary_id}/remove-rules","href":"/docs/api-reference/pronunciation-dictionaries/remove-pronunciation-dictionary-rules"}]},{"group":"Managed Tools","pages":[{"title":"Start Google OAuth","deprecated":null,"version":null,"openapi":"/docs/openapi.json post /api/v1/google/{agent_id}/oauth/start","href":"/docs/api-reference/managed-tools/start-google-oauth"},{"title":"Get Google Connection Status","deprecated":null,"version":null,"openapi":"/docs/openapi.json get /api/v1/google/{agent_id}/status","href":"/docs/api-reference/managed-tools/get-google-connection-status"},{"title":"Disconnect Google","deprecated":null,"version":null,"openapi":"/docs/openapi.json delete /api/v1/google/{agent_id}/disconnect","href":"/docs/api-reference/managed-tools/disconnect-google"}]}]},{"group":"WebSocket API","pages":[{"group":"Text to Speech","pages":[{"asyncapi":"docs/asyncapi.json /api/v1/tts/stream","href":"/docs/api-reference/text-to-speech/single-context-websocket","title":"Single-Context WebSocket","version":null},{"asyncapi":"docs/asyncapi.json /api/v1/tts/multi-stream","href":"/docs/api-reference/text-to-speech/multi-context-websocket","title":"Multi-Context WebSocket","version":null}]}]}]}]},"basePath":"","title":"Authentication - Voice AI Developer Docs","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}