Close a chat
POST /v1/contacts/{id}/close
Closes the contact’s chat.
Needs chats:write.
Path parameters
Section titled “Path parameters”id string · uuid
The contact’s ID.
Headers
Section titled “Headers”After it closes
Section titled “After it closes”The bot answers the customer again, even if an agent is still assigned. The chat opens again when the customer writes, or with POST /v1/contacts/{id}/reopen.
Closing twice
Section titled “Closing twice”Closing a closed chat changes nothing and still returns 200. chat.closed is sent only if the chat was open. The request takes no body: send none, or {}.
Returns
Section titled “Returns”200 The chat object. The chat as it is now. contact is null unless your key also has contacts:read.
Errors
Section titled “Errors”Besides the ones every request can get:
422
idempotency_mismatchThe Idempotency-Key was used before for a different request, or by another of your API keys.