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
leads:read
Ruxsat: leads:read
Parametrlar
statusquery · stringqquery · stringJavob 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
leads:write
Ruxsat: leads:write
So'rov tanasi (application/json)
account_idstringmajburiypeer_idintegermajburiyamountnumbersourcestringtitlestringstatusstringtagsstring[]scoreintegernotesstringJavob 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
leads:read
Ruxsat: leads:read
Parametrlar
leadIdpath · integermajburiyLead 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
leads:write
Ruxsat: leads:write
Parametrlar
leadIdpath · integermajburiyLead 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
leads:write
Ruxsat: leads:write
Parametrlar
leadIdpath · integermajburiyLead id
Javob 200
OK
curl -X DELETE https://chatvendor.net/api/v1/leads/42 \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"