{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tinysend-com/json-schema/tinysend-com-post-detail-schema.json",
  "title": "PostDetail",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/tinysend-com-v1-openapi.json#/components/schemas/PostDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "needs_approval": {
      "type": "boolean"
    },
    "scheduled_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "body_html": {
      "type": [
        "string",
        "null"
      ]
    },
    "body_text": {
      "type": [
        "string",
        "null"
      ]
    },
    "issues_summary": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "nullable": true
      },
      "description": "Quality automation results (links, spelling, grammar)"
    },
    "checked_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "sent_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "stats": {
      "type": "object",
      "properties": {
        "recipients": {
          "type": "integer"
        },
        "delivered": {
          "type": "integer"
        },
        "opened": {
          "type": "integer"
        },
        "clicked": {
          "type": "integer"
        },
        "bounced": {
          "type": "integer"
        }
      },
      "required": [
        "recipients",
        "delivered",
        "opened",
        "clicked",
        "bounced"
      ]
    }
  },
  "required": [
    "id",
    "subject",
    "status",
    "body_html",
    "body_text",
    "created_at",
    "sent_at"
  ]
}