# 如何取得Token

## 如何取得 API Token？

MantaGO 每個 bot 專屬的 `API Token`及`Secret Key`。

方法一：從MantaGO後台

1. 進入 bot 主控台
2. 點選 『設定』
3. 點選 『進階設定』
4. 點選 『API串接設定』
5. 如果API Token跟API Secret為空白，點選刷新
6. 取得此 bot 的 API Token以及Secret Key。

若Token過期(效期30天)，可重新從MantaGO後台獲取，或是拿過期的Token和Secret Key 打API做換發，請參考以下換發文件:&#x20;

{% content-ref url="/pages/Aa1NJieGiNxn5LGBURyS" %}
[Open API Token與Secret Key換發](/open-api-token-yu-secret-key-huan-fa.md)
{% endcontent-ref %}

{% hint style="info" %}
每個bot僅有一組API Token和Secret Key，請妥善保存
{% endhint %}


---

# 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://doc.mantago.cc/chang-jian-wen-ti/ru-he-qu-de-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.
