Send Message Works with email, not with ID

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

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}
Still no luck sending a message to a User ID however.

Hi @luke.kendall,

Welcome to the Zoom Developer Forum.

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

Thanks,
Ojus

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}}

the endpoint works as expected, but when using

https://api.zoom.us/v2/im/users/me/chat/messages?chat_user={{USERID}}

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

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.

Thanks,
Tommy

Great!

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

Thanks!

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

1 Like

Thank you for the update

1 Like

Happy to help, and sorry again for the confusion!

-Tommy