Receives an incoming message
POST {{baseUrl}}/channels/messages/receive
Adds a message to a conversation. To use the endpoint, you need to have Messengers integration OAuth scope enabled and the Messaging manifest ready for the Messaging app extension.
Request Body
{"id"=>"<string>", "channel_id"=>"<string>", "sender_id"=>"<string>", "conversation_id"=>"<string>", "message"=>"<string>", "status"=>"<string>", "created_at"=>"<dateTime>", "reply_by"=>"<dateTime>", "conversation_link"=>"<url>", "attachments"=>[{"id"=>"<string>", "type"=>"<string>", "url"=>"<string>", "name"=>"<string>", "size"=>"<number>", "preview_url"=>"<string>", "link_expires"=>false}, {"id"=>"<string>", "type"=>"<string>", "url"=>"<string>", "name"=>"<string>", "size"=>"<number>", "preview_url"=>"<string>", "link_expires"=>false}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":"e283f878-7ef9-4294-8e5c-04a7d003fd92","channel_id":"a8aa4db0-91bb-4e90-b9c0-0c6291307e2f","sender_id":"5d4bd467-d847-4088-ae43-0c7614233bab","conversation_id":"063ffa46-831c-4027-a04c-b65e17f077b7","message":"This is a message","status":"sent","created_at":"2022-03-01T07:58:35.449Z","reply_by":"2022-03-01T07:58:35.449Z","conversation_link":"http://my-server.com/conversations/063ffa46-831c-4027-a04c-b65e17f077b7","attachments":[{"id":"b0369d1d-6b6a-4293-88b9-e2924782d47e","type":"image/png","name":"Image Name","size":600,"url":"http://my-server.com/images/b0369d1d-6b6a-4293-88b9-e2924782d47e.png","preview_url":"http://my-server.com/images/b0369d1d-6b6a-4293-88b9-e2924782d47e.preview.png"}]}}