> 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/agency/zh/what-would-you-like-to-learn-about/account-settings/api-tokens/create-api-access-tokens-as-an-agency.md).

# 作为代理机构创建 API 访问令牌

按照以下步骤创建新的 API 令牌并为该令牌配置访问范围。阅读一些关于如何 [安全地保管你的访问令牌](/other/zh/reference-documentation/api-access-tokens-and-changelog/keep-your-access-tokens-secure.md).

{% hint style="info" %}
**注：** 访问 impact.com 的 [集成门户](https://integrations.impact.com/impact-agency/reference/overview-1) 查看 API 参考文档、集成指南等。
{% endhint %}

#### 创建访问令牌

1. 在左侧导航菜单中，选择 ![](https://1116869774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTNfAIjBtFchXJ9pC2q%2Fuploads%2Fgit-blob-2353e6dbc5652c0304edc7da554b01277ad88839%2F380bebd18697484deff243a63d0ed3fda5b8b3ae7a5d1da26278c64764d33cd9.svg?alt=media) **\[菜单]** → **设置**.
2. 在 *账户* 列中，导航到 *技术*，然后选择 **平台 REST Web 服务**.
3. 通过选择以下内容创建新令牌 **创建访问令牌** 位于页面右上角。

#### 创建令牌

<details>

<summary>1. 设置</summary>

* 在 **令牌名称** 文本字段中输入合适的名称。
* 添加一个 **说明** 用于描述该令牌用途，以便日后参考。
* 指定 **API 版本** 该令牌将兼容的 API 版本。我们建议使用最新的 API 版本，这也是默认选项。
* 选择 **下一步**.

  <div data-with-frame="true"><figure><img src="https://1116869774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTNfAIjBtFchXJ9pC2q%2Fuploads%2Fgit-blob-62d668ef403ad96413355d4252365f777ee2bd77%2F27f7be4e1e67a2277cd86ea134f106d54dac272af818264ed051e4da11e7a7c0.png?alt=media" alt=""><figcaption></figcaption></figure></div>

</details>

<details>

<summary>2. 联系信息</summary>

* 选择一个 **主要联系人** 从下拉菜单中。我们会就开发更新与主要联系人联系。
* 可选地，为需要了解与访问令牌相关更新的开发者添加电子邮件地址。这在为并非账户用户的开发者创建令牌时很方便。

  <div data-with-frame="true"><figure><img src="https://1116869774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTNfAIjBtFchXJ9pC2q%2Fuploads%2Fgit-blob-c0e22bf8dbadf0febcb4e0876a2e27ba9c11601c%2Fc74ae8bc7e7306841becdf55210e23393384325a6754ab8bebf53a72656115b1.png?alt=media" alt=""><figcaption></figcaption></figure></div>
* 选择 **下一步**.

</details>

<details>

<summary>3. API 范围</summary>

* 先打开一个 API 类别，然后勾选左侧复选框，选择要在 API 令牌上允许的访问范围。
* 您可以通过单击 **全部清除** 页面右上方的按钮来清除所有范围。

  <div data-with-frame="true"><figure><img src="https://1116869774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTNfAIjBtFchXJ9pC2q%2Fuploads%2Fgit-blob-fbe37ae532c52045515b549a72cdbdf52572ffd2%2F09a1c1600bb506bf3cf731e5a89ae7991c9b7f339096d6aa47c23a9e2daadef2.png?alt=media" alt=""><figcaption></figcaption></figure></div>

</details>

<details>

<summary>4. 选择“创建”</summary>

* 最后，选择 **创建** 位于页面右下角。

</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 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://help.impact.com/agency/zh/what-would-you-like-to-learn-about/account-settings/api-tokens/create-api-access-tokens-as-an-agency.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.
