client.boards là kho dữ liệu cốt lõi cho CRM pipelines — leads, deals, tasks, hoặc bất kỳ dữ liệu có cấu trúc nào. Mỗi board có các trường tùy chỉnh và items. Board cũng có thể liên kết với Knowledge Hub để tìm kiếm bằng AI.
Để xem hướng dẫn chi tiết, tham khảo DataBoards trong SDK guide .
Schema
Board
Field Type Mô tả object_namestring? Định danh loại đối tượng idstring ID duy nhất của board organization_idstring Tổ chức sở hữu board này namestring Tên hiển thị của board descriptionstring? Mô tả tùy chọn workflow_idstring? ID workflow liên kết hiddenboolean? Board có bị ẩn hay không team_idsstring[]? Nhóm có quyền truy cập created_atstring ISO 8601 thời gian tạo updated_atstring ISO 8601 thời gian cập nhật
BoardField
Field Type Mô tả _idstring ID duy nhất của trường namestring Tên hiển thị của trường typestring Kiểu trường (text, number, date, select, v.v.) optionsobject[]? Cấu hình theo kiểu requiredboolean? Trường có bắt buộc không
Field Type Required Mô tả namestring ✓ Tên board descriptionstring Mô tả tùy chọn typestring Loại board fieldsobject[] Định nghĩa trường ban đầu team_idsstring[] ID nhóm có quyền truy cập show_idboolean Hiển thị cột ID
Methods
Board CRUD
Method TypeScript Python Mô tả List boards listlistDanh sách tất cả board Get board getgetLấy board theo ID Create board createcreateTạo board mới Update board updateupdateCập nhật tên/mô tả board Delete board deletedeleteXóa board Reorder boards reorderreorderThay đổi thứ tự hiển thị
Import / Export
Method TypeScript Python Mô tả Export CSV exportCsvexport_csvXuất tất cả items dưới dạng CSV Import CSV importCsvimport_csvNhập items từ file CSV Import Excel importExcelimport_excelNhập items từ file Excel Get import progress getImportProgressget_import_progressKiểm tra trạng thái import đang chạy
Fields
Method TypeScript Python Mô tả Create field createFieldcreate_fieldThêm cột vào board Update field updateFieldupdate_fieldSửa cấu hình trường Delete field deleteFielddelete_fieldXóa trường Reorder fields reorderFieldsreorder_fieldsThay đổi thứ tự cột Bulk update fields bulkUpdateFieldsbulk_update_fieldsCập nhật nhiều trường cùng lúc
Items
Method TypeScript Python Mô tả List items listItemslist_itemsDanh sách items có phân trang Get item getItemget_itemLấy một item Create item createItemcreate_itemThêm item vào board Update item updateItemupdate_itemCập nhật giá trị trường của item Delete item deleteItemdelete_itemXóa item Bulk delete bulkDeleteItemsbulk_delete_itemsXóa nhiều items theo ID Search searchsearchTìm kiếm toàn văn trong board Link items linkItemslink_itemsLiên kết item với item board khác Unlink items unlinkItemsunlink_itemsXóa liên kết giữa các items
Segments
Method TypeScript Python Mô tả List segments listSegmentslist_segmentsDanh sách các view filter đã lưu Create segment createSegmentcreate_segmentLưu filter thành segment Update segment updateSegmentupdate_segmentCập nhật filter của segment Delete segment deleteSegmentdelete_segmentXóa segment
list / list
const { data : boards } = await client . boards . list ( { limit: 20 } );
for ( const board of boards) {
console . log (board . id , board . name );
result = client.boards. list ( limit = 20 )
for board in result. get ( " data " , [] ):
print ( board [ " id " ] , board [ " name " ])
create / create
const board = await client . boards . create ( {
name: " Enterprise Leads " ,
description: " Leads from the enterprise segment " ,
{ name: " Company " , type: " text " },
{ name: " Deal Size " , type: " number " },
{ name: " Stage " , type: " select " , options: { choices: [ " Prospect " , " Qualified " , " Closed " ] } },
board = client.boards. create (
description = " Leads from the enterprise segment " ,
{ " name " : " Company " , " type " : " text " },
{ " name " : " Deal Size " , " type " : " number " },
{ " name " : " Stage " , " type " : " select " , " options " : { " choices " : [ " Prospect " , " Qualified " , " Closed " ] }},
createItem / create_item
Truyền một mảng fields với mỗi phần tử có board_field_id (_id của BoardField) và value tương ứng.
const item = await client . boards . createItem ( " board_id " , {
{ board_field_id: " field_id_company " , value: " Acme Corp " },
{ board_field_id: " field_id_deal_size " , value: 50000 },
{ board_field_id: " field_id_stage " , value: " Qualified " },
item = client.boards. create_item ( " board_id " , {
{ " board_field_id " : " field_id_company " , " value " : " Acme Corp " },
{ " board_field_id " : " field_id_deal_size " , " value " : 50000 },
{ " board_field_id " : " field_id_stage " , " value " : " Qualified " },
listItems / list_items
const page = await client . boards . listItems ( " board_id " , { limit: 50 , skip: 0 } );
console . log ( ` ${ page . data . length } of ${ page . total } items ` );
page = client.boards. list_items ( " board_id " , limit = 50 , skip = 0 )
print ( f " { len ( page [ ' data ' ]) } of {page [ ' total ' ] } items" )
search
Tìm kiếm toàn văn trong các items của board.
const results = await client . boards . search ( " board_id " , {
results = client.boards. search ( " board_id " , q = " Acme " , limit = 20 , offset = 0 )
importCsv / import_csv
const formData = new FormData ();
formData . append ( " file " , csvBlob, " leads.csv " );
const result = await client . boards . importCsv ( " board_id " , formData);
console . log ( ` Imported: ${ result . imported } , Errors: ${ result . errors } ` );
with open ( " leads.csv " , " rb " ) as f:
result = client.boards. import_csv ( " board_id " , files = { " file " : f} )
createField / create_field
const field = await client . boards . createField ( " board_id " , {
options: { choices: [ " Low " , " Medium " , " High " ] },
field = client.boards. create_field ( " board_id " , {
" options " : { " choices " : [ " Low " , " Medium " , " High " ] },