Send a message
POST {{baseUrl}}/v3/:channel_type/:channel_url/messages
Send a message
Sends a message to a channel. You can send a text message, a file message, and an admin message.
Note: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server.
https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message
Request Body
{"message_type"=>"<string>", "user_id"=>"<string>", "message"=>"<string>", "channel_type"=>"<string>", "channel_url"=>"<string>", "custom_type"=>"<string>", "data"=>"<string>", "send_push"=>"<boolean>", "mention_type"=>"<string>", "mentioned_user_ids"=>["<string>", "<string>"], "is_silent"=>"<boolean>", "sorted_metaarray"=>"<string>", "created_at"=>"<integer>", "dedup_id"=>"<string>", "apns_bundle_id"=>"<string>", "sound"=>"<string>", "volume"=>"<number>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Token | string | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"require_auth":"\u003cboolean\u003e","message_survival_seconds":"\u003cnumber\u003e","custom_type":"\u003cstring\u003e","mentioned_users":[{"user_id":"\u003cstring\u003e","nickname":"\u003cstring\u003e","profile_url":"\u003cstring\u003e","metadata":{"anyOf":"\u003cstring\u003e"}},{"user_id":"\u003cstring\u003e","nickname":"\u003cstring\u003e","profile_url":"\u003cstring\u003e","metadata":{"anyOf":"\u003cstring\u003e"}}],"translations":"\u003cobject\u003e","updated_at":"\u003cnumber\u003e","is_op_msg":"\u003cboolean\u003e","is_removed":"\u003cboolean\u003e","user":{"require_auth_for_profile_image":"\u003cboolean\u003e","is_active":"\u003cboolean\u003e","role":"\u003cstring\u003e","user_id":"\u003cstring\u003e","nickname":"\u003cstring\u003e","profile_url":"\u003cstring\u003e","metadata":{"anyOf":"\u003cstring\u003e"}},"file":"\u003cobject\u003e","message":"\u003cstring\u003e","data":"\u003cstring\u003e","message_retention_hour":"\u003cnumber\u003e","silent":"\u003cboolean\u003e","type":"\u003cstring\u003e","created_at":"\u003cnumber\u003e","channel_type":"\u003cstring\u003e","req_id":"\u003cstring\u003e","mention_type":"\u003cstring\u003e","channel_url":"\u003cstring\u003e","message_id":"\u003cnumber\u003e","size":"\u003cnumber\u003e","sorted_metaarray":["\u003cobject\u003e","\u003cobject\u003e"],"thread_info":"\u003cobject\u003e","parent_message_id":"\u003cnumber\u003e","parent_message_info":"\u003cobject\u003e","is_reply_to_channel":"\u003cboolean\u003e"}