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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:&quot;e283f878-7ef9-4294-8e5c-04a7d003fd92&quot;,&quot;channel_id&quot;:&quot;a8aa4db0-91bb-4e90-b9c0-0c6291307e2f&quot;,&quot;sender_id&quot;:&quot;5d4bd467-d847-4088-ae43-0c7614233bab&quot;,&quot;conversation_id&quot;:&quot;063ffa46-831c-4027-a04c-b65e17f077b7&quot;,&quot;message&quot;:&quot;This is a message&quot;,&quot;status&quot;:&quot;sent&quot;,&quot;created_at&quot;:&quot;2022-03-01T07:58:35.449Z&quot;,&quot;reply_by&quot;:&quot;2022-03-01T07:58:35.449Z&quot;,&quot;conversation_link&quot;:&quot;http://my-server.com/conversations/063ffa46-831c-4027-a04c-b65e17f077b7&quot;,&quot;attachments&quot;:[{&quot;id&quot;:&quot;b0369d1d-6b6a-4293-88b9-e2924782d47e&quot;,&quot;type&quot;:&quot;image/png&quot;,&quot;name&quot;:&quot;Image Name&quot;,&quot;size&quot;:600,&quot;url&quot;:&quot;http://my-server.com/images/b0369d1d-6b6a-4293-88b9-e2924782d47e.png&quot;,&quot;preview_url&quot;:&quot;http://my-server.com/images/b0369d1d-6b6a-4293-88b9-e2924782d47e.preview.png&quot;}]}}