Send a chat message
POST
/chat/users/{userId}/messages
Chat Messages
to_contact
field. Similary, to send a message to a channel, provide the Channel Id of the Channel in to_channel
field.Scopes:
chat_message:write
, chat_message:write:admin
Rate Limit Label:
Medium
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.zoom.us/v2/chat/users//messages' \
--form 'message=""'
响应示例响应示例
201 - response
{
"id": "ex35785hgdfjgt"
}
请求参数
Path 参数
userId
string
必需
Body 参数multipart/form-data
at_items
array [object {4}]
可选
at_contact
string
可选
at_type
field is set to 1.at_type
enum<integer>
可选
1
: Mention a contact.2
: Mention "all" to notify everyone in the channel.枚举值:
12
end_position
integer
可选
In this case, the end position of the mention "@Shrijana" is 8. Hence, the value of this field will be 8.
start_position
integer
可选
message
string
必需
<= 1024 字符
to_channel
string
可选
to_contact
string
可选
返回响应
修改于 2024-04-24 09:06:48