{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/muse-space/json-schema/muse-space-mail-search-input-schema.json",
  "title": "mail_search_input",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/muse-space-openapi.json#/components/schemas/mail_search_input",
  "type": "object",
  "properties": {
    "folder": {
      "default": "INBOX",
      "description": "Folder path as given by list_folders.",
      "type": "string",
      "maxLength": 255
    },
    "from": {
      "description": "Sender name or address contains this.",
      "type": "string",
      "maxLength": 200
    },
    "to": {
      "description": "Recipient name or address contains this.",
      "type": "string",
      "maxLength": 200
    },
    "subject": {
      "description": "Subject contains this. Recent mail is left out as for `text`.",
      "type": "string",
      "maxLength": 200
    },
    "text": {
      "description": "Subject or body contains this. While hiding is on, a term with a digit misses the last hour of mail, one with URL punctuation (= ? & / % : #) the last day.",
      "type": "string",
      "maxLength": 200
    },
    "since": {
      "description": "Received at or after this time: with Z or an offset, or a date, from its start in UTC.",
      "format": "date-time",
      "type": "string"
    },
    "before": {
      "description": "Received before this time: with Z or an offset, or a date, from its start in UTC.",
      "format": "date-time",
      "type": "string"
    },
    "unread": {
      "description": "True for unread only, false for read only.",
      "type": "boolean"
    },
    "flagged": {
      "description": "True for flagged only, false for unflagged only.",
      "type": "boolean"
    },
    "limit": {
      "default": 20,
      "description": "How many messages to return.",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "cursor": {
      "description": "`next_cursor` of the previous page, same filters.",
      "type": "string",
      "maxLength": 512
    }
  },
  "additionalProperties": false
}