Asosiy qismga o'tish
ChatVendor ChatVendor

Messenjer API

Panel ulangan Telegram, WhatsApp yoki Instagram akkaunt bilan qila oladigan hamma narsa — REST orqali: bitta kalit, bitta javob formati, bo'limma-bo'lim.

Lidlar

Qoidalar va AI yig'gan lidlar: holat, ball, teglar va xulosa.

Lidlarni lid qoidalari va AI yaratadi; account_id — Telegram kanal id, peer_id — mijoz.

Base URL: https://chatvendor.net/api/v1 · har javob {"success": true, "data": …}

GET /leads List leads

Ruxsat: leads:read

Parametrlar

statusquery · string
qquery · string

Javob 200 · Lead[]

id integeraccount_id integerpeer_id integertitle stringusername stringphone stringstatus stringscore integertags string[]summary stringdata objectlast_message_at string (date-time)

curl https://chatvendor.net/api/v1/leads \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST /leads Create a lead (account_id may be a channel reference such as wa_12); amount = deal value for the pipeline

Ruxsat: leads:write

So'rov tanasi (application/json)

account_idstringmajburiy
peer_idintegermajburiy
amountnumber
sourcestring
titlestring
statusstring
tagsstring[]
scoreinteger
notesstring

Javob 200 · Lead

id integeraccount_id integerpeer_id integertitle stringusername stringphone stringstatus stringscore integertags string[]summary stringdata objectlast_message_at string (date-time)

curl -X POST https://chatvendor.net/api/v1/leads \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"account_id":"…","peer_id":1}'
GET /leads/{leadId} One lead

Ruxsat: leads:read

Parametrlar

leadIdpath · integermajburiy

Lead id

Javob 200 · Lead

id integeraccount_id integerpeer_id integertitle stringusername stringphone stringstatus stringscore integertags string[]summary stringdata objectlast_message_at string (date-time)

curl https://chatvendor.net/api/v1/leads/42 \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
PATCH /leads/{leadId} Update a lead

Ruxsat: leads:write

Parametrlar

leadIdpath · integermajburiy

Lead id

Javob 200 · Lead

id integeraccount_id integerpeer_id integertitle stringusername stringphone stringstatus stringscore integertags string[]summary stringdata objectlast_message_at string (date-time)

curl -X PATCH https://chatvendor.net/api/v1/leads/42 \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
DELETE /leads/{leadId} Delete a lead

Ruxsat: leads:write

Parametrlar

leadIdpath · integermajburiy

Lead id

Javob 200

OK

curl -X DELETE https://chatvendor.net/api/v1/leads/42 \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"