package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.livechatai.com/api/v2/conversations/{conversationId}/reply"
payload := strings.NewReader("{\n \"message\": \"Thank you for your question. I'll help you with that right away.\",\n \"userId\": \"user_1234567890\",\n \"messageType\": \"TEXT\",\n \"attachments\": [\n {\n \"url\": \"https://cdn.example.com/bot/chat/abc/messages/file.pdf\",\n \"name\": \"report.pdf\",\n \"mimeType\": \"application/pdf\",\n \"size\": 123\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://app.livechatai.com/api/v2/conversations/{conversationId}/reply")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Thank you for your question. I'll help you with that right away.\",\n \"userId\": \"user_1234567890\",\n \"messageType\": \"TEXT\",\n \"attachments\": [\n {\n \"url\": \"https://cdn.example.com/bot/chat/abc/messages/file.pdf\",\n \"name\": \"report.pdf\",\n \"mimeType\": \"application/pdf\",\n \"size\": 123\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://app.livechatai.com/api/v2/conversations/{conversationId}/reply")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"Thank you for your question. I'll help you with that right away.\",\n \"userId\": \"user_1234567890\",\n \"messageType\": \"TEXT\",\n \"attachments\": [\n {\n \"url\": \"https://cdn.example.com/bot/chat/abc/messages/file.pdf\",\n \"name\": \"report.pdf\",\n \"mimeType\": \"application/pdf\",\n \"size\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body
{ "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", "attachments": [ { "id": "<string>", "url": "<string>", "name": "<string>", "mimeType": "<string>", "size": 123, "category": "image" } ], "createdAt": "2024-01-20T14:45:00Z", "agent": { "id": "agent_1234567890", "name": "Jane Smith", "email": "jane@company.com", "avatar": "https://example.com/avatar.jpg" } } }}
Conversations
Reply to a conversation
Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.
POST
/
api
/
v2
/
conversations
/
{conversationId}
/
reply
Reply to a conversation
curl --request POST \ --url https://app.livechatai.com/api/v2/conversations/{conversationId}/reply \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data @- <<EOF{ "message": "Thank you for your question. I'll help you with that right away.", "userId": "user_1234567890", "messageType": "TEXT", "attachments": [ { "url": "https://cdn.example.com/bot/chat/abc/messages/file.pdf", "name": "report.pdf", "mimeType": "application/pdf", "size": 123 } ]}EOF
import requests
url = "https://app.livechatai.com/api/v2/conversations/{conversationId}/reply"
payload = {
"message": "Thank you for your question. I'll help you with that right away.",
"userId": "user_1234567890",
"messageType": "TEXT",
"attachments": [
{
"url": "https://cdn.example.com/bot/chat/abc/messages/file.pdf",
"name": "report.pdf",
"mimeType": "application/pdf",
"size": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: 'Thank you for your question. I\'ll help you with that right away.',
userId: 'user_1234567890',
messageType: 'TEXT',
attachments: [
{
url: 'https://cdn.example.com/bot/chat/abc/messages/file.pdf',
name: 'report.pdf',
mimeType: 'application/pdf',
size: 123
}
]
})
};
fetch('https://app.livechatai.com/api/v2/conversations/{conversationId}/reply', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"LiveChatAI API Documentation","colors":{"primary":"#2188F3","light":"#2188F3","dark":"#2188F3"},"favicon":"https://mintcdn.com/livechatai/6nheG7kWh-i0JEuW/favicon.png?fit=max\u0026auto=format\u0026n=6nheG7kWh-i0JEuW\u0026q=85\u0026s=e4ffbe6df5d385f1ecc62efb834998fb","logo":{"light":"https://mintcdn.com/livechatai/6nheG7kWh-i0JEuW/logo/logo-black.png?fit=max\u0026auto=format\u0026n=6nheG7kWh-i0JEuW\u0026q=85\u0026s=54efa1885be0b382474f85983f649ef4","dark":"https://mintcdn.com/livechatai/6nheG7kWh-i0JEuW/logo/logo-white.png?fit=max\u0026auto=format\u0026n=6nheG7kWh-i0JEuW\u0026q=85\u0026s=f0ab6ba3ee34927f74e7a71689edf590"},"navbar":{"links":[{"label":"Support","href":"mailto:support@livechatai.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.livechatai.com"}},"footer":{"socials":{"discord":"https://discord.com/invite/X2WwkMVKt5","x":"https://x.com/LiveChatAI","linkedin":"https://www.linkedin.com/company/livechatai","youtube":"https://www.youtube.com/@livechataicom"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","href":"https://help.livechatai.com/","icon":"book-open-cover"},{"anchor":"Community","href":"https://discord.com/invite/X2WwkMVKt5","icon":"discord"},{"anchor":"Blog","href":"https://livechatai.com/blog","icon":"newspaper"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"livechatai","hasAudioNarration":false,"actualSubdomain":"livechatai","customDomains":["api.livechatai.com"],"gitSource":{"type":"github","owner":"popupsmartdev","repo":"live-chat-ai","deployBranch":"main","contentDirectory":"apps/api-doc","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a9ebf07f9357daf08fc2d49","collectionId":"6b1e39cf-0f64-446e-a206-9dcbac560003","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a9ebf07f9357daf08fc2d49"},"entitlements":{},"buildId":"6a9ebf07f9357daf08fc2d49","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"API Reference v2","count":43},{"language":"default","tag":"API Reference - DEPRECATED (1 Aug 2025)","count":16},{"language":"default","tag":"Conversations","count":9},{"language":"default","tag":"Translations","count":8},{"language":"default","tag":"Chatbot ","count":8},{"language":"default","tag":"Analytics","count":7},{"language":"default","tag":"Data Sources","count":7},{"language":"default","tag":"Data Source ","count":7},{"language":"default","tag":"Agents","count":4},{"language":"default","tag":"Contacts","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference-v2/conversations/reply","slug":"/api-reference-v2/conversations/reply","pageMetadata":{"openapi":"post /api/v2/conversations/{conversationId}/reply","title":"Reply to a conversation","description":"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.","href":"/api-reference-v2/conversations/reply"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /api/v2/conversations/{conversationId}/reply","title":"Reply to a conversation","description":"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.","href":"/api-reference-v2/conversations/reply"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"security":["c1dfa9f0-10b5-4075-8c8a-e8832c32b8db"],"tags":["Conversations"],"description":"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.","summary":"Reply to a conversation","parameters":["7370d739-a1ac-4bd1-86e5-508c9913c56a"],"requestBody":"7754de49-e950-42f0-b299-c9d8a577348a","responses":{"200":"65e95e58-a092-4313-9f78-34a27d78375c","400":"7ca5369a-f5f6-4a03-bb77-519505873214","401":"785d1bb6-581e-4a02-b1e2-6521d47d543e","403":"5116cddf-053e-4f03-be58-c7e3ebc44627","404":"b2cb390e-a34c-4a93-8764-83613bda8f54","500":"1f414af1-fc98-4eb8-87d1-2fa9b134b3f1"},"method":"post","type":"path","servers":["b1b83d82-bae1-4dc7-aea6-2871c4c5ab9e"],"path":"/api/v2/conversations/{conversationId}/reply","baseUrlOptions":["https://app.livechatai.com"],"title":"Reply to a conversation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"7370d739-a1ac-4bd1-86e5-508c9913c56a":{"in":"path","name":"conversationId","schema":{"type":"string","example":"chat_1234567890","isRequired":true,"description":"Unique identifier of the conversation to reply to","uniqueKey":"","typeLabel":"string"},"required":true,"description":"Unique identifier of the conversation to reply to"}},"requestBody":{"required":true,"description":"Agent reply details","content":{"application/json":{"schema":{"type":"object","required":["message","userId"],"properties":{"message":{"type":"string","example":"Thank you for your question. I'll help you with that right away.","description":"Reply message content to send","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"userId":{"type":"string","example":"user_1234567890","description":"ID of the user sending the reply","isRequired":true,"uniqueKey":"userId","typeLabel":"string"},"messageType":{"type":"string","enum":["TEXT","IMAGE","FILE"],"default":"TEXT","example":"TEXT","description":"Type of message being sent. Resolved automatically when attachments are provided.","uniqueKey":"messageType","typeLabel":"enum\u003cstring>"},"attachments":{"type":"array","description":"Optional file attachments. Upload each file to S3 first via the attachments presign endpoint, then reference the returned metadata here.","items":{"type":"object","required":["url","name","mimeType","size"],"properties":{"url":{"type":"string","example":"https://cdn.example.com/bot/chat/abc/messages/file.pdf","isRequired":true,"uniqueKey":"attachments.items.[INDEX].url","typeLabel":"string"},"name":{"type":"string","example":"report.pdf","isRequired":true,"uniqueKey":"attachments.items.[INDEX].name","typeLabel":"string"},"mimeType":{"type":"string","example":"application/pdf","isRequired":true,"uniqueKey":"attachments.items.[INDEX].mimeType","typeLabel":"string"},"size":{"type":"integer","description":"File size in bytes","isRequired":true,"uniqueKey":"attachments.items.[INDEX].size","typeLabel":"integer"}},"uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"attachments","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Thank you for your question. I'll help you with that right away.","userId":"user_1234567890","messageType":"TEXT","attachments":[{"url":"https://cdn.example.com/bot/chat/abc/messages/file.pdf","name":"report.pdf","mimeType":"application/pdf","size":123}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"65e95e58-a092-4313-9f78-34a27d78375c":{"description":"User reply sent successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success","uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","example":"User reply sent successfully","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"messageId":{"type":"string","example":"msg_1234567890","description":"ID of the created reply message","uniqueKey":"data.messageId","typeLabel":"string"},"conversationId":{"type":"string","example":"chat_1234567890","description":"ID of the conversation","uniqueKey":"data.conversationId","typeLabel":"string"},"message":{"type":"object","properties":{"id":{"type":"string","example":"msg_1234567890","uniqueKey":"data.message.id","typeLabel":"string"},"text":{"type":"string","example":"Thank you for your question. I'll help you with that right away.","uniqueKey":"data.message.text","typeLabel":"string"},"sender":{"type":"string","enum":["AGENT"],"example":"AGENT","uniqueKey":"data.message.sender","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["TEXT","IMAGE","FILE"],"example":"TEXT","uniqueKey":"data.message.type","typeLabel":"enum\u003cstring>"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"data.message.attachments.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","uniqueKey":"data.message.attachments.items.[INDEX].url","typeLabel":"string"},"name":{"type":"string","uniqueKey":"data.message.attachments.items.[INDEX].name","typeLabel":"string"},"mimeType":{"type":"string","uniqueKey":"data.message.attachments.items.[INDEX].mimeType","typeLabel":"string"},"size":{"type":"integer","uniqueKey":"data.message.attachments.items.[INDEX].size","typeLabel":"integer"},"category":{"type":"string","enum":["image","video","audio","doc","text"],"uniqueKey":"data.message.attachments.items.[INDEX].category","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.message.attachments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message.attachments","typeLabel":"object[]"},"createdAt":{"type":"string","format":"date-time","example":"2024-01-20T14:45:00Z","uniqueKey":"data.message.createdAt","typeLabel":"string\u003cdate-time>"},"agent":{"type":"object","properties":{"id":{"type":"string","example":"agent_1234567890","uniqueKey":"data.message.agent.id","typeLabel":"string"},"name":{"type":"string","example":"Jane Smith","uniqueKey":"data.message.agent.name","typeLabel":"string"},"email":{"type":"string","example":"jane@company.com","uniqueKey":"data.message.agent.email","typeLabel":"string"},"avatar":{"type":"string","example":"https://example.com/avatar.jpg","uniqueKey":"data.message.agent.avatar","typeLabel":"string"}},"uniqueKey":"data.message.agent","typeLabel":"object"}},"uniqueKey":"data.message","typeLabel":"object"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"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","attachments":[{"id":"\u003cstring>","url":"\u003cstring>","name":"\u003cstring>","mimeType":"\u003cstring>","size":123,"category":"image"}],"createdAt":"2024-01-20T14:45:00Z","agent":{"id":"agent_1234567890","name":"Jane Smith","email":"jane@company.com","avatar":"https://example.com/avatar.jpg"}}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7ca5369a-f5f6-4a03-bb77-519505873214":{"description":"Bad request - Missing or invalid parameters","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"785d1bb6-581e-4a02-b1e2-6521d47d543e":{"description":"Unauthorized access","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"5116cddf-053e-4f03-be58-c7e3ebc44627":{"description":"Access denied - Invalid conversation access","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"b2cb390e-a34c-4a93-8764-83613bda8f54":{"description":"Conversation not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1f414af1-fc98-4eb8-87d1-2fa9b134b3f1":{"description":"Internal server error occurred","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"c1dfa9f0-10b5-4075-8c8a-e8832c32b8db":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"b1b83d82-bae1-4dc7-aea6-2871c4c5ab9e":{"url":"https://app.livechatai.com","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference-v2/openapi.json"},"subdomain":"livechatai","siteName":"LiveChatAI API Documentation","title":"Reply to a conversation - LiveChatAI API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-26T10:53:50.316Z","originalFileLocation":"api-reference-v2/conversations/reply.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LiveChatAI API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reply to a conversation - LiveChatAI API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LiveChatAI API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api.livechatai.com/api-reference-v2/conversations/reply\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://livechatai.mintlify.site/_mintlify/api/og/v2?division=Conversations\u0026amp;title=Reply+to+a+conversation\u0026amp;description=Send+a+reply+message+as+an+agent+to+a+specific+conversation.+This+endpoint+allows+agents+to+respond+to+customer+messages+and+automatically+updates+conversation+\u0026amp;theme=44885a49d2661da5e474e315\u0026amp;signature=f924e747c3e7e591e9e1261f392a5f0779a2de40b17e4046691797ed5301614a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Reply to a conversation - LiveChatAI API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://livechatai.mintlify.site/_mintlify/api/og/v2?division=Conversations\u0026amp;title=Reply+to+a+conversation\u0026amp;description=Send+a+reply+message+as+an+agent+to+a+specific+conversation.+This+endpoint+allows+agents+to+respond+to+customer+messages+and+automatically+updates+conversation+\u0026amp;theme=44885a49d2661da5e474e315\u0026amp;signature=f924e747c3e7e591e9e1261f392a5f0779a2de40b17e4046691797ed5301614a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/livechatai/j9WQ7z5dvL5YK_MC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LiveChatAI API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2188F3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api.livechatai.com/api-reference-v2/conversations/reply\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference-v2/conversations/reply.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api.livechatai.com/#organization\",\"name\":\"LiveChatAI API Documentation\",\"url\":\"https://api.livechatai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/livechatai/6nheG7kWh-i0JEuW/logo/logo-black.png?fit=max\u0026auto=format\u0026n=6nheG7kWh-i0JEuW\u0026q=85\u0026s=54efa1885be0b382474f85983f649ef4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api.livechatai.com#website\",\"name\":\"LiveChatAI API Documentation\",\"url\":\"https://api.livechatai.com\",\"publisher\":{\"@id\":\"https://api.livechatai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api.livechatai.com/api-reference-v2/conversations/reply#webpage\",\"url\":\"https://api.livechatai.com/api-reference-v2/conversations/reply\",\"name\":\"Reply to a conversation\",\"description\":\"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.\",\"dateModified\":\"2026-01-26T10:53:50.316Z\",\"isPartOf\":{\"@id\":\"https://api.livechatai.com#website\"},\"breadcrumb\":{\"@id\":\"https://api.livechatai.com/api-reference-v2/conversations/reply#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api.livechatai.com/api-reference-v2/conversations/reply#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Conversations\",\"item\":\"https://api.livechatai.com/api-reference-v2/conversations/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reply to a conversation\",\"item\":\"https://api.livechatai.com/api-reference-v2/conversations/reply\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api.livechatai.com/api-reference-v2/conversations/reply#apireference\",\"headline\":\"Reply to a conversation\",\"name\":\"Reply to a conversation\",\"description\":\"Send a reply message as an agent to a specific conversation. This endpoint allows agents to respond to customer messages and automatically updates conversation status.\",\"url\":\"https://api.livechatai.com/api-reference-v2/conversations/reply\",\"mainEntityOfPage\":{\"@id\":\"https://api.livechatai.com/api-reference-v2/conversations/reply#webpage\"},\"dateModified\":\"2026-01-26T10:53:50.316Z\",\"publisher\":{\"@id\":\"https://api.livechatai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://api.livechatai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LiveChatAI API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LiveChatAI API Documentation","nav":{"global":{"anchors":[{"anchor":"Documentation","href":"https://help.livechatai.com/","icon":"book-open-cover"},{"anchor":"Community","href":"https://discord.com/invite/X2WwkMVKt5","icon":"discord"},{"anchor":"Blog","href":"https://livechatai.com/blog","icon":"newspaper"}]},"tabs":[{"tab":"API Reference v2","groups":[{"group":"API v2 Documentation","pages":[{"title":"Introduction","href":"/api-reference-v2/introduction"}]},{"group":"Agents","pages":[{"openapi":"post /api/v2/agents","title":"Create an agent","href":"/api-reference-v2/agents/create"},{"openapi":"get /api/v2/agents","title":"List agents","href":"/api-reference-v2/agents/list"},{"openapi":"get /api/v2/agents/{agentId}","title":"Retrieve an agent","href":"/api-reference-v2/agents/retrieve"},{"openapi":"delete /api/v2/agents/{agentId}","title":"Delete an agent","href":"/api-reference-v2/agents/delete"}]},{"group":"Conversations","pages":[{"openapi":"get /api/v2/conversations","title":"List conversations","href":"/api-reference-v2/conversations/list"},{"openapi":"get /api/v2/conversations/views","title":"List conversation views","href":"/api-reference-v2/conversations/list-views"},{"openapi":"post /api/v2/conversations/create","title":"Create a conversation","href":"/api-reference-v2/conversations/create"},{"openapi":"post /api/v2/conversations","title":"Send a message","href":"/api-reference-v2/conversations/send-message"},{"openapi":"get /api/v2/conversations/{conversationId}","title":"Retrieve a conversation","description":"Retrieve details of a specific conversation including messages","href":"/api-reference-v2/conversations/retrieve"},{"openapi":"post /api/v2/conversations/{conversationId}/reply","title":"Reply to a conversation","href":"/api-reference-v2/conversations/reply"},{"title":"Upload an attachment","openapi":"post /api/v2/conversations/{conversationId}/attachments/presign","description":"Returns a short-lived presigned S3 POST (expires in 5 minutes / 300 seconds). Submit a multipart/form-data request to `uploadUrl` with every `fields` entry followed by the `file` field last; the `Content-Type` you send must match the one in `fields`, and S3 enforces the size limit server-side. Then reference the returned `fileUrl`/metadata in the `attachments` array of a reply or conversation message. Supported types and max sizes: images png/jpg/jpeg/webp (10 MB), documents pdf/docx/xlsx/pptx (25 MB), text txt/csv (25 MB), video mp4/3gpp/webm/mpeg (50 MB), audio mp3/wav/ogg/mpeg (50 MB). Other types — including svg, html and javascript — are rejected.","href":"/api-reference-v2/conversations/attachment-presign"},{"openapi":"post /api/v2/conversations/{conversationId}/typing","title":"Send an \"agent is typing\" indicator","href":"/api-reference-v2/conversations/typing"},{"openapi":"post /api/v2/conversations/{conversationId}/end","title":"End a conversation","href":"/api-reference-v2/conversations/end"}]},{"group":"Contacts","pages":[{"openapi":"post /api/v2/contacts","title":"Create or update a contact","href":"/api-reference-v2/contacts/create"},{"openapi":"get /api/v2/contacts","title":"List contacts","href":"/api-reference-v2/contacts/list"},{"openapi":"get /api/v2/contacts/{contactId}/conversations","title":"List conversations for a contact","href":"/api-reference-v2/contacts/list-conversations"},{"openapi":"get /api/v2/contacts/{contactId}","title":"Retrieve a contact","href":"/api-reference-v2/contacts/retrieve"}]},{"group":"Data Sources","pages":[{"openapi":"get /api/v2/data-sources","title":"List data sources","href":"/api-reference-v2/data-sources/list"},{"openapi":"post /api/v2/data-sources/text","title":"Create a text data source","href":"/api-reference-v2/data-sources/create-text"},{"openapi":"post /api/v2/data-sources/url","title":"Create a URL data source","href":"/api-reference-v2/data-sources/create-url"},{"openapi":"post /api/v2/data-sources/qa","title":"Create a Q\u0026A data source","href":"/api-reference-v2/data-sources/create-qa"},{"openapi":"post /api/v2/data-sources/file","title":"Create a file data source","href":"/api-reference-v2/data-sources/create-file"},{"openapi":"put /api/v2/data-sources/qa","title":"Update a Q\u0026A data source","href":"/api-reference-v2/data-sources/update-qa"},{"openapi":"delete /api/v2/data-sources","title":"Delete data sources","href":"/api-reference-v2/data-sources/delete"}]},{"group":"Translations","pages":[{"openapi":"get /api/v2/chatbots/{chatbotId}/translations","title":"Get chatbot translations","href":"/api-reference-v2/translations/list"},{"openapi":"get /api/v2/chatbots/{chatbotId}/translations/languages","title":"List available languages","href":"/api-reference-v2/translations/list-languages"},{"openapi":"post /api/v2/chatbots/{chatbotId}/translations/languages","title":"Add a language","href":"/api-reference-v2/translations/add-language"},{"openapi":"delete /api/v2/chatbots/{chatbotId}/translations/languages/{language}","title":"Remove a language","href":"/api-reference-v2/translations/delete-language"},{"openapi":"put /api/v2/chatbots/{chatbotId}/translations/{language}","title":"Bulk update translations","href":"/api-reference-v2/translations/update-bulk"},{"openapi":"patch /api/v2/chatbots/{chatbotId}/translations/{language}/{key}","title":"Update a translation key","href":"/api-reference-v2/translations/update-key"},{"openapi":"delete /api/v2/chatbots/{chatbotId}/translations/{language}/{key}","title":"Reset a translation key","href":"/api-reference-v2/translations/delete-key"},{"openapi":"patch /api/v2/chatbots/{chatbotId}/translations/settings","title":"Update localization settings","href":"/api-reference-v2/translations/update-settings"}]},{"group":"AI Suggestions","pages":[{"openapi":"get /api/v2/ai-suggestions","title":"List AI Suggestions","href":"/api-reference-v2/ai-suggestions/list"},{"openapi":"get /api/v2/ai-suggestions/{suggestionId}","title":"Retrieve AI Suggestion","href":"/api-reference-v2/ai-suggestions/retrieve"},{"openapi":"delete /api/v2/ai-suggestions/{suggestionId}","title":"Delete AI Suggestion","href":"/api-reference-v2/ai-suggestions/delete"}]},{"group":"Analytics","pages":[{"openapi":"get /api/v2/analytics","title":"Get main analytics","href":"/api-reference-v2/analytics/main"},{"openapi":"get /api/v2/analytics/agent","title":"Get agent analytics","href":"/api-reference-v2/analytics/agent"},{"openapi":"get /api/v2/analytics/ai-functions","title":"Get AI function analytics","href":"/api-reference-v2/analytics/ai-functions"},{"openapi":"get /api/v2/analytics/csat","title":"Get CSAT analytics","href":"/api-reference-v2/analytics/csat"},{"openapi":"get /api/v2/analytics/sentiments","title":"Get sentiment analytics","href":"/api-reference-v2/analytics/sentiments"},{"openapi":"get /api/v2/analytics/resolutions","title":"Get resolution analytics","href":"/api-reference-v2/analytics/resolutions"},{"openapi":"get /api/v2/analytics/topics","title":"Get topics analytics","href":"/api-reference-v2/analytics/topics"}]}]},{"tab":"API Reference - DEPRECATED (1 Aug 2025)","pages":[{"title":"API Reference - DEPRECATED (1 Aug 2025)","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Reply to a conversation - LiveChatAI API Documentation","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}