Smart Chat · Messages
Send a message as an agent
Queues a message from agent advisorId in an existing conversation; it goes out through the conversation's channel (WhatsApp, Instagram, Messenger, SMS…). The answer is the queued message itself, without the status/data envelope: keep its _id to follow the delivery with GET /message or the updateMessage webhook event. Delivery is asynchronous: if the conversation is closed (ROOM_ENDED), belongs to another agent or WhatsApp's 24-hour window is closed, the message ends with deliveryStatus: failed and the reason in error (check mustSendTemplate in GET /room/message and send a template instead). The conversation must be in the account appUUID: if it doesn't exist or is in another account, it answers 404; if it is there but your credential doesn't belong to that account, it answers 403.