> 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/create-an-api-access-token.md). Agents can also search and read this documentation through its [MCP server](https://help.impact.com/~gitbook/mcp).

# 创建 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 %}

## 创建访问令牌

{% stepper %}
{% step %}

### 前往令牌页面

{% 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).
3. 在右上角，选择 **创建访问令牌**.
   {% 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).
3. 在右上角，选择 **创建访问令牌**.
   {% 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).
3. 在右上角，选择 **创建访问令牌**.
   {% endtab %}
   {% endtabs %}
   {% endstep %}

{% step %}

### 完成 *设置* 选项卡

1. 输入合适的 *令牌名称*.
2. 添加 *描述* 说明令牌用途，以便日后查阅。
3. 指定令牌兼容的 *API 版本* 。
   * 建议使用最新的 API 版本，该版本也是默认选项。
4. 选择 **下一步**.

<div data-with-frame="true"><figure><img src="https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2FO7fZMGLWRibQ24QrwrqC%2Fapi-token-setup.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### 完成 *联系信息* 选项卡

1. 从下拉菜单中选择 *主要联系人* 来自 ![](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) **\[下拉菜单]**.
   * 我们会联系您的主要联系人，告知开发相关更新。
2. 您也可以为 *开发者* 添加电子邮件地址，以便他们了解与访问令牌相关的更新。
   * 为非账户用户的开发者创建令牌时，这项功能会很实用。
3. 选择 **下一步**.

<div data-with-frame="true"><figure><img src="https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2FZu2cl9hKIprnKmoxGrR8%2Fapi-token-contact-information.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### 完成 *范围* 选项卡

1. ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fgit-blob-d0b6669ae76a7bef06a8d6940d7ad5c16bb8d018%2F7cb018d4face8d7cceb880eb5086c812e764fbcfe6f2a0377f88bc7576973070.svg?alt=media) **\[已开启的切换开关]** 所选 API 范围类别。
2. 选中 ![](https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fh0OULE2tvtCDzA3mEcsh%2Fcheckbox%20unchecked.svg?alt=media\&token=13905af1-bbd5-46a2-b74d-d721b96fbf38) **\[复选框]** 以选择要允许用于 API 令牌的访问范围。
   * 要清除所有范围，请选择 **全部清除** （位于右上角）。
3. 要完成令牌配置，请在左下角选择 **创建**.

<div data-with-frame="true"><figure><img src="https://2499487857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRN1rcrim887TwHLBjac%2Fuploads%2Fies2Nhu000vvdqYVzcbn%2FScreenshot%202026-11-12%20at%2012.30.11%E2%80%AFPM.png?alt=media&amp;token=dc4f2ea8-f5a2-49b2-bc67-965352193153" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

## 其他资源

* [管理 API 访问令牌](https://help.impact.com/other/zh/reference-documentation/api-access-tokens/manage-your-api-access-tokens.md) — 了解如何查找、编辑、复制、停用或删除访问令牌，以及如何复制其 API 凭据。
* [确保访问令牌安全](https://help.impact.com/other/zh/reference-documentation/api-access-tokens/keep-your-access-tokens-secure.md) — 获取有关存储、共享、轮换访问令牌以及限制其访问范围的建议。
* [品牌 API 参考](https://integrations.impact.com/brand-api-reference/) — 查看品牌可用的端点。
* [合作伙伴 API 参考](https://integrations.impact.com/partner-api-reference/) — 查看合作伙伴可用的端点。
* [代理机构 API 参考](https://integrations.impact.com/agency-v3/) — 查看代理机构可用的端点。


---

# 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/create-an-api-access-token.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.
