> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Chat Info

Returns the existing direct message with the specified user.
If no direct message space is found, returns a `404 NOT_FOUND` error.

With user authentication, returns the direct message space between the specified user and the authenticated user.

With service account authentication, returns the direct message space between the specified user and the calling Chat app.

For more information please see the [Google Chat documentation](https://developers.google.com/chat/api/reference/rest/v1/spaces/findDirectMessage).

<Note>
  External Documentation

  To learn more, visit the [Google Chat documentation](https://developers.google.com/chat/api/reference/rest/v1/spaces/findDirectMessage).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | User Email Or ID | Resource identifier of the user to find direct message with. Can be obtained via the `List Members` action.<br />Format: <pre><code>users/\{User Email Or ID}</code></pre>.<br />For example, users/example\@gmail.com where [example@gmail.com](mailto:example@gmail.com) is the email of the Google Chat user. User could be also either the person\_id for the person from the People API, or the id for the user in the Directory API. For example, if the People API Person.resourceName is 123456789, you can find a direct message with that person by using users/123456789 as the user id. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
</div>

## Example Output

```json theme={"dark"}
{
	"name": "spaces/vsBB3UBBAE",
	"spaceHistoryState": "HISTORY_ON",
	"spaceThreadingState": "UNTHREADED_MESSAGES",
	"spaceType": "DIRECT_MESSAGE",
	"type": "ROOM"
}
```

## Workflow Library Example

[Get Chat Info with Google Chat and Send Results Via Email](https://library.blinkops.com/workflows/get-chat-info-with-google-chat-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-chat-info-with-google-chat-and-send-results-via-email/canvas" />
</div>
