chat.closed
Sent when a chat is closed, in the app or over the API. Use it to stop showing the chat as open in your own tools.
Called Chat closed in the app. Part of the plan feature webhooks.chats. To subscribe over the API, the key needs chats:write.
What’s in data. Every event wraps it in the same envelope.
contact_id string · uuid
by object · nullable
Who closed the chat: a team member (type: user) or an API key (type: api_key).
Show 3 child attributesHide child attributes
by.type string
Who or what it was: a team member, an API key, the chatbot, the AI, an automation, a broadcast, the WhatsApp Business app or Soosh itself. More values may be added.
One of user api_key bot ai automation broadcast whatsapp_app system.
by.id string · uuid · nullable
The person, key or broadcast. null for actors without one, such as the chatbot.
by.name string
Handling it
Section titled “Handling it”- Answer with any
2xxwithin 10 seconds. Do the work after. - Check the signature first. Verify webhooks has the code.
- Subscribe with
POST /v1/webhooks,events: ["chat.closed"].