Skip to main content

Send a message

Reply to a specific message

Pass the original message’s id or guid as replyTo to thread your reply underneath it in the recipient’s conversation:

Group chats

Pass a chat ID (cht_...) returned by listChats as to:
The contact-first rule below applies to group chats too — the chat must have at least one inbound message before you can send into it. See Group chats for the full flow.

Contact-first restriction

To keep lines healthy with Apple’s spam detection, you can only send to a contact (or group chat) after they have messaged your line first. Trying to send first returns:
The sandbox line is exempt once activated — your paired phone number is treated as having messaged in. For production lines, drive inbound traffic via marketing channels (a tap-to-text link, a vCard with your line saved as a contact, etc.) before you can reply.

Track delivery

Register a webhook for message.sent and your server will receive a POST when the message is delivered:

Errors