document/content/openapi/intro.en.mdx
Starting with 4.15.0, FastGPT API documentation is generated automatically with zod-openapi (some legacy endpoints have not been migrated, so they are not shown). You can view the latest endpoint status by opening the API documentation URL. The manually edited endpoint descriptions in the left sidebar of this documentation are no longer updated.
FastGPT API documentation is split into two sets:
endpoint is your FastGPT access URL. Append the corresponding path to open the documentation.
{{endpoint}}/apidoc/devapi{{endpoint}}/apidoc/systemopenapiDev API:
System OpenAPI
FastGPT OpenAPI endpoints let you authenticate with an API Key to operate related FastGPT services and resources, such as calling app chat endpoints, uploading Knowledge Base data, and running search tests. For compatibility and security reasons, not all endpoints can be accessed with an API Key.
You can find API Keys in two places:
Account - API KeysApp - Publish Channels - API AccessAn API Key acts as the current account's access credential within the current team. In other words, any resource the account can access in that team can also be operated through the API Key.
Note: BaseURL is not an endpoint URL. It is the root URL for all endpoints, and requesting the BaseURL directly does nothing.
In OpenAPI, all endpoints authenticate through Header.Authorization.
baseUrl: "http://localhost:3000/api"
headers: {
Authorization: "Bearer {{apikey}}"
}