Skip to main content
POST
/
webhook
/
v1
/
data-sources
/
{dataSourceId}
/
records
Tạo bản ghi qua Webhook
curl --request POST \
  --url https://open.cleeksy.com/webhook/v1/data-sources/{dataSourceId}/records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": true,
  "data": {
    "recordId": "<string>"
  }
}

Sử dụng

Endpoint này nhận dữ liệu từ hệ thống bên ngoài thông qua webhook và tự động tạo bản ghi mới trong Data Source. Webhook URL có thể được cấu hình trong Data Source settings với whitelist IP để bảo mật.

Response

Sử dụng endpoint này để nhận dữ liệu realtime từ các hệ thống bên ngoài như CRM, ERP, hoặc các ứng dụng khác. Dữ liệu sẽ được map tự động theo cấu hình field mapping của Data Source.

Authorizations

Authorization
string
header
required

Bearer token để xác thực

Path Parameters

dataSourceId
string
required

ID của Data Source Webhook

Body

application/json

Dữ liệu từ webhook

Response

Thành công

success
boolean
data
object