Can't send chat messages via API to users in different accounts but same organization

API Endpoint(s) and/or Zoom API Event(s)
https://api.zoom.us/v2/chat/users/me/messages

Description
I’m debugging an issue a user is having when using our Zoom API oauth integration. They’re able to send chat messages via the API to users on the same zoom account but can’t send messages across accounts even though they can through the Zoom client. I suspect these accounts are linked to the same organization which is why it works in the client but not the API. It seems like the API should allow messaging anyone the user can message directly though the client.

Error?

{
  "status": 404,
  "body": {
    "code": 1001,
    "message": "User does not exist: <<REDACTED>>."
  }
}

How To Reproduce
Send a request like this to the chat end point, specifying a user in a different account but linked organization:

{
  "method": "POST",
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Authorization": "Bearer <<<REDACTED by Coda>>>"
  },
  "body": {
    "message": "<<REDACTED >>>",
    "to_contact": "<<REDACTED >>>"
  },
  "url": "https://api.zoom.us/v2/chat/users/me/messages"
}

@abhishek-coda Hi Abhishek, even if the users are in the same org, but different zoom accounts, then you cannot directly send message to them. Please add them as a contact first and then try sending the message