> For the complete documentation index, see [llms.txt](https://support.backpack.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.backpack.exchange/support-docs/cn/jiao-yi-suo/api-yu-kai-fa-zhe-wen-dang/sheng-cheng-backpack-jiao-yi-suo-api-mi-yao.md).

# 生成 Backpack 交易所 API 密钥

{% hint style="info" %}
API 密钥目前仅支持在网页端创建。
{% endhint %}

#### 1. 前往 设置(**Settings) → API Keys**，然后点击 新建API Key(**New API Key)**

<figure><img src="/files/3ckWIMZT9HcnvqrLe4fU" alt=""><figcaption></figcaption></figure>

#### 2. 输入密钥名称，选择子账户，然后点击 创建(**Create)** 完成

<div align="left"><figure><img src="/files/m4XY7ke3LnpmMluRkPpU" alt="" width="307"><figcaption></figcaption></figure></div>

> * **对于大多数个人用户，我们建议将 公钥 (public Key)字段留空。如果您选择提供 公钥：**
>   * 您必须自行生成该密钥；
>   * 它必须符合我们 [API 文档](https://docs.backpack.exchange/)中指定的支持格式和算法。
> * &#x20;**只读(Read Only)** 按钮会将 API 密钥的权限限制为仅查看访问。

#### 3. 将您的 API key 和 API secret 记录并妥善保存在安全位置。

<div align="left"><figure><img src="/files/MIWzPH9PP6x4KzNBeCxT" alt="" width="302"><figcaption></figcaption></figure></div>


---

# 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://support.backpack.exchange/support-docs/cn/jiao-yi-suo/api-yu-kai-fa-zhe-wen-dang/sheng-cheng-backpack-jiao-yi-suo-api-mi-yao.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.
