> For the complete documentation index, see [llms.txt](https://hash7-gitbook.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hash7-gitbook.gitbook.io/en/user-guide/1.3-api-binding-tutorial/1.3.5-okx-api-binding-tutorial.md).

# 1.3.5 OKX API Binding Tutorial

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

**For security reasons, the API secret will be displayed only 1 time. After closing the window, the API will not be available. Make sure to save the key in a safe place.**

If you are already a registered user, then log in to your existing account on the exchange. If you don't have an account, you'll need to register first and pass KYC.&#x20;

Open the OKX app and tap on the menu icon in the upper left corner.&#x20;

<figure><img src="/files/5pIf1K5oJV32afQW4odG" alt="" width="375"><figcaption></figcaption></figure>

By scrolling a little down select "API".

<figure><img src="/files/b5qLPJEQZ3Otjb89ITEp" alt="" width="375"><figcaption></figcaption></figure>

Press on the "Create API key" button.&#x20;

<figure><img src="/files/lfFw3d5DiMdsrwQLoz6I" alt="" width="375"><figcaption></figcaption></figure>

In the "API name" field enter the name of your API key.&#x20;

In the "Purpose" field choose "API trading".

<figure><img src="/files/av8nu1pKu8IkGrSaBSoc" alt="" width="375"><figcaption></figcaption></figure>

Then open the HASH7 app. It the upper left corner press "Exchange".&#x20;

<figure><img src="/files/IEwReSh3Hkhjcqm5EWGu" alt="" width="375"><figcaption></figcaption></figure>

Select the OKX exchange and copy the IP-addresses.&#x20;

<figure><img src="/files/7JK50vGcKaK0M549nxIw" alt="" width="375"><figcaption></figcaption></figure>

Paste the copied IP-addresses in the "IP address allowist" field.&#x20;

<figure><img src="/files/cujqZcumuI6vF5iKQkAu" alt="" width="375"><figcaption></figcaption></figure>

In the "Permissions" section select "Trade".&#x20;

<figure><img src="/files/jEPo6vcvU3P5HSuiRpG5" alt="" width="375"><figcaption></figcaption></figure>

In the next section “Passphrase” specify your secret phrase and save it to a safe place.

*This section is required to view information and access the API. Keep it safe and create a new API key in case the passphrase is lost. The passphrase must include uppercase and lowercase letters and be 8-32 characters long. Spaces and special characters are not supported.*

<figure><img src="/files/QdYS8M8ihvXOgNgxXCMV" alt="" width="375"><figcaption></figcaption></figure>

Press on "Submit all".&#x20;

<figure><img src="/files/Wkn0Td1SZq86whgXeRbl" alt="" width="375"><figcaption></figcaption></figure>

To save the changes press on "Security verification".&#x20;

<figure><img src="/files/xl8Tmv0k4eEbESrID08C" alt="" width="375"><figcaption></figcaption></figure>

In the pop-up window press on "Show info".&#x20;

<figure><img src="/files/sRwgMvkR8btnXXZVsayz" alt="" width="375"><figcaption></figcaption></figure>

Next copy the API key and the secret key to a safe place.

<figure><img src="/files/zaPJt44tupNnNJNX2gzF" alt="" width="375"><figcaption></figcaption></figure>

Paste the copied keys into the corresponding fields in the Hash7 app and enter your secret phrase. To complete the process, click on the "Done" button.

<figure><img src="/files/SLp6KhSGivS2lGngUhIz" alt="" width="375"><figcaption></figcaption></figure>
