Send a chat message

POST {{baseUrl}}/chat/users/:userId/messages

Sends chat messages on Zoom to either an individual user who is in your contact list or to a channel of which you are a member. For user-level apps, pass the me value instead of the userId parameter.

To send a message to a contact, provide the contact's email address in the to_contact field. To send a message to a channel, provide the channel's ID in to_channel parameter

Scopes: chat_message:write , chat_message:write:admin
Rate Limit Label : Medium

Note: For an account-level OAuth app , this API can only be used on behalf of a user who is assigned with a role that has the Edit permission for Chat Messages .

Request Body

{"message"=>"<string>", "at_items"=>[{"at_contact"=>"<email>", "at_type"=>1, "end_position"=>"<integer>", "start_position"=>"<integer>"}, {"at_contact"=>"<email>", "at_type"=>1, "end_position"=>"<integer>", "start_position"=>"<integer>"}], "rich_text"=>[{"start_position"=>"<integer>", "end_position"=>"<integer>", "format_type"=>"Italic", "format_attr"=>"<string>"}, {"start_position"=>"<integer>", "end_position"=>"<integer>", "format_type"=>"LeftIndent", "format_attr"=>"<string>"}], "file_ids"=>["<string>", "<string>"], "reply_main_message_id"=>"<string>", "to_channel"=>"<string>", "to_contact"=>"<email>"}

HEADERS

| Key | Datatype | Required | Description | | Content-Type | string | | | | Accept | string | | |

RESPONSES

status: Created

{"id":"\u003cstring\u003e"}