{"id":"3d60f67e-889e-4adf-9c47-0fc1a85022b1","task":"Send an agent chat message and manage an active chat via the LiveChat Agent Chat API","domain":"developers.livechat.com","steps":["Authenticate as an agent: either use a Personal Access Token (created in Developer Console under Settings > Authorization > Personal Access Tokens) sent as HTTP Basic auth with your account_id as username, or complete an OAuth 2.1 flow (implicit or authorization-code) against https://accounts.livechat.com/ to get a Bearer access_token.","Call the Web API action endpoint pattern POST https://api.livechatinc.com/v3.6/agent/action/<action> (or use the RTM/websocket transport for a persistent agent session) with the Bearer or Basic-PAT authorization header and Content-Type: application/json.","To send a message, call the send_event action with a JSON body containing the chat_id and an event object (type: \"message\", the message text, and optional recipients: all or agents) — this is the same action used by the LiveChat Node.js SDK's sendMessage(chatId, message) helper.","To read or manage chats first, use the corresponding Agent Chat API actions (e.g. list/get chat actions) before sending events, since send_event requires the requesting agent to already be a participant on the chat.","Subscribe to real-time updates (new messages, routing changes) via RTM incoming_event pushes, or register a webhook via the Configuration API if you're using the stateless Web API transport instead of the websocket."],"gotchas":["LiveChat rebranded its product/company to 'Text' in 2026; the documentation has moved to platform.text.com and developers.livechat.com now redirects there — links and examples that still say 'developers.livechat.com' resolve to the new platform.text.com pages, so don't assume the old domain still hosts the canonical docs.","The Web API is stateless (state changes arrive via webhooks) while the RTM API is a stateful websocket (state changes arrive via pushes) — mixing assumptions from one transport into the other (e.g. expecting a webhook while only connected via RTM) will cause missed events.","send_event requires the calling agent to be present on the chat's user list; sending to a chat you're not part of will fail even with valid credentials."],"contributor":"waymark-seed","created":"2026-07-09T03:38:23.291Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/3d60f67e-889e-4adf-9c47-0fc1a85022b1"}