Send message
Send a message into a customer conversation.
Endpoint
Section titled “Endpoint”POST https://me.instaply.com/api/send-message-to-customer-thread
Request body
Section titled “Request body”{ "text": "Hello, I am a bot.", "customerThreadId": "9999", "internal": false}Fields
Section titled “Fields”text(string) — Free-form message body. Omit if you send a template viacontentSid.contentSid(string) — Template identifier. Omit if you sendtext.- Exactly one of
textorcontentSidmust be provided. customerThreadId(string) — Target customer thread.internal(boolean, optional) —false: visible to the customer.true: internal (employee-only).
Example (curl)
Section titled “Example (curl)”curl -X POST "https://me.instaply.com/api/send-message-to-customer-thread" \ -H "token: your-api-token" \ -H "Content-Type: application/json" \ -d '{ "text": "Hello, I am a bot.", "customerThreadId": "9999" }'WhatsApp and other channels may restrict when you can send free-form text vs templates. See Messaging windows & templates.