Decline an incoming lead
Reject an incoming chat as spam, the Decline button in the chat.
POST https://cotlet.dev/api/v1/kommo/chats/{chat_id}/incoming-lead/decline
write Confirm
Declines the chat as the Decline button does, which Kommo meant for spam, and returns its status. The chat leaves the Incoming leads queue and Cotlet has no call to bring it back. Nothing is sent to the sender. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| chat_id string required | string | Chat ID from list_conversations or list_incoming_leads. |
Request
curl -X POST https://cotlet.dev/api/v1/kommo/chats/chat_8c41d2/incoming-lead/decline \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("kommo", "decline_incoming_lead", {"chat_id":"chat_8c41d2"}) const result = await cotlet.call('kommo', 'decline_incoming_lead', {"chat_id":"chat_8c41d2"}); cotlet call kommo decline_incoming_lead --data '{"chat_id":"chat_8c41d2"}' Example response
{
"chat_id": "c1d7e9a3",
"status": "declined"
}