Messenger API
Everything the panel can do with a connected Telegram, WhatsApp or Instagram account, over REST — one key, one response shape, chapter by chapter.
Leads
Leads captured by rules and AI, with status, score, tags and summary.
Leads are created by lead rules and the AI; account_id is the Telegram channel id, peer_id the customer.
Base URL: https://chatvendor.net/api/v1 · every response is {"success": true, "data": …}
GET
/leads
List leads
leads:read
Scope: leads:read
Parameters
statusquery · stringqquery · stringResponse 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
Scope: leads:write
Body (application/json)
account_idstringrequiredpeer_idintegerrequiredamountnumbersourcestringtitlestringstatusstringtagsstring[]scoreintegernotesstringResponse 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
Scope: leads:read
Parameters
leadIdpath · integerrequiredLead id
Response 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
Scope: leads:write
Parameters
leadIdpath · integerrequiredLead id
Response 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
Scope: leads:write
Parameters
leadIdpath · integerrequiredLead id
Response 200
OK
curl -X DELETE https://chatvendor.net/api/v1/leads/42 \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"