# List Inbox Messages

> Perform List Inbox Messages through GMail.

Source: [https://genhealth.ai/docs/workflows/integrations/gmail/gmail_list_inbox_messages](https://genhealth.ai/docs/workflows/integrations/gmail/gmail_list_inbox_messages)

Integration: [GMail](https://genhealth.ai/docs/workflows/integrations/gmail.md)

- Handler: `gmail_list_inbox_messages`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "GMail",
  "params": {
    "max_results": 25,
    "unread_only": false,
    "oldest_first": false,
    "untagged_only": false,
    "stop_on_empty_inbox": false
  },
  "handler": "gmail_list_inbox_messages"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `stop_on_empty_inbox` — Stop On Empty Inbox (boolean)
  Optional true-or-false value.
  Default: `false`
- `search_phrase` — Search Phrase (text)
  Optional text value.
- `since_days` — Since Days (number)
  Optional numeric value.
- `max_results` — Max Results (number)
  Optional numeric value.
  Default: `25`
- `with_labels` — With Labels (text)
  Optional text value.
- `without_labels` — Without Labels (text)
  Optional text value.
- `priority_labels` — Priority Labels (text)
  Optional text value.
- `oldest_first` — Oldest First (boolean)
  Optional true-or-false value.
  Default: `false`
- `untagged_only` — Untagged Only (boolean)
  Optional true-or-false value.
  Default: `false`
- `unread_only` — Unread Only (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `messages` — Messages
- `message_ids` — Message Ids
- `priority_message_ids` — Priority Message Ids
- `count` — Count
- `scanned` — Scanned
- `scan_limit_hit` — Scan Limit Hit
- `unknown_labels` — Unknown Labels
- `error` — Error
- `error_message` — Error Message
- `error_code` — Error Code

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "since_days": {
      "type": "number",
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "max_results": {
      "type": "number",
      "default": 25,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "unread_only": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "with_labels": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "oldest_first": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "search_phrase": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "untagged_only": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "without_labels": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "priority_labels": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "stop_on_empty_inbox": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "scanned": {},
    "success": {},
    "messages": {},
    "error_code": {},
    "message_ids": {},
    "error_message": {},
    "scan_limit_hit": {},
    "unknown_labels": {},
    "priority_message_ids": {}
  },
  "additionalProperties": true
}
```
