> For the complete documentation index, see [llms.txt](https://docs.exoclick.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exoclick.com/api/zh/exoclick-gong-gong-api/api-ling-pai-yu-bearer-ling-pai.md).

# API 令牌与 Bearer 令牌

使用 ExoClick API 时，你会遇到两种身份验证令牌：API 令牌和 Bearer 令牌。了解它们之间的区别，对于安全、有效地使用 API 至关重要。

区别如下：

## API 令牌

* 永久有效，直到你将其停用或删除。
* 登录时用于通过 API 验证你的账户身份。
* 创建位置： [我的个人资料 > API 令牌](https://docs.exoclick.com/exoclick-docs/my-profile#api-tokens-tab).
* 创建时只会完整显示一次。请将其妥善保存。

## Bearer 令牌

* 临时有效，会在短时间后过期。
* 使用 API 令牌登录时签发。
* 随每个需要身份验证的请求发送，因此无需每次都发送 API 令牌。
* 由于有效期有限，它能提升安全性。

**简而言之：** API 令牌用于标识你的身份。Bearer 令牌是一种临时密钥，可让你安全地发送请求。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.exoclick.com/api/zh/exoclick-gong-gong-api/api-ling-pai-yu-bearer-ling-pai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
