> For the complete documentation index, see [llms.txt](https://helpv3.ladipage.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpv3.ladipage.vn/form-data/cac-buoc-cai-dat-luu-data/luu-data-ve-lark-base/cach-tao-app-va-lay-cac-thong-tin-ket-noi-cua-lark-base.md).

# Cách tạo app và lấy các thông tin kết nối của Lark Base

## Khởi tạo custom app và lấy thông tin app\_id, app\_secret,

1. Truy cập [Lark Developer](https://open.larksuite.com/) và chọn Create Custom App

{% embed url="<https://prnt.sc/Mua9Dedjvjsv>" %}

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

2. Nhập Name, Description và Icon cho App sau đó bấm Create để tạo

{% embed url="<https://prnt.sc/YaD_NaREpHUW>" %}

<figure><img src="/files/PY7eg7xJR6ddBBvKb1gr" alt=""><figcaption><p>Giao diện sau khi tạo app thành công </p></figcaption></figure>

3. Tại mục Credentials & Basic Info lưu lại thông tin **App ID và App Secret**

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

{% embed url="<https://prnt.sc/EPEK4ddpW9y1>" %}

4. Truy cập mục Permissions & Scopes để cấp quyền cho App
5. Tại mục API Scopes / Manage scopes chọn Docs và chọn Scope name:\
   \- View, comment, edit and manage Base (bitable:app)\
   \- View, comment, and export Base (bitable:app:readonly)\
   sau đó bấm chọn **Add in Bulk.**

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

6. Chọn Confirm and go to create app version để xác nhận và gửi yêu cầu publish app.

{% embed url="<https://prnt.sc/jQfgfZS6nlum>" %}

7. Nhập thông tin phiên bản app (App version / Update Notes) và bấm Save để gửi yêu cầu review app. Bấm **Submit for release**

{% embed url="<https://prnt.sc/-38dw_dEzufn>" %}

{% embed url="<https://prnt.sc/G2vyYoMonuap>" %}

{% embed url="<https://prnt.sc/81JuC9MsGp_y>" %}

8. Truy cập [Lark Admin](https://www.larksuite.com/admin) và chọn mục Workplace / App Review để tiến hành duyệt app.
9. Chọn App cần duyệt và bấm Approve để duyệt app.

{% embed url="<https://prnt.sc/yR232D33CzUt>" %}

## Khởi tạo Base và lấy  app token

1. Truy cập Lark Docs và chọn New / Base

{% embed url="<https://prnt.sc/8cruWmFpN_75>" %}

{% embed url="<https://prnt.sc/5_rFgeRMN31K>" %}

Lấy **app\_token** từ đường dẫn tới Base (phần app\_token là text từ sau chữ base, đến trước chữ table)

{% embed url="<https://prnt.sc/sr5iCmYuGNxx>" %}
Ví dụ về 1 đường dẫn&#x20;
{% endembed %}

Để có thể đọc ghi được dữ liệu khi kết nối cần cấp quyền Edit cho thành viên trong tổ chức. Bấm Share và chọn People in the organization with the link can edit

<figure><img src="https://lh7-us.googleusercontent.com/Pat_jrOc0h_luuZLBIoCs8Ye88gZM8MF98LBBen8bTSssxQxYm5o-MMas-spoy0ivGdcuFLrj8NiD7bPhpilL0iyqo9vgZ3tmMot9AiJmDPk-3hrxXE-KGaz544z-_bHXT5ZT5ZWs_8XCo2nGffaTlw" alt=""><figcaption></figcaption></figure>
