# Bybit

1. Log in to your Bybit account.
2. Navigate to **My Profile** > **Account & Security** > **API Management**.
3. Select **Create New Key**.
4. On the **Select Your API Key Type** dialog, select **System-generated API Keys** to open a **Create New Key** page.

<figure><img src="/files/bgMO7MY2XRu1GmYURJl1" alt=""><figcaption></figcaption></figure>

On the **Create New Key** page, fill in all required fields as follows:

* In the **API Key Usage** section, select **API Transaction**
* Enter a name for the API key.
* In the **API Key Permissions** section, select the options **Read-Write** and **Only IPs with permissions granted are allowed to access the OpenAPI**, and enter XAPY’s IP address [-> View Here](https://app.xapy.io)

<figure><img src="/files/06XNPP7bpKzqNV0kPoFC" alt=""><figcaption></figcaption></figure>

Next -> In the **Asset** section, select the following options under **Read-Write**:

* Account Transfer
* Withdrawal
* Exchange History

<figure><img src="/files/hLnGIadMSCD0BM8Uepi6" alt=""><figcaption></figcaption></figure>

5. Click **Submit** to generate the API key

You have now generated and set up an API Key. You can go to XAPY platform to link your Bybit account with the API key and API secret key

**Below is a step-by-step illustration video.**

{% embed url="<https://www.youtube.com/watch?v=YLKkwbPsWfY>" %}


---

# Agent Instructions: 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:

```
GET https://docs.xapy.io/integration/generate-api-key/bybit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
