docs/content/Extensions/api-key-guide.mdx
DocsGPT API keys are essential for developers and users who wish to integrate the DocsGPT models into external applications, such as our widget. This guide will walk you through the steps of obtaining an API key, starting from uploading your document to understanding the key variables associated with API keys.
After uploading your document, you can obtain an API key either through the graphical user interface or via an API call:
/api/create_agent endpoint to create a new agent. An API key is automatically generated for each agent. For detailed instructions, visit DocsGPT API Documentation.Upon creating your agent, you will encounter several key variables. Each serves a specific purpose:
/api/get_agents.With your API key ready, you can now integrate DocsGPT into your application, such as the DocsGPT Widget or any other software, via /api/answer or /stream endpoints. The source document is preset with the agent, allowing you to bypass fields like selectDocs and active_docs during implementation.
Congratulations on taking the first step towards enhancing your applications with DocsGPT!