A Zoom user can have conversations with other Zoom users via chat. Use this API to list the current user's chat messages between the user and an individual contact or a chat channel. In the query parameter, you must provide either of the following:* to_contact: The email address of the contact with whom the user conversed by sending/receiving messages.* to_channel: The channel ID of the channel to/from which the user has sent and/or received messages. **Specify a date** in the date query parameter to view messages from that date. If a date is not provided, the default value for the query will be the **current date**.<p style="backgroundcolor:#e1f5fe; color:#01579b; padding:8px"> <b>Note: </b> For an<b> accountlevel</b> <a href="https://marketplace.zoom.us/docs/guides/gettingstarted/apptypes/createoauthapp">OAuth app</a>, this API can only be used on behalf of a user who is assigned with a <a href="https://support.zoom.us/hc/enus/articles/115001078646Usingrolemanagement#:~:text=Each

listUsersChatMessages(
  to_contact = NULL,
  to_channel = NULL,
  date = NULL,
  page_size = NULL,
  next_page_token = NULL,
  return_response = F
)

Arguments

to_contact

The email address of a chat contact with whom the current user chatted. Messages that were sent and/or received between the user and the contact is displayed.Note: You must provide either contact or channel as a query parameter to retrieve messages either from an individual or a chat channel.

to_channel

The channel Id of a channel inside which current user had chat converstations. Messages that were sent and/or received between the user and the channel is displayed.Note: You must provide either contact or channel as a query parameter to retrieve messages either from an individual or a chat channel.

date

The query date for which you would like to get the chat messages.

page_size

The number of records returned with a single API call.

next_page_token

The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes.

return_response

Whether to return the response instead of the response content. Defaults to FALSE.