> ## 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 Gmail Message

Gets the specified message.

<Note>
  External Documentation

  To learn more, visit the [Gmail documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/get).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                                                                                                        |
  | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Format     | The format to return the message in. For further information regarding each format, please visit [Gmail's documentation](https://developers.google.com/gmail/api/reference/rest/v1/Format).                        |
  | Message ID | The ID of the message to retrieve. This ID is usually retrieved using `messages.list`.<br />The ID is also contained in the result when a message is inserted (`messages.insert`) or imported (`messages.import`). |
  | User ID    | The user's email address. The special value `me` can be used to indicate the authenticated user.                                                                                                                   |
</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"}
{
	"id": "18476a3a2a1f3e2d",
	"threadId": "18476a3a2a1f3e2d",
	"labelIds": [
		"SENT",
		"INBOX"
	],
	"snippet": "",
	"payload": {
		"partId": "",
		"mimeType": "text/plain",
		"filename": "",
		"headers": [
			{
				"name": "Return-Path",
				"value": "<mail@blinkops.com>"
			},
			{
				"name": "Received",
				"value": "From Received"
			},
			{
				"name": "From",
				"value": "Test Blink <mail@blinkops.com>"
			},
			{
				"name": "Content-Type",
				"value": "text/plain"
			},
			{
				"name": "Content-Transfer-Encoding",
				"value": "7bit"
			},
			{
				"name": "Mime-Version",
				"value": "1.0"
			},
			{
				"name": "Subject",
				"value": "2"
			},
			{
				"name": "Message-Id",
				"value": "<86DB9F5C-5F94-4C66-B34E-8AB46B757AEE@blinkops.com>"
			},
			{
				"name": "Date",
				"value": "Mon, 14 Nov 2022 16:55:45 +0200"
			},
			{
				"name": "To",
				"value": "Test <mail@blinkops.com>"
			},
			{
				"name": "X-Mailer",
				"value": "Mail Application"
			}
		],
		"body": {
			"size": 0,
			"data": ""
		}
	},
	"sizeEstimate": 713,
	"historyId": "63344",
	"internalDate": "1668437745000"
}
```

## Workflow Library Example

[Get Gmail Message and Send Results Via Email](https://library.blinkops.com/workflows/get-gmail-message-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-gmail-message-and-send-results-via-email/canvas" />
</div>
