> For the complete documentation index, see [llms.txt](https://docs.itradingbot.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.itradingbot.net/en/bybit-robot/creating-bybit-api-keys.md).

# Creating Bybit API keys

<mark style="color:$tint;">To manually connect your own Bybit account to the robot, create an API key on the exchange's website and link it to the ITradingBot app. You get API Key and API Secret they'll need to be inserted into the robot's settings.</mark>

<mark style="color:$tint;">If you log in to your main account via the Basic button when you go to Bybit, use the account log in instructions. —</mark> [<mark style="color:$tint;">Account connection instructions</mark>](/en/bybit-robot/bybit-robot-connecting-your-own-account.md) <mark style="color:$tint;">For an Exchange Account created within ITradingBot, a separate manual pair is not required to run the robot.</mark>

### Set up an account

<mark style="color:$tint;">Open the Bybit website and log in to the account you want to connect to. If you connect a sub-account, create a key for it. Set up two-factor Bybit protection: you'll need confirmation when you create it.</mark>

<mark style="color:$tint;">Bybit indicates that keys are created through the site; the exchange app does not have this feature. For a new user, the creation of a key may be restricted within the first 48 hours after registration. This restriction applies to the manual creation of the key described in the official Bybit reference. —</mark> [<mark style="color:$tint;">official reference of Bybit</mark>](https://www.bybit.com/en/help-center/article/How-to-create-your-API-key)

<mark style="color:$tint;">F</mark><mark style="color:$tint;">**or**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">a FREE robot, one of two conditions is sufficient: an account is registered via the ITradingBot referral link or an ITradingBot application is selected when creating the API key. —</mark> [<mark style="color:$tint;">Referral link to ITradingBot</mark>](https://partner.bybit.com/b/ITRADINGBOT) <mark style="color:$tint;">The second option is described below.</mark>

### Create a key and select ITradingBot

1. <mark style="color:$tint;">Open</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**The API**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">Manager on Bybit or select the API from the Exchange Profile menu. —</mark> [<mark style="color:$tint;">Manage the API on Bybit</mark>](https://www.bybit.com/app/user/api-management)
2. <mark style="color:$tint;">Click on Create a new key .</mark>
3. <mark style="color:$tint;">Select the system-generated API keys.</mark>
4. <mark style="color:$tint;">Select Connect to Third-Party Applications (Connect to Third-Party Applications) to assign the key.</mark>
5. <mark style="color:$tint;">In the list of applications, find and select ITradingBot. A simple key name ITradingBot is not enough: the application needs to be selected from a separate list.</mark>
6. <mark style="color:$tint;">Please specify a clear name of the key to distinguish it from other connections.</mark>

<mark style="color:$tint;">Check that the ITradingBot app is selected. If it is not listed or if the form requires additional settings, save the message text without keys and contact ITradingBot support. —</mark> [<mark style="color:$tint;">support for ITradingBot</mark>](https://t.me/ITradingBot_Support)

### Set the permissions

<mark style="color:$tint;">In the API permissions, select</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**Read and record**</mark><mark style="color:$tint;">. Reading alone is not enough to send and change trading orders.</mark>

<mark style="color:$tint;">Select the Unified Trading Account group and check the items you selected:</mark>

* <mark style="color:$tint;">**Contract → Order**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">reading, creating, modifying and cancelling orders on derivatives.</mark>
* <mark style="color:$tint;">**Contract → Position**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">reading position and access to its settings, including leverage and margin.</mark>
* USDC contracts → Trade in derivatives of USDC.
* I'm not going to trade.

<mark style="color:$tint;">These buttons are right on the key side of Bybit. They don't add a trading robot or a function to themselves. Do not include withdrawals, asset transfers or block trades for this procedure.</mark>

### Confirm the creation and keep it secret

1. <mark style="color:$tint;">Click Send .</mark>
2. <mark style="color:$tint;">Pass the security check on Bybit the way the exchange offers.</mark>
3. <mark style="color:$tint;">In the result window, copy the</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**API Key**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">and</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**API Secret**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">to a secure location. The secret must be kept immediately: once the window is closed, it cannot be retrieved.</mark>
4. <mark style="color:$tint;">Close the confirmation window and check that the new key appears in the list of links to ITradingBot.</mark>

<mark style="color:$tint;">Do not send the key and secret to Telegram or support or include them in screenshots. If the secret is lost, create a new pair; before you retrieve the old key, check which connections use it.</mark>

### Add the key to the robot

1. <mark style="color:$tint;">Go back to ITradingBot and manually connect to Bybit. —</mark> [<mark style="color:$tint;">How to connect to Bybit</mark>](/en/bybit-robot/bybit-robot-connecting-your-own-account.md)
2. <mark style="color:$tint;">In the settings of the robot without a key connected, click Add API → Sub Account.</mark>
3. <mark style="color:$tint;">Put the key in the</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**API Key**</mark><mark style="color:$tint;">, and the secret in the</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**Api Secret**</mark><mark style="color:$tint;">, then click Add.</mark>
4. <mark style="color:$tint;">Wait for the settings update. If ITradingBot shows an error, check the key/secret pair, the selected application and the trading permissions. The connection is not complete while the error remains.</mark>

<mark style="color:$tint;">Do not remove the active key just to verify this instruction. The API connection and the robot launch are done separately: before Start, check the settings and prepare the tasks.</mark>
