Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 1.65 KB

File metadata and controls

34 lines (26 loc) · 1.65 KB

Send Livechat Offline Message

Send the offline message when no agent is available to attend the omnichannel conversation.

HTTP MethodURLRequires Auth
POST/api/v1/livechat/offline.messageno

Body

KeyExample ValueDescription
name*Livechat VisitorMessage name.
email*visitor@rocket.chatVisitor email.
message*I need helpMessage text.
department*SupportDepartment name.
host*nullUser name of the agent.

Example Call

{% code overflow="wrap" %}

curl --location 'http://localrocket:3000/api/v1/livechat/offline.message' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Livechat Visitor",
  "email": "visitor@rocket.chat",
  "message": "I need help",
  "department": "Support",
  "host": "null"
}'

{% endcode %}

Example Result

{
  "message": "Livechat offline message sent",
  "success": true
}