# Send Message Works with email, not with ID

**URL:** <https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070>\
**Category:** API and Webhooks\
**Created:** [September 30, 2019, 3:57pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070 "2019-09-30T15:57:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke.kendall](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/luke.kendall/32/1979_2.png) [@luke.kendall](https://devforum.zoom.us/u/luke.kendall)\
**Post date:** [September 30, 2019, 3:57pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/1 "2019-09-30T15:57:04Z")

</div>

**Description/Error**  
I am receiving a 404 error when attempting to send messages to users using their ID. I am not receiving this error when using the user’s email. This is odd, as last week, ids as parameters worked perfectly. I have double checked that the id is correct, and have determined that the problem persists even when hitting the api endpoint from the zoom documentation site.

**Which Endpoint/s?**  
[https://api.zoom.us/v2/im/users/me/chat/messages](https://api.zoom.us/v2/im/users/me/chat/messages)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Obtain a valid Zoom ID and email
2. Attempt to send message with email as identifier for chat\_user param, see message sends properly.
3. Attempt to send message with the same user’s ID as the identifier for the chat\_user param, receive 404 not found error.

**Update**  
I did some additional testing and was able to find the recipient using their user ID and the “Get a specific User” endpoint: [https://api.zoom.us/v2/users/{userId}](https://api.zoom.us/v2/users/%7BuserId%7D)  
Still no luck sending a message to a User ID however.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [September 30, 2019, 10:09pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/2 "2019-09-30T22:09:13Z")

</div>

Hi @luke.kendall,

Welcome to the Zoom Developer Forum.

Can you send us the payload that you are trying to send?

Thanks,  
Ojus

---

<div class="post-metadata">

**Author:** ![luke.kendall](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/luke.kendall/32/1979_2.png) [@luke.kendall](https://devforum.zoom.us/u/luke.kendall)\
**Post date:** [October 1, 2019, 4:38pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/3 "2019-10-01T16:38:29Z")

</div>

The body of the payload is simply {“message”:“Hello World!”}. The issue is with the query parameter. OAuth and the post body are working, the problem is that when using

[https://api.zoom.us/v2/im/users/me/chat/messages?chat\_user={{EMAIL}](https://api.zoom.us/v2/im/users/me/chat/messages?chat_user=%7B%7BEMAIL%7D)}

the endpoint works as expected, but when using

[https://api.zoom.us/v2/im/users/me/chat/messages?chat\_user={{USERID}](https://api.zoom.us/v2/im/users/me/chat/messages?chat_user=%7B%7BUSERID%7D)}

The user cannot be found.  
Documentation for the endpoint states that User Id and email can be used interchangeably.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 1, 2019, 10:20pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/5 "2019-10-01T22:20:22Z")

</div>

Hey @luke.kendall,

We were able to reproduce the error. We will work on fixing this, for now please use the email to send IM messages. Jira: ZOOM-112638

You can get the email of a user by passing in their userId in the [GET /users/userId endpoint.](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![luke.kendall](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/luke.kendall/32/1979_2.png) [@luke.kendall](https://devforum.zoom.us/u/luke.kendall)\
**Post date:** [October 2, 2019, 2:43pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/6 "2019-10-02T14:43:39Z")

</div>

Great!

Please let me know when an update has been made so that I can update our code base,

Thanks!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 2, 2019, 10:11pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/7 "2019-10-02T22:11:50Z")

</div>

Hey @luke.kendall,

It looks like sending messages is only supported using the email. We will fix our docs.

Thanks for pointing this out, and sorry for the inconvenience.

-Tommy

---

<div class="post-metadata">

**Author:** ![luke.kendall](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/luke.kendall/32/1979_2.png) [@luke.kendall](https://devforum.zoom.us/u/luke.kendall)\
**Post date:** [October 3, 2019, 12:18pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/8 "2019-10-03T12:18:32Z")

</div>

Thank you for the update

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 3, 2019, 4:15pm UTC](https://devforum.zoom.us/t/send-message-works-with-email-not-with-id/6070/9 "2019-10-03T16:15:36Z")

</div>

Happy to help, and sorry again for the confusion!

-Tommy
