# Connect API

After completing account registration on XAPY, you can now connect crypto exchanges to XAPY using the API key obtained previously. You can review how to get API Keys on the exchanges[ -> here](/integration/generate-api-key.md)

1. Access the Profile/Settings section

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

2. Go to the "API keys" and "add" the exchanges you have to XAPY.

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

3. Select the exchange, then enter the API key and Secret key (*Note: Some exchanges require a passphrase for the API, don't forget to enter it in the "Passphrase" field on XAPY*).

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

4. Click "Save Keys" and you have successfully connected the exchange to XAPY.
5. API Key Management.

* \[**Button UPDATE**] You can change (update) previously connected API keys (if you have changed the API keys on the exchange side).
* \[**Button Enable**] You can disconnect from exchanges if you do not want to connect them to XAPY (in case that exchange <mark style="color:red;">still has open positions</mark>, you will not be able to disconnect until all positions on that exchange are <mark style="color:green;">completely closed</mark>).
* \[**Button REMOVE**] Similar to the Enable button, when you want to delete an API key, please close all positions related to that exchange (for exchanges that are hedging). At this point, the exchange has been completely removed from the XAPY platform.


---

# 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/connect-api.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.
