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

**URL:** <https://devforum.zoom.us/t/cant-send-chat-messages-via-api-to-users-in-different-accounts-but-same-organization/99123>\
**Category:** Chat\
**Created:** [November 28, 2023, 3:27am UTC](https://devforum.zoom.us/t/cant-send-chat-messages-via-api-to-users-in-different-accounts-but-same-organization/99123 "2023-11-28T03:27:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek-coda](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishek-coda/32/37244_2.png) [@abhishek-coda](https://devforum.zoom.us/u/abhishek-coda)\
**Post date:** [November 28, 2023, 3:27am UTC](https://devforum.zoom.us/t/cant-send-chat-messages-via-api-to-users-in-different-accounts-but-same-organization/99123/1 "2023-11-28T03:27:31Z")

</div>

**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](https://marketplace.zoom.us/apps/tA-yVq4mQGugN8X71RKJWg). 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](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0068055) 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?**

```auto
{
  "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:

```auto
{
  "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"
}
```

---

<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:** [November 28, 2023, 8:18pm UTC](https://devforum.zoom.us/t/cant-send-chat-messages-via-api-to-users-in-different-accounts-but-same-organization/99123/2 "2023-11-28T20:18:56Z")

</div>

@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
