# Sending File with Zoom Team Chat API

**URL:** <https://devforum.zoom.us/t/sending-file-with-zoom-team-chat-api/88505>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [May 16, 2023, 10:43pm UTC](https://devforum.zoom.us/t/sending-file-with-zoom-team-chat-api/88505 "2023-05-16T22:43:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle.aebischer](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kyle.aebischer](https://devforum.zoom.us/u/kyle.aebischer)\
**Post date:** [May 16, 2023, 10:43pm UTC](https://devforum.zoom.us/t/sending-file-with-zoom-team-chat-api/88505/1 "2023-05-16T22:43:50Z")

</div>

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

Link to endpoint documentation: [https://developers.zoom.us/docs/api/rest/reference/chat/methods/#operation/sendChatFile](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/](https://file.zoom.us/v2/chat/users/)[user ID]/messages/files

---

<div class="post-metadata">

**Author:** ![kyle.aebischer](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kyle.aebischer](https://devforum.zoom.us/u/kyle.aebischer)\
**Post date:** [May 17, 2023, 3:51pm UTC](https://devforum.zoom.us/t/sending-file-with-zoom-team-chat-api/88505/2 "2023-05-17T15:51:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 20, 2024, 7:28am UTC](https://devforum.zoom.us/t/sending-file-with-zoom-team-chat-api/88505/3 "2024-05-20T07:28:00Z")

</div>

Closed on May 20, 2024, 7:28am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
