Files
FastGPT/document/content/docs/use-cases/external-integration/openapi.en.mdx
T
Archer 4b24472106 docs(i18n): translate final 9 files in introduction directory (#6471)
* docs(i18n): translate batch 1

* docs(i18n): translate batch 2

* docs(i18n): translate batch 3 (20 files)

- openapi/: app, share
- faq/: all 8 files
- use-cases/: index, external-integration (5 files), app-cases (4 files)

Translated using North American style with natural, concise language.
Preserved MDX syntax, code blocks, images, and component imports.

* docs(i18n): translate protocol docs

* docs(i18n): translate introduction docs (part 1)

* docs(i18n): translate use-cases docs

* docs(i18n): translate introduction docs (part 2 - batch 1)

* docs(i18n): translate final 9 files

* fix(i18n): fix YAML and MDX syntax errors in translated files

- Add quotes to description with colon in submit_application_template.en.mdx
- Remove duplicate Chinese content in translate-subtitle-using-gpt.en.mdx
- Fix unclosed details tag issue

* docs(i18n): translate all meta.json navigation files

* fix(i18n): translate Chinese separators in meta.en.json files

* translate

* translate

* i18n

---------

Co-authored-by: archer <archer@archerdeMac-mini.local>
Co-authored-by: archer <545436317@qq.com>
2026-02-26 22:14:30 +08:00

38 lines
1.1 KiB
Plaintext

---
title: Access App via API
description: Access FastGPT app via API
---
import { Alert } from '@/components/docs/Alert';
In FastGPT, you can create multiple API keys for each app to access the app's API endpoints. Each key can only access one app. For complete endpoint documentation, [see the Chat API reference](/docs/openapi/intro).
## Get API Key
Go to App -> "API Access", then click "API Key" to create a key.
<Alert context="warning">
Keep your key safe. Once the dialog is closed, you cannot copy the key again -- you can only create a new key and copy it.
</Alert>
![](/imgs/fastgpt-api1.jpg)
<Alert icon="🍅" context="success">
Tip: For security, you can set a quota or expiration time to prevent key abuse.
</Alert>
## Replace Variables in Third-Party Apps
```bash
OPENAI_API_BASE_URL: http://localhost:3000/api (replace with your deployed domain)
OPENAI_API_KEY = the key obtained in the previous step
```
**[ChatGPT Next Web](https://github.com/Yidadaa/ChatGPT-Next-Web) Example:**
![](/imgs/chatgptnext.png)
**[ChatGPT Web](https://github.com/Chanzhaoyu/chatgpt-web) Example:**
![](/imgs/chatgptweb.png)