> 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/exchange/api-and-developer-docs/generate-api-keys-for-backpack-exchange.md).

# Generate API keys for Backpack Exchange

{% hint style="info" %}
**API key creation is currently supported on the web only.**
{% endhint %}

Open [**Backpack Exchange**](https://backpack.exchange/) and log in before following the steps below.

> New to Backpack? [Create an account](/exchange/exchange-account/create-a-new-account/how-to-create-an-account-on-the-web.md) to get started.

#### 1. Go to **Settings** → **API Keys**, then click **New API Key**.

<figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FIF43oz49iHhZfl3zUeBW%2Fimage.png?alt=media&#x26;token=7680544c-d853-4432-bbf8-593644766c5a" alt=""><figcaption></figcaption></figure>

#### 2. Enter a name for the key, choose the sub-account, and click **Create** to finish.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FXejwBF5umwjOCbgf9n77%2Fimage.png?alt=media&#x26;token=564f3981-7246-476e-8dd2-3c13dcae731d" alt="" width="307"><figcaption></figcaption></figure></div>

> * **For most individual users, we recommend leaving the Public Key field blank. If you choose to provide a Public Key:**
>   * You must generate it yourself.
>   * It must follow the supported format and algorithm specified in our [API documentation.](https://docs.backpack.exchange/)
> * **The Read Only button restricts the API key’s permissions to view-only access.**

#### 3. Record your API key and API secret in a secure location.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FiksKzybEkCor2cZbZyQy%2Fimage.png?alt=media&#x26;token=913e67bc-be26-48fc-93d0-b9f5d7bd300e" 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 by asking a question.

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

```
GET https://support.backpack.exchange/exchange/api-and-developer-docs/generate-api-keys-for-backpack-exchange.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.
