The following guide walks you through how to obtain an API key. If you already have your API key,
you can also explore practical examples and integration tips to jump start your journey with GPT Chatbot. Let’s begin!
Step 2: Create an Account (If you don’t already have one)
If you don’t have an account on the GPT Chatbot platform, click on the “Sign Up” or “Create Account”
button and follow the registration process. Provide the required information to create your account.
After successfully logging in, you’ll be directed to the app. Look for the “Account” menu in the platform’s
navigation bar. Click on it to access your account settings.
Inside your account settings, you will find an “API Keys” section. Within the API Keys section,
you should see an option to “Generate new key”. Click on it to initiate the process of creating a new API key.
In the “Create New API Key” dialog, provide a description for your API key to help identify its purpose.
Once you’ve entered the description, click the “Generate” button to create your API key.
Be sure to copy and save your API key in a secure location. Do not share it
with anyone, as it provides access to the GPT Chatbot API services. Treat your
API key like a password.
Now, you’ve successfully requested, generated, and saved your GPT Chatbot API key.
You can use this key to authenticate your requests and integrate GPT Chatbot into your applications, scripts, or projects.If you’re ready to dive further and explore practical examples of using the GPT Chatbot API, please visit the “Live Examples” section on the left sidebar.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"GPT Chatbot API","colors":{"primary":"#2E3F51","light":"#516F90","dark":"#0D001D"},"favicon":"https://mintcdn.com/gptchatbot/et1nlYck1QOJbxxd/logo/favicon.png?fit=max\u0026auto=format\u0026n=et1nlYck1QOJbxxd\u0026q=85\u0026s=6887bcfb8c0877734cb5c8e2ba023c6b","logo":{"light":"https://mintcdn.com/gptchatbot/RpxSGx9HJ26aMoIb/logo/light.svg?fit=max\u0026auto=format\u0026n=RpxSGx9HJ26aMoIb\u0026q=85\u0026s=7a58afc2a4b648ed6b3344690bbc012d","dark":"https://mintcdn.com/gptchatbot/et1nlYck1QOJbxxd/logo/dark.svg?fit=max\u0026auto=format\u0026n=et1nlYck1QOJbxxd\u0026q=85\u0026s=18c489c900d7070d713b4e7232227076"},"api":{"mdx":{"server":"https://app.gptchatbot.it/api","auth":{"method":"bearer","name":null}}},"background":{"decoration":null,"color":{"light":null,"dark":"#111827"}},"navbar":{"links":[{"label":"Support","href":"mailto:info@gptchatbot.it"}],"primary":null},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gptchatbot","hasAudioNarration":false,"actualSubdomain":"gptchatbot","customDomains":["docs.gptchatbot.it"],"gitSource":{"type":"github","owner":"federicodecillia","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a48af477c1f63e9b6f5a207","collectionId":"1d2bddc6-a57f-459a-bc5c-e13adf6914a7","schemaVersion":"v3"},"entitlements":{},"buildId":"6a48b0974fc0d1ab7935e1d6:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API References","count":39},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Data Sources","count":9},{"language":"default","tag":"Chatbots","count":6},{"language":"default","tag":"Session Messages","count":6},{"language":"default","tag":"Agents","count":5},{"language":"default","tag":"Chatbot Sessions","count":5},{"language":"default","tag":"API Usage Guides","count":4},{"language":"default","tag":"Data Source Tags","count":4}]},"assistantConfig":{},"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":"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":"llms-txt-v2","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":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/api-key-setup","slug":"/api-reference/api-key-setup","pageMetadata":{"title":"Getting a GPT Chatbot API Key","description":null,"href":"/api-reference/api-key-setup"},"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`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Frame,Heading,OptimizedImage,Warning}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The following guide walks you through how to obtain an API key. If you already have your API key,\nyou can also explore practical examples and integration tips to jump start your journey with GPT Chatbot. Let’s begin!`}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-access-gpt-chatbot-platform`,children:`Step 1: Access GPT Chatbot Platform`}),`\n`,_jsxs(_components.p,{children:[`Go to the `,_jsx(_components.a,{href:`https://app.gptchatbot.it`,children:`GPT Chatbot platform`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-create-an-account-if-you-don’t-already-have-one`,children:`Step 2: Create an Account (If you don’t already have one)`}),`\n`,_jsx(_components.p,{children:`If you don’t have an account on the GPT Chatbot platform, click on the “Sign Up” or “Create Account”\nbutton and follow the registration process. Provide the required information to create your account.`}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-access-your-account-menu`,children:`Step 3: Access Your Account Menu`}),`\n`,_jsx(_components.p,{children:`After successfully logging in, you’ll be directed to the app. Look for the “Account” menu in the platform’s\nnavigation bar. Click on it to access your account settings.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=06ba65b914dbe55f04dc9751821261e9`,\"data-og-width\":`1096`,width:`1096`,\"data-og-height\":`236`,height:`236`,\"data-path\":`images/api-key-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=675c809c99424b1e78698f4ff8595a5b 280w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=80d58455baa2a925d9bc5aaf44325ff0 560w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=18459d0338f6bc251e22886215b5b0e7 840w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=051d351174a9b833f2c301d4f14d39a7 1100w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=0e543f6528e009d7067f86fb684c85e2 1650w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=9c659eb3e84bce65ceff33375eda1b95 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-navigate-to-api-keys-section`,children:`Step 4: Navigate to API Keys Section`}),`\n`,_jsx(_components.p,{children:`Inside your account settings, you will find an “API Keys” section. Within the API Keys section,\nyou should see an option to “Generate new key”. Click on it to initiate the process of creating a new API key.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=7d45e5264c7154a1ffa42e14f1e2f130`,\"data-og-width\":`1080`,width:`1080`,\"data-og-height\":`836`,height:`836`,\"data-path\":`images/api-key-2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?w=280\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=8f6a8eff1262207809eb438a58e30119 280w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?w=560\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=04d6584da945ad0d7ebd0a4b5110c6c9 560w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?w=840\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=5a098a0e51eb323d17b5820e60820409 840w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=cf9f7c224c1e2bf4c4c33fc773d048ac 1100w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=15adca1ccf0bebe2988a13f57c2c728c 1650w, https://mintcdn.com/gptchatbot/ZlbEpevGWLnPaK5b/images/api-key-2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ZlbEpevGWLnPaK5b\u0026q=85\u0026s=61b7c133ed39a9bf6cb2ab2f13a3be83 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`step-5-enter-key-description-and-generate`,children:`Step 5: Enter Key Description and Generate`}),`\n`,_jsx(_components.p,{children:`In the “Create New API Key” dialog, provide a description for your API key to help identify its purpose.\nOnce you’ve entered the description, click the “Generate” button to create your API key.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Be sure to copy and save your API key in a secure location. Do not share it\nwith anyone, as it provides access to the GPT Chatbot API services. Treat your\nAPI key like a password.`})}),`\n`,_jsx(_components.p,{children:`Now, you’ve successfully requested, generated, and saved your GPT Chatbot API key.\nYou can use this key to authenticate your requests and integrate GPT Chatbot into your applications, scripts, or projects.`}),`\n`,_jsxs(_components.p,{children:[`If you’re ready to dive further and explore practical examples of using the GPT Chatbot API, please visit the `,_jsx(_components.strong,{children:`“Live Examples”`}),` section on the left sidebar.`]})]})}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":"Getting a GPT Chatbot API Key","description":null,"href":"/api-reference/api-key-setup"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Step 1: Access GPT Chatbot Platform","slug":"step-1-access-gpt-chatbot-platform","depth":2,"children":[]},{"title":"Step 2: Create an Account (If you don’t already have one)","slug":"step-2-create-an-account-if-you-don’t-already-have-one","depth":2,"children":[]},{"title":"Step 3: Access Your Account Menu","slug":"step-3-access-your-account-menu","depth":2,"children":[]},{"title":"Step 4: Navigate to API Keys Section","slug":"step-4-navigate-to-api-keys-section","depth":2,"children":[]},{"title":"Step 5: Enter Key Description and Generate","slug":"step-5-enter-key-description-and-generate","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"gptchatbot","siteName":"GPT Chatbot API","title":"Getting a GPT Chatbot API Key - GPT Chatbot API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-04T06:59:33.040Z","originalFileLocation":"api-reference/api-key-setup.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=\"GPT Chatbot API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_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/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Getting a GPT Chatbot API Key - GPT Chatbot API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GPT Chatbot API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gptchatbot.it/api-reference/api-key-setup\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gptchatbot.mintlify.app/_mintlify/api/og/v2?division=API+Usage+Guides\u0026amp;title=Getting+a+GPT+Chatbot+API+Key\u0026amp;theme=20e021f1004a9f9f06bad9ba\u0026amp;signature=d7edfc5336ba1aa2a18afb6c49e347a88967ac0c856bfd8eea447311ddce1170\">\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=\"Getting a GPT Chatbot API Key - GPT Chatbot API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gptchatbot.mintlify.app/_mintlify/api/og/v2?division=API+Usage+Guides\u0026amp;title=Getting+a+GPT+Chatbot+API+Key\u0026amp;theme=20e021f1004a9f9f06bad9ba\u0026amp;signature=d7edfc5336ba1aa2a18afb6c49e347a88967ac0c856bfd8eea447311ddce1170\">\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/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GPT Chatbot API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E3F51\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gptchatbot.it/api-reference/api-key-setup\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/api-key-setup.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gptchatbot.it/#organization\",\"name\":\"GPT Chatbot API\",\"url\":\"https://docs.gptchatbot.it\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gptchatbot/RpxSGx9HJ26aMoIb/logo/light.svg?fit=max\u0026auto=format\u0026n=RpxSGx9HJ26aMoIb\u0026q=85\u0026s=7a58afc2a4b648ed6b3344690bbc012d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gptchatbot.it#website\",\"name\":\"GPT Chatbot API\",\"url\":\"https://docs.gptchatbot.it\",\"publisher\":{\"@id\":\"https://docs.gptchatbot.it/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gptchatbot.it/api-reference/api-key-setup#webpage\",\"url\":\"https://docs.gptchatbot.it/api-reference/api-key-setup\",\"name\":\"Getting a GPT Chatbot API Key\",\"dateModified\":\"2026-07-04T06:59:33.040Z\",\"isPartOf\":{\"@id\":\"https://docs.gptchatbot.it#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gptchatbot.it/api-reference/api-key-setup#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gptchatbot.it/api-reference/api-key-setup#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"GPT Chatbot API\",\"item\":\"https://docs.gptchatbot.it\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting a GPT Chatbot API Key\",\"item\":\"https://docs.gptchatbot.it/api-reference/api-key-setup\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gptchatbot.it/api-reference/api-key-setup#article\",\"headline\":\"Getting a GPT Chatbot API Key\",\"name\":\"Getting a GPT Chatbot API Key\",\"url\":\"https://docs.gptchatbot.it/api-reference/api-key-setup\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gptchatbot.it/api-reference/api-key-setup#webpage\"},\"dateModified\":\"2026-07-04T06:59:33.040Z\",\"publisher\":{\"@id\":\"https://docs.gptchatbot.it/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gptchatbot.it#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GPT Chatbot API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"GPT Chatbot API","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction"}]},{"anchor":"API References","icon":"code","groups":[{"group":"API Usage Guides","pages":[{"title":"Getting a GPT Chatbot API Key","href":"/api-reference/api-key-setup"},{"title":"Create Chatbot","description":null,"href":"/api-reference/guide-00-chatbot-create"},{"title":"Chat with Chatbot","href":"/api-reference/guide-01-chat"},{"title":"Uploading Data Sources","href":"/api-reference/guide-02-source"}]},{"group":"Chatbots","pages":[{"title":"Chatbot Properties","href":"/api-reference/chatbots/properties-reference"},{"title":"Create Chatbot","api":"POST https://app.gptchatbot.it/api/v1/chatbot/create","href":"/api-reference/chatbots/create"},{"title":"Update Chatbot","api":"POST https://app.gptchatbot.it/api/v1/chatbot/{uuid}/update","href":"/api-reference/chatbots/update"},{"title":"Fetch a Chatbot","api":"GET https://app.gptchatbot.it/api/v1/chatbot/{uuid}","href":"/api-reference/chatbots/fetch"},{"title":"Fetch all Chatbots","api":"GET https://app.gptchatbot.it/api/v1/chatbots","href":"/api-reference/chatbots/fetch_multi"},{"title":"Delete Chatbot","api":"DELETE https://app.gptchatbot.it/api/v1/chatbot/{uuid}/delete","href":"/api-reference/chatbots/delete"}]},{"group":"Agents","pages":[{"title":"Agent Properties","href":"/api-reference/agents/properties-reference"},{"title":"Create Agent","api":"POST https://app.gptchatbot.it/api/v1/chatbot/\u003cuuid>/agent/create","href":"/api-reference/agents/create"},{"title":"Update Agent","api":"POST https://app.gptchatbot.it/api/v1/agent/{uuid}/update","href":"/api-reference/agents/update"},{"title":"Fetch all Agents","api":"GET https://app.gptchatbot.it/api/v1/chatbot/{uuid}/agents","href":"/api-reference/agents/fetch_multi"},{"title":"Delete Agent","api":"DELETE https://app.gptchatbot.it/api/v1/agent/{uuid}/delete","href":"/api-reference/agents/delete"}]},{"group":"Chatbot Sessions","pages":[{"title":"Session Properties","href":"/api-reference/sessions/properties-reference"},{"title":"Create Session","api":"POST https://app.gptchatbot.it/api/v1/chatbot/{uuid}/session/create","href":"/api-reference/sessions/create"},{"title":"Fetch a Session","api":"GET https://app.gptchatbot.it/api/v1/session/{uuid}","href":"/api-reference/sessions/fetch"},{"title":"Fetch all Sessions","api":"GET https://app.gptchatbot.it/api/v1/chatbot/{uuid}/sessions","href":"/api-reference/sessions/fetch_multi"},{"title":"Delete Session","api":"POST https://app.gptchatbot.it/api/v1/session/{uuid}/delete","href":"/api-reference/sessions/delete"}]},{"group":"Session Messages","pages":[{"title":"Message Properties","href":"/api-reference/messages/properties-reference"},{"title":"Create Message","api":"POST https://app.gptchatbot.it/api/v1/session/{uuid}/message/stream","href":"/api-reference/messages/create"},{"title":"Fetch all Messages","api":"GET https://app.gptchatbot.it/api/v1/session/{uuid}/messages","href":"/api-reference/messages/fetch_multi"},{"title":"Fetch Session History","api":"GET https://app.gptchatbot.it/api/v1/session/{uuid}/messages/plain-text","href":"/api-reference/messages/fetch-message-history"},{"title":"Delete Message","api":"POST https://app.gptchatbot.it/api/v1/message/{uuid}/delete","href":"/api-reference/messages/delete"},{"title":"Delete multiple Messages","api":"POST https://app.gptchatbot.it/api/v1/messages/delete","href":"/api-reference/messages/delete_multi"}]},{"group":"Data Sources","pages":[{"title":"Source properties","href":"/api-reference/data-sources/properties-reference"},{"title":"Upload a File","api":"POST https://app.gptchatbot.it/api/v1/chatbot/{uuid}/data-source/upload","href":"/api-reference/data-sources/create-file"},{"title":"Create QA Source","api":"POST https://app.gptchatbot.it/api/v1/chatbot/{uuid}/data-source/qa","href":"/api-reference/data-sources/create-qa"},{"title":"Create URL Source","api":"POST https://app.gptchatbot.it/api/v1/chatbot/{uuid}/data-source/url","href":"/api-reference/data-sources/create-url"},{"title":"Update Source","api":"POST https://app.gptchatbot.it/api/v1/data-source/{uuid}/update","href":"/api-reference/data-sources/update"},{"title":"Fetch list of Sources","api":"GET https://app.gptchatbot.it/api/v1/chatbot/{uuid}/data-sources","href":"/api-reference/data-sources/fetch_multi"},{"title":"Retrain Sources","api":"POST https://app.gptchatbot.it/api/v1/data-sources/url/re-scrape","href":"/api-reference/data-sources/retrain"},{"title":"Delete Source","api":"POST https://app.gptchatbot.it/api/v1/data-source/{uuid}/delete","href":"/api-reference/data-sources/delete"},{"title":"Delete multiple Sources","api":"POST https://app.gptchatbot.it/api/v1/data-sources/delete","href":"/api-reference/data-sources/delete_multi"}]},{"group":"Data Source Tags","pages":[{"title":"Create Source Tag","api":"POST https://app.gptchatbot.it/api/v1/chatbot/\u003cuuid>/source-tag/create","href":"/api-reference/source-tags/create"},{"title":"Fetch all Source Tags","api":"GET https://app.gptchatbot.it/api/v1/chatbot/\u003cuuid>/source-tags","href":"/api-reference/source-tags/fetch-multi"},{"title":"Update Source Tag","api":"POST https://app.gptchatbot.it/api/v1/source-tag/\u003cuuid>/update","href":"/api-reference/source-tags/update"},{"title":"Delete Source Tag","api":"DELETE https://app.gptchatbot.it/api/v1/source-tag/{uuid}/delete","href":"/api-reference/source-tags/delete"}]}]},{"anchor":"Tools","icon":"gear","pages":[{"title":"Tools","href":"/tools/tools-intro"}]}]},"basePath":"","title":"Getting a GPT Chatbot API Key - GPT Chatbot API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DXXFP6nH.js","DynamicMarkdown-B54_zNBF.js","zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}