> For the complete documentation index, see [llms.txt](https://e-bot.card2k.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://e-bot.card2k.com/huong-dan-setup/cau-hinh-bot/cau-hinh-nap-the-cao/tao-api-ket-noi.md).

# Tạo API kết nối

{% hint style="success" %}
Bot được quản lý và chịu trách nhiệm trực tiếp bởi đơn vị [Card2K](https://card2k.com/) !!
{% endhint %}

Bạn cần tạo tài khoản và lấy thông tin API Key để Bot có thể kết nối với hệ thống nạp thẻ.

> 1. **Tạo Tài khoản**: Truy cập website đổi thẻ cào: [Card2K.com](https://card2k.com/register).

<figure><img src="/files/cW6IqFHfpVTTk55xROfZ" alt=""><figcaption><p>Đăng ký tài khoản</p></figcaption></figure>

> 2. **Tạo Kết nối API**: Vào trang [Kết nối API](https://card2k.com/partner)
> 3. **Hành động**: Chọn "Thêm kết nối mới"&#x20;
> 4. **Hành động**: Chọn loại "Đổi thẻ cào" -> "Tạo kết nối".

<figure><img src="/files/wZDmWvQFdaX21t0jlndZ" alt=""><figcaption><p>Mở menu khởi tạo API</p></figcaption></figure>

<figure><img src="/files/4welUz3QLLiVLzNHapxU" alt=""><figcaption><p>Chọn loại API</p></figcaption></figure>

<figure><img src="/files/NGDGB4b8yW8JM1WrayiM" alt=""><figcaption><p>Chọn loại API "Đổi thẻ cào"</p></figcaption></figure>

<figure><img src="/files/Cdxwpn8WPpHkxQuqvYEP" alt=""><figcaption><p>Tạo kết nối</p></figcaption></figure>

<figure><img src="/files/QuIjuusya5uBjXC7o9RF" alt=""><figcaption><p>Tạo API thành công</p></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://e-bot.card2k.com/huong-dan-setup/cau-hinh-bot/cau-hinh-nap-the-cao/tao-api-ket-noi.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.
