> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/other/zh/reference-documentation/api-access-tokens/manage-your-api-access-tokens.md).

# 管理 API 访问令牌

了解如何查找和管理 API 访问令牌，包括更新、升级和停用。具有以下角色的账户用户： *账户管理员* 或 *实施专员* 可以查看 API 访问令牌并启用 API 访问。

{% hint style="success" %}
**注意：** 了解用户管理在以下账户中的运作方式： [品牌](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/account-administration/account-settings/invite-and-manage-users/understanding-user-management-as-a-brand.md) 和 [合作伙伴](https://help.impact.com/partner/zh/ni-xiang-liao-jie-shen-me/account-management/account-settings/user-management.md) 账户。
{% endhint %}

## 查找访问令牌

{% tabs %}
{% tab title="品牌" %}

1. 在顶部导航栏中，选择 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fpmc2UIFakEHRS3pas1a0%2Fprofile.svg?alt=media\&token=87284fd9-5037-4062-ad5d-234b845664f5) **\[用户个人资料]** → **设置**.
2. 在左侧栏的 *技术*下，选择 [**API**](https://app.impact.com/secure/advertiser/api/fr/api-access-tokens-ui.ihtml).
   {% endtab %}

{% tab title="合作伙伴" %}

1. 在顶部导航栏中，选择 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fpmc2UIFakEHRS3pas1a0%2Fprofile.svg?alt=media\&token=87284fd9-5037-4062-ad5d-234b845664f5) **\[用户个人资料] → 设置**.
2. 在 *技术*下，选择 [**API**](https://app.impact.com/secure/mediapartner/api/fr/api-access-tokens-ui.ihtml).
   {% endtab %}

{% tab title="代理机构" %}

1. 在左侧导航菜单中，选择 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2FhhRi7t6Z1dyhZkjaKAIa%2Fmenu-icon.svg?alt=media) **\[菜单]** → **设置**.

2. 在左侧栏的 *技术*下，选择 [**API**](https://app.impact.com/secure/agency/api/fr/api-access-tokens-ui.ihtml).
   {% endtab %}
   {% endtabs %}

3. 也可以使用页面顶部的搜索框和筛选条件查找特定令牌。

<details>

<summary>筛选条件参考</summary>

| 筛选条件  | 说明                                               |
| ----- | ------------------------------------------------ |
| 按名称搜索 | 输入要查看的令牌名称的全部或部分内容。                              |
| 创建时间  | 选择要查看的令牌创建时间范围： *过去 7 天*, *过去 30 天*或 *超过 30 天前*. |
| 状态    | 指定要查看的令牌状态： *已启用* 或 *已停用*.                       |
| 令牌类型  | 指定要查看 *API* 还是 *MCP* 访问令牌。                       |

如需重置筛选条件，请选择 **全部清除**.

</details>

### 获取 API 凭证

1. 在令牌页面上，选择一个访问令牌卡片以打开其详细信息。
2. 在左侧标签菜单中，选择 **凭证**.
3. 你将看到以下凭证：
   * 帐户 SID — 在某些情况下，这也是你的 *用户名*
   * 身份验证令牌 — 在某些情况下，这也是你的 *密码*
4. **复制** 所需的凭证。

### 复制、重置、升级、停用或删除访问令牌

1. 在令牌页面上，将鼠标悬停在访问令牌卡片上，然后选择 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2FwzfZiinBtQRPHXa33XSd%2Fmore-icon.svg?alt=media) **\[更多]**.
2. 从 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fk9PIWrktatpMwYhyhsGs%2FDrop-down%20menu.svg?alt=media\&token=cde79b1c-bacf-40b0-9ef1-f72655376179) **\[下拉菜单]中选择一个选项。**
   * 如需了解更多详情，请参阅下方的 *选项参考* 。

<details>

<summary>选项参考</summary>

| 选项   | 说明                                                                           |
| ---- | ---------------------------------------------------------------------------- |
| 复制   | 创建具有相同访问权限和设置的令牌副本。                                                          |
| 重置   | 重置令牌。系统将生成新的 API 令牌，并更改身份验证令牌值。请务必将新的身份验证令牌值添加到所有现有集成中，因为旧的身份验证令牌值将无法通过授权检查。 |
| 升级版本 | 更新令牌兼容的 API 版本。                                                              |
| 停用   | 停用令牌，使其无法用于身份验证。此操作会立即生效。                                                    |
| 删除   | 永久移除令牌。此操作会立即生效。                                                             |

</details>

### 编辑现有访问令牌

1. 在令牌页面上，选择一个访问令牌卡片。
2. 使用左侧菜单切换令牌的各个标签页。
   1. 有关要编辑字段的详细信息，请参阅 [创建 API 访问令牌](https://help.impact.com/other/zh/reference-documentation/api-access-tokens/create-an-api-access-token.md) 。
3. 编辑完令牌后，选择 **更新** （位于左下角）。
4. 再次选择 **更新** 以确认保存更改。

## 管理旧版令牌

2025 年 4 月之前创建的所有 API 令牌都视为旧版令牌。

{% hint style="info" %}
**提示：** 如果您需要使用旧版 API 令牌，请选择 **启用旧版令牌** （位于右上角）。选择此按钮后，该按钮会消失，并会显示一张 *旧版账户令牌* 卡片。
{% endhint %}

1. 在令牌页面上，将鼠标悬停在 *旧版账户令牌* 卡片上，然后选择 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2FwzfZiinBtQRPHXa33XSd%2Fmore-icon.svg?alt=media) **\[更多]。**
2. 从 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fk9PIWrktatpMwYhyhsGs%2FDrop-down%20menu.svg?alt=media\&token=cde79b1c-bacf-40b0-9ef1-f72655376179) **\[下拉菜单]中选择一个选项。**
   * 有关详细信息，请参阅下文的 *旧版选项参考* 。

<details>

<summary>旧版选项参考</summary>

| 选项      | 说明                                                                                |
| ------- | --------------------------------------------------------------------------------- |
| 重置（读/写） | 重置读/写令牌。这将生成一个新的 API 令牌，并更改身份验证令牌值。请务必将新的身份验证令牌值添加到所有现有集成中，因为之前的身份验证令牌值将无法通过授权检查。 |
| 重置（只读）  | 重置只读令牌。这将生成一个新的 API 令牌，并更改身份验证令牌值。请务必将新的身份验证令牌值添加到所有现有集成中，因为之前的身份验证令牌值将无法通过授权检查。  |
| 升级版本    | 您可能可以升级旧版 API 令牌的版本。                                                              |

</details>


---

# 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://help.impact.com/other/zh/reference-documentation/api-access-tokens/manage-your-api-access-tokens.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.
