# 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`

## Inputs

- `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.
- `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
- `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"
    },
    "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"
    }
  },
  "additionalProperties": false
}
```

### Output schema

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