POST
/
api
/
v2
/
conversations
curl --request POST \
  --url https://app.livechatai.com/api/v2/conversations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "question": "What are your business hours?",
  "agentId": "clx1234567890abcdef",
  "conversationId": "chat_1234567890",
  "messageType": "TEXT",
  "streaming": false,
  "ip": "192.168.1.1",
  "country": "US",
  "responseFormat": "MARKDOWN",
  "integrationType": "WHATSAPP"
}'
{
  "status": "success",
  "message": "Message sent successfully",
  "data": {
    "conversationId": "chat_1234567890",
    "contactId": "contact_1234567890",
    "response": "Our business hours are Monday to Friday, 9 AM to 6 PM EST.",
    "messageId": "msg_1234567890",
    "responseMessageId": "msg_0987654321",
    "links": [
      {
        "link": "https://example.com/page",
        "type": "WEBSITE"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Message details for the agent

The body is of type object.

Response

200
application/json

Message sent and response received successfully

The response is of type object.