Sending File with Zoom Team Chat API

API Endpoint: POST /chat/users/{userId}/messages/files

Link to endpoint documentation: https://developers.zoom.us/docs/api/rest/reference/chat/methods/#operation/sendChatFile

Description
Details on your question, workflow or the problem you’re trying to solve.
When trying to send a chat file, I’m receiving the following response:

Error code: 300
message: “Invalid Parameter: files”

I’m using Postman to make send the request.
For the request body, I’m using the “files” and “to_contact” properties. I believe I’m misunderstanding how to properly format the “files” property.

I converted the file to a Byte array in Java and then converted it to Base64 encoded string and put that value in the “files” property.

How To Reproduce
Steps to reproduce the behavior:

  1. POST https://file.zoom.us/v2/chat/users/[user ID]/messages/files
4 Likes

I think I figured it out - In Postman, you can select the “type” of a request body property as either text or file. If you select “file” it lets you add a file from your finder. This allowed me to successfully send a file over the Zoom API.

1 Like