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

Latest commit

 

History

History
41 lines (30 loc) · 1.61 KB

File metadata and controls

41 lines (30 loc) · 1.61 KB

Request Livechat Transcript

The endpoint is used by visitors to request a transcript of their chat to be sent to their email once the conversation ends.

{% hint style="info" %} The room must be closed before you can send a transcript. {% endhint %}

HTTP MethodURLRequires Auth
POST/api/v1/livechat/transcriptno

Body Parameters

KeyExample ValueDescription
rid*XFzMqgn33DcsQkpJpThe room ID.
token*iNKE8a6k6cjbqWhWdThe visitor token.
email*visitor@rocket.chatThe visitor's email ID where the transcript should be sent.

Example Call

{% code overflow="wrap" %}

curl -X POST \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/livechat/transcript \
     -d '{"rid":"XFzMqgn33DcsQkpJp", 
          "token": "iNKE8a6k6cjbqWhWd", 
          "email": "visitor@rocket.chat"}'

{% endcode %}

Example Response

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

Change Log

Version Description
0.70.0 Added