> For the complete documentation index, see [llms.txt](https://doc.mantago.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.mantago.cc/mantago-en/faq/how-to-get-a-token.md).

# How to Get a Token

## How to Obtain an API Token？

Each MantaGO bot has its own API Token and Secret Key.

### Method 1: Retrieve from the MantaGO Dashboard

1. Go to the Bot Dashboard
2. Click **Settings**
3. Select **Advanced Settings**
4. Click **API Integration Settings**
5. If the API Token or Secret Key is empty, click **Refresh**
6. Copy the API Token and Secret Key for the selected bot

***

If the token expires (valid for 30 days), you can either:

* Generate a new token from the MantaGO Dashboard, or
* Use the expired Token and Secret Key to refresh the credentials through the API endpoint below.

{% content-ref url="/pages/Aa1NJieGiNxn5LGBURyS" %}
[Generate Open API Token & Secret Key](/mantago-en/generate-open-api-token-and-secret-key.md)
{% endcontent-ref %}

{% hint style="info" %}
Each bot only has one API Token and Secret Key pair.\
Please store them securely.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.mantago.cc/mantago-en/faq/how-to-get-a-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
