# IM Chat API's response when message encryption is enabled

**URL:** <https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529>\
**Category:** API and Webhooks\
**Created:** [March 7, 2019, 4:56pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529 "2019-03-07T16:56:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![snpatel\_zoom](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@snpatel\_zoom](https://devforum.zoom.us/u/snpatel_zoom)\
**Post date:** [March 7, 2019, 4:56pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/1 "2019-03-07T16:56:22Z")

</div>

Hello,

When the end-to-end encryption is enabled for IM messages, the Chat API does not return the encrypted message text. Is there any way to retrieve the encrypted messages through API? Are there any permissions that can be added to the APP scope to enable it?

Thank you.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [March 8, 2019, 6:21pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/2 "2019-03-08T18:21:42Z")

</div>

Hi @snpatel_zoom,

Which Chat API are you referring too?

---

<div class="post-metadata">

**Author:** ![snpatel\_zoom](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@snpatel\_zoom](https://devforum.zoom.us/u/snpatel_zoom)\
**Post date:** [March 8, 2019, 7:33pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/3 "2019-03-08T19:33:24Z")

</div>

I am referring to /im/chat/sessions/{sessionId}.

For encrypted messages the message string in the response comes like so:  
“message”: “[This is an encrypted message]”

---

<div class="post-metadata">

**Author:** ![emata\_zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emata_zoom/32/4587_2.png) [@emata\_zoom](https://devforum.zoom.us/u/emata_zoom)\
**Post date:** [April 16, 2020, 1:28pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/4 "2020-04-16T13:28:25Z")

</div>

Good morning.

Any news around this? Is there a way to get the decrypted message content through the API when end-to-end encryption is enabled?

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:** [April 17, 2020, 6:24pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/5 "2020-04-17T18:24:18Z")

</div>

Hey @emata_zoom,

Which endpoints are you using? [The /im/chat/sessions endpoints are deprecated.](https://marketplace.zoom.us/docs/api-reference/zoom-api/im-chat/imchatsessions)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![emata\_zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emata_zoom/32/4587_2.png) [@emata\_zoom](https://devforum.zoom.us/u/emata_zoom)\
**Post date:** [April 17, 2020, 9:51pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/6 "2020-04-17T21:51:30Z")

</div>

Hi @tommy

We use an account level app token, so, we are still using [/im/chat/sessions](https://marketplace.zoom.us/docs/api-reference/zoom-api/im-chat/imchatmessages) endpoints until we can use the new [Chat Messages](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/getchatmessages) endpoints with that kind of token.

Do you now if the new [Chat Messages](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/getchatmessages) endpoints will return the decrypted message text even when end-to-end encryption is enabled at the application level?

Best regards.

---

<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:** [April 20, 2020, 5:38pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/7 "2020-04-20T17:38:28Z")

</div>

Hey @emata_zoom,

> [@emata\_zoom](#):
>
> end-to-end encryption is enabled at the application level

Can you share where this setting is so I can test it?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![emata](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@emata](https://devforum.zoom.us/u/emata)\
**Post date:** [April 24, 2020, 9:25pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/8 "2020-04-24T21:25:07Z")

</div>

Hi @tommy,

Sorry I am replying this thread with a different user, reason is explained [here](https://devforum.zoom.us/t/unexpected-account-does-not-support-rest-api-error/14829) in case you want to take a look.

In any case going back to your question, I meant to say “… enabled at the account level”. Just as described in [“End-To-End-Encryption-for-Chat”](https://support.zoom.us/hc/en-us/articles/207599823-End-To-End-Encryption-for-Chat)

Best regards.

---

<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:** [April 28, 2020, 5:46pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/9 "2020-04-28T17:46:26Z")

</div>

Hey @emata, @emata_zoom,

Gotcha! Yes, if [Chat Encryption is enabled](https://support.zoom.us/hc/en-us/articles/207599823-End-To-End-Encryption-for-Chat), and you call the [List Users Chat Messages endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/getchatmessages), you will get the following:

```json
{
    "date": "2020-04-28",
    "page_size": 10,
    "next_page_token": "",
    "messages": [
        {
            "id": "4E2E4D9A-F010-4204-B185-CBFD113D8AC6",
            "message": "[This is an encrypted message]",
            "date_time": "2020-04-28T17:44:39Z",
            "timestamp": 1588095879772
        }
    ]
}

```

I will see if there is a way to decrypt this. (ZOOM-156492)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![emata](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@emata](https://devforum.zoom.us/u/emata)\
**Post date:** [April 28, 2020, 8:58pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/10 "2020-04-28T20:58:46Z")

</div>

Thanks @tommy

Please keep me posted in case you find a way to get the decrypted messages within the described scenario.

Regards.

---

<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:** [April 29, 2020, 4:02pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/11 "2020-04-29T16:02:56Z")

</div>

Hey @emata,

After speaking with our engineers, there is no way to decrypt this using the API.

The only way to see the decrypted message would be within the Zoom Client.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![emata](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@emata](https://devforum.zoom.us/u/emata)\
**Post date:** [April 29, 2020, 4:24pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/12 "2020-04-29T16:24:26Z")

</div>

Hi @tommy,

That is very unfortunate for some use cases. Anyways, I really appreciate your help on this topic, at least we now have official confirmation on that “limitation”.

Best regards.

---

<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:** [May 4, 2020, 11:35pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/13 "2020-05-04T23:35:54Z")

</div>

Hey @emata,

We understand. We will see what we can do about supporting encrypted chat with the API in the future.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:02pm UTC](https://devforum.zoom.us/t/im-chat-apis-response-when-message-encryption-is-enabled/3529/14 "2020-08-21T21:02:56Z")

</div>


