POST
/
api
/
v2
/
conversations
/
{conversationId}
/
reply
curl --request POST \
  --url https://app.livechatai.com/api/v2/conversations/{conversationId}/reply \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "Thank you for your question. I'\''ll help you with that right away.",
  "userId": "user_1234567890",
  "messageType": "TEXT"
}'
{
  "status": "success",
  "message": "User reply sent successfully",
  "data": {
    "messageId": "msg_1234567890",
    "conversationId": "chat_1234567890",
    "message": {
      "id": "msg_1234567890",
      "text": "Thank you for your question. I'll help you with that right away.",
      "sender": "AGENT",
      "type": "TEXT",
      "createdAt": "2024-01-20T14:45:00Z",
      "agent": {
        "id": "agent_1234567890",
        "name": "Jane Smith",
        "email": "jane@company.com",
        "avatar": "https://example.com/avatar.jpg"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversationId
string
required

Unique identifier of the conversation to reply to

Example:

"chat_1234567890"

Body

application/json

Agent reply details

The body is of type object.

Response

200
application/json

User reply sent successfully

The response is of type object.