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

# Find Email

Find for an email in your Gmail account

## Input

| Property    | Type             | Required | Description                        |
| ----------- | ---------------- | -------- | ---------------------------------- |
| subject     | SHORT\_TEXT      | No       | The email subject                  |
| fromAddress | SHORT\_TEXT      | No       | The address sending the new mail   |
| to          | SHORT\_TEXT      | No       | The address receiving the new mail |
| label       | DROPDOWN         | No       | The label tagged to the mail       |
| category    | STATIC\_DROPDOWN | No       | category of the mail               |

## Sample Output

```json theme={null}
[
  {
    "messages": [
      {
        "thread": {
          "id": "382baac18543beg8",
          "historyId": "183baac185",
          "messages": [
            {
              "id": "183baac18543bef8",
              "threadId": "382baac18543beg8",
              "labelIds": [
                "UNREAD",
                "CATEGORY_SOCIAL",
                "INBOX"
              ],
              "snippet": "",
              "payload": {
                "partId": "",
                "mimeType": "multipart/alternative",
                "filename": "",
                "headers": [
                  [
                    null
                  ]
                ],
                "body": {
                  "size": 0
                },
                "parts": [
                  [
                    null
                  ]
                ]
              },
              "sizeEstimate": 107643,
              "historyId": "99742",
              "internalDate": "1665284181000"
            }
          ]
        },
        "message": {
          "id": "183baac18543bef8",
          "threadId": "382baac18543beg8",
          "labelIds": [
            "UNREAD",
            "CATEGORY_SOCIAL",
            "INBOX"
          ],
          "snippet": "",
          "payload": {
            "partId": "",
            "mimeType": "multipart/alternative",
            "filename": "",
            "headers": [
              [
                null
              ]
            ],
            "body": {
              "size": 0
            },
            "parts": [
              [
                null
              ]
            ]
          },
          "sizeEstimate": 107643,
          "historyId": "99742",
          "internalDate": "1665284181000"
        }
      }
    ],
    "resultSizeEstimate": 1
  }
]
```
