Reply to a message
Reply to a comment or message in the Priority Inbox.
POST https://cotlet.dev/api/v1/sendible/messages/{message_id}/replies
write Confirm
Sends a reply as the profile the message came in on. It works for Facebook, Instagram and LinkedIn, the networks Sendible lets you reply on from the Priority Inbox. A Facebook private message can be answered only within 24 hours after it was sent. The reply is public for a comment and private for a message. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| message_id string required | string | Message from list_inbox_messages. |
| body string required | string | Reply text. |
Request
curl -X POST https://cotlet.dev/api/v1/sendible/messages/msg_91f2/replies \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"Hi Dana, yes: we are open on Saturdays from 9 to 1. You can book at harbordental.example/book."}' result = client.call("sendible", "reply_to_message", {"message_id":"msg_91f2","body":"Hi Dana, yes: we are open on Saturdays from 9 to 1. You can book at harbordental.example/book."}) const result = await cotlet.call('sendible', 'reply_to_message', {"message_id":"msg_91f2","body":"Hi Dana, yes: we are open on Saturdays from 9 to 1. You can book at harbordental.example/book."}); cotlet call sendible reply_to_message --data '{"message_id":"msg_91f2","body":"Hi Dana, yes: we are open on Saturdays from 9 to 1. You can book at harbordental.example/book."}' Example response
{
"message_id": "msg_91f2",
"reply_id": "rep_5c10",
"status": "sent",
"profile": "Harbor Dental (Facebook Page)"
}