Send a chat file
POST {{baseUrl}}/chat/users/:userId/messages/files
Sends a file on Zoom to either an individual user in your contact list or a channel of which you are a member.
Note:
* The base URL for this API is https://file.zoom.us/v2/
.
* The rate limit of this API is 20 requests per second per API or 2000 requests per second per IP address.
* The caller must support HTTP 30x redirects.
* All files are sent as common files except png
,jpg
,jpeg
and gif
* Zoom Cloud Storage will store the files sent through this API. If you do not use Zoom Cloud Storage, Zoom Cloud will temporarily store these files for 7 days.
* The caller must retain the authorization header when redirected to a different hostname.
For user-level apps, pass the me
value instead of the userId
parameter.
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.
Scopes: chat_message:write
, chat_message:write:admin
Request Body
[{"name"=>"files", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"reply_main_message_id", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"to_channel", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"to_contact", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"\u003cstring\u003e"}