{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mcpemails-com/json-schema/mcpemails-com-post-your-webhook-request-schema.json",
  "title": "PostYourWebhookRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/mcpemails-com-openapi-generated.yml#/components/schemas/PostYourWebhookRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Event identifier, same as MCPEmails-Event-Id"
    },
    "type": {
      "type": "string",
      "description": "Event type, e.g., message.received"
    },
    "created_at": {
      "type": "string",
      "description": "ISO‑8601 timestamp of the event"
    },
    "workspace_id": {
      "type": "string",
      "description": "Identifier of the workspace"
    },
    "inbox_id": {
      "type": "string",
      "description": "Identifier of the inbox where mail arrived"
    },
    "folder": {
      "type": "string",
      "description": "Folder name, e.g., INBOX"
    },
    "count": {
      "type": "integer",
      "description": "Number of messages that arrived"
    },
    "message_ids": {
      "type": "array",
      "description": "Array of message IDs for the new messages (up to 10)"
    }
  },
  "required": [
    "id",
    "type",
    "created_at",
    "workspace_id",
    "inbox_id",
    "folder",
    "count",
    "message_ids"
  ]
}