# Add "peer\_contact\_id" to List a user's chat sessions response

**URL:** <https://devforum.zoom.us/t/add-peer-contact-id-to-list-a-users-chat-sessions-response/82696>\
**Category:** Feature Requests\
**Tags:** api\
**Created:** [February 7, 2023, 9:32am UTC](https://devforum.zoom.us/t/add-peer-contact-id-to-list-a-users-chat-sessions-response/82696 "2023-02-07T09:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![k-root](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@k-root](https://devforum.zoom.us/u/k-root)\
**Post date:** [February 7, 2023, 9:32am UTC](https://devforum.zoom.us/t/add-peer-contact-id-to-list-a-users-chat-sessions-response/82696/1 "2023-02-07T09:32:42Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**

- [https://marketplace.zoom.us/docs/api-reference/chat/methods/#operation/getChatSessions](https://marketplace.zoom.us/docs/api-reference/chat/methods/#operation/getChatSessions)

**Description**  
Hi,

In List a user’s chat sessions response, if the session is of “1:1” type, it would have only “peer\_contact\_email” but no “peer\_contact\_id”. It would be much more convenient for our work if we can get that ID, and use user IDs as the single primary query key for users.

**Error?**  
This is more a feature request instead of an error report.

**How To Reproduce**

- Use an OAuth2 app, with an Account-level token.
- Send request to the List a user’s chat sessions endpoint:

curl --location --request GET ‘[https://api.zoom.us/v2/chat/users/{userID}/sessions](https://api.zoom.us/v2/chat/users/%7BuserID%7D/sessions)’ --header ‘Authorization: Bearer \*\*\*\*\*\*’

- In the response, if the session is of “1:1” type, it would have only “peer\_contact\_email” but not “peer\_contact\_id”.

---

<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:** [February 11, 2024, 1:08am UTC](https://devforum.zoom.us/t/add-peer-contact-id-to-list-a-users-chat-sessions-response/82696/2 "2024-02-11T01:08:46Z")

</div>

Closed on February 11, 2024, 1:08am UTC

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