# 如何取得 API Token？

當需要從您的伺服器呼叫 BotBonnie 的 API 時，必須帶著 BotBonnie 提供的 `API Token` 做來源安全性驗證，此 API 才會生效。

## 如何取得 API Token？

BotBonnie 提供每個 bot 專屬的 `API Token`。可進入 bot 主控台，點選「機器人設定 > 進階設定」，即可取得此 bot 的 `API Token`。

![](/files/-M2BzN5WrRmeFirg8c9_)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.botbonnie.com/chang-jian-wen-ti/ru-he-qu-de-api-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
