# 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: 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/mantago-en/faq/how-to-get-a-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.
