Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.
Every request to the Whisul API must include a valid API key. Whisul uses Bearer token authentication — you pass your key in the Authorization header of each request. This page explains how to get your key, how to use it, and what to do if authentication fails.
Your API key is a secret. Do not share it publicly, include it in client-side code, or commit it to version control. If your key is compromised, regenerate it from your dashboard immediately.
Pass your key in requests
Include your API key in the Authorization header using the Bearer scheme on every API request:
Replace YOUR_API_KEY with the key you copied from your dashboard.
Handle 401 Unauthorized errors
If your API key is missing, malformed, or invalid, the API returns a 401 Unauthorized response. Common causes:
You forgot to include the Authorization header
The header value is not formatted as Bearer YOUR_API_KEY
Your key was regenerated and the old one is no longer valid
To fix a 401 error, verify that:
The Authorization header is present in your request
The value starts with Bearer followed by your key (note the space after Bearer)
The key matches the one currently shown in your Whisul dashboard
Security best practices
Never hardcode your API key in source code that you commit to a repository. Use environment variables or a secrets manager instead.
Follow these practices to keep your key secure:
Use environment variables. Store your key in an environment variable such as WHISUL_API_KEY and read it at runtime.
Add your key file to .gitignore. If you use a .env file locally, make sure it is listed in .gitignore before you commit.
Rotate your key if exposed. If you accidentally publish your key, go to your Whisul dashboard and regenerate it immediately. The old key will stop working as soon as you do.
Restrict usage to server-side code. Never expose your API key in front-end JavaScript or mobile apps where users can inspect it.
Most languages support reading environment variables natively. For example, in a shell environment you can set export WHISUL_API_KEY=your_key_here and then reference it as $WHISUL_API_KEY in curl commands.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Whisul Doc","colors":{"primary":"#00eaff","light":"#E8FC75","dark":"#0c0c0c"},"logo":{"light":"https://media.brand.dev/bbd39225-b258-4900-b705-fa07ceb00950.svg","dark":"https://media.brand.dev/bbd39225-b258-4900-b705-fa07ceb00950.svg"},"favicon":"https://media.brand.dev/df6bf893-5f64-436a-bc9f-db27b3cb6f9a.png","appearance":{"default":"dark","strict":true},"navbar":{"primary":{"type":"button","label":"Sign Up","href":"https://whisul.com/app/login/"}},"footer":{"socials":{"x":"https://x.com/whisulmusic","instagram":"https://instagram.com/whisulmusic"}},"fonts":{"family":"Mulish"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"whisul","hasAudioNarration":false,"actualSubdomain":"whisul","customDomains":["docs.whisul.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-whisul-7398e8a9","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95624cb76ddd761c9c207:success","clientVersion":"0.0.4424","searchFilterCounts":[{"language":"default","tag":"API Reference","count":5},{"language":"default","tag":"Endpoints","count":4},{"language":"default","tag":"Documentation","count":4},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Reference","count":1},{"language":"default","tag":"Guides","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"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":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"authentication","slug":"/authentication","pageMetadata":{"title":"Authentication","description":"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.","href":"/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: \"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Every request to the Whisul API must include a valid API key. Whisul uses Bearer token authentication — you pass your key in the `,_jsx(_components.code,{children:`Authorization`}),` header of each request. This page explains how to get your key, how to use it, and what to do if authentication fails.`]}),`\n`,_jsx(Heading,{level:`2`,id:`get-your-api-key`,children:`Get your API key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.a,{href:`https://whisul.com`,children:`whisul.com`}),` and sign up for an account.`]}),`\n`,_jsx(_components.li,{children:`After logging in, open your dashboard.`}),`\n`,_jsxs(_components.li,{children:[`Locate the `,_jsx(_components.strong,{children:`API Keys`}),` section and copy your key.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Your API key is a secret. Do not share it publicly, include it in client-side code, or commit it to version control. If your key is compromised, regenerate it from your dashboard immediately.`})}),`\n`,_jsx(Heading,{level:`2`,id:`pass-your-key-in-requests`,children:`Pass your key in requests`}),`\n`,_jsxs(_components.p,{children:[`Include your API key in the `,_jsx(_components.code,{children:`Authorization`}),` header using the `,_jsx(_components.code,{children:`Bearer`}),` scheme on every API request:`]}),`\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`,_jsx(_components.p,{children:`Here is a complete example using curl:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://whisul.com/api/generate`}),_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:` --header`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_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:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"prompt\": \"a relaxing lo-fi beat\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_API_KEY`}),` with the key you copied from your dashboard.`]}),`\n`,_jsx(Heading,{level:`2`,id:`handle-401-unauthorized-errors`,children:`Handle 401 Unauthorized errors`}),`\n`,_jsxs(_components.p,{children:[`If your API key is missing, malformed, or invalid, the API returns a `,_jsx(_components.code,{children:`401 Unauthorized`}),` response. Common causes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You forgot to include the `,_jsx(_components.code,{children:`Authorization`}),` header`]}),`\n`,_jsxs(_components.li,{children:[`The header value is not formatted as `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`})]}),`\n`,_jsx(_components.li,{children:`Your key was regenerated and the old one is no longer valid`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To fix a `,_jsx(_components.code,{children:`401`}),` error, verify that:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`Authorization`}),` header is present in your request`]}),`\n`,_jsxs(_components.li,{children:[`The value starts with `,_jsx(_components.code,{children:`Bearer `}),` followed by your key (note the space after `,_jsx(_components.code,{children:`Bearer`}),`)`]}),`\n`,_jsx(_components.li,{children:`The key matches the one currently shown in your Whisul dashboard`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`security-best-practices`,children:`Security best practices`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Never hardcode your API key in source code that you commit to a repository. Use environment variables or a secrets manager instead.`})}),`\n`,_jsx(_components.p,{children:`Follow these practices to keep your key secure:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use environment variables.`}),` Store your key in an environment variable such as `,_jsx(_components.code,{children:`WHISUL_API_KEY`}),` and read it at runtime.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Add your key file to `,_jsx(_components.code,{children:`.gitignore`}),`.`]}),` If you use a `,_jsx(_components.code,{children:`.env`}),` file locally, make sure it is listed in `,_jsx(_components.code,{children:`.gitignore`}),` before you commit.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rotate your key if exposed.`}),` If you accidentally publish your key, go to your Whisul dashboard and regenerate it immediately. The old key will stop working as soon as you do.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Restrict usage to server-side code.`}),` Never expose your API key in front-end JavaScript or mobile apps where users can inspect it.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Most languages support reading environment variables natively. For example, in a shell environment you can set `,_jsx(_components.code,{children:`export WHISUL_API_KEY=your_key_here`}),` and then reference it as `,_jsx(_components.code,{children:`$WHISUL_API_KEY`}),` in curl commands.`]})})]})}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":"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.","href":"/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get your API key","slug":"get-your-api-key","depth":2,"children":[]},{"title":"Pass your key in requests","slug":"pass-your-key-in-requests","depth":2,"children":[]},{"title":"Handle 401 Unauthorized errors","slug":"handle-401-unauthorized-errors","depth":2,"children":[]},{"title":"Security best practices","slug":"security-best-practices","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"whisul","siteName":"Whisul Doc","title":"Authentication - Whisul Doc","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-29T09:42:39.253Z","originalFileLocation":"authentication.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Whisul Doc\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/df6bf893-5f64-436a-bc9f-db27b3cb6f9a.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/df6bf893-5f64-436a-bc9f-db27b3cb6f9a.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/df6bf893-5f64-436a-bc9f-db27b3cb6f9a.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/df6bf893-5f64-436a-bc9f-db27b3cb6f9a.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Whisul Doc\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Whisul Doc\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.whisul.com/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://whisul.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Authentication\u0026amp;description=Get+your+Whisul+API+key%2C+pass+it+in+the+Authorization%3A+Bearer+header+on+every+request%2C+and+follow+best+practices+to+keep+it+secure.\u0026amp;theme=22465dc60fbec750cf2e3033\u0026amp;signature=456a71bb36fc056530e438518084b10915bce3f6b388b71fa53b5c18fbe63e0e\">\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 - Whisul Doc\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://whisul.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Authentication\u0026amp;description=Get+your+Whisul+API+key%2C+pass+it+in+the+Authorization%3A+Bearer+header+on+every+request%2C+and+follow+best+practices+to+keep+it+secure.\u0026amp;theme=22465dc60fbec750cf2e3033\u0026amp;signature=456a71bb36fc056530e438518084b10915bce3f6b388b71fa53b5c18fbe63e0e\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/whisul/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Whisul Doc\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00eaff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.whisul.com/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.whisul.com/#organization\",\"name\":\"Whisul Doc\",\"url\":\"https://docs.whisul.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://media.brand.dev/bbd39225-b258-4900-b705-fa07ceb00950.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.whisul.com#website\",\"name\":\"Whisul Doc\",\"url\":\"https://docs.whisul.com\",\"publisher\":{\"@id\":\"https://docs.whisul.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.whisul.com/authentication#webpage\",\"url\":\"https://docs.whisul.com/authentication\",\"name\":\"Authentication\",\"description\":\"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.\",\"dateModified\":\"2026-04-29T09:42:39.253Z\",\"isPartOf\":{\"@id\":\"https://docs.whisul.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.whisul.com/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.whisul.com/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://docs.whisul.com/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.whisul.com/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.whisul.com/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Get your Whisul API key, pass it in the Authorization: Bearer header on every request, and follow best practices to keep it secure.\",\"url\":\"https://docs.whisul.com/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.whisul.com/authentication#webpage\"},\"dateModified\":\"2026-04-29T09:42:39.253Z\",\"publisher\":{\"@id\":\"https://docs.whisul.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.whisul.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Whisul Doc\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Whisul Doc\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/authentication.md","siteName":"Whisul Doc","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Overview","href":"/introduction"},{"group":"Get Started","pages":[{"title":"Generate Music","description":"Submit your first music generation request and retrieve a playable audio URL from the Whisul API by following this four-step guide.","href":"/quickstart"},{"title":"Authentication","href":"/authentication"}]},{"group":"Guides","pages":[{"title":"Make Music Like a Sandwich","description":"Learn how to write effective prompts and call POST /generate to submit a Whisul music generation job and receive a job ID for polling.","href":"/guides/generate-music"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/compose"}]}]},"basePath":"","title":"Authentication - Whisul Doc","deploymentId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","buildId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","dynamics":[],"chunks":[]}