{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postzen-dev/json-schema/postzen-dev-best-time-response-schema.json",
  "title": "BestTimeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postzen-dev-analytics-api-openapi.yml#/components/schemas/BestTimeResponse",
  "type": "object",
  "required": [
    "slots",
    "timezone"
  ],
  "properties": {
    "slots": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "day_of_week",
          "hour",
          "avg_engagement",
          "post_count",
          "day_name"
        ],
        "properties": {
          "day_of_week": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6,
            "description": "UTC day of week, where 0 is Sunday."
          },
          "hour": {
            "type": "integer",
            "minimum": 0,
            "maximum": 23,
            "description": "Hour of day in UTC (0–23)."
          },
          "avg_engagement": {
            "type": "number"
          },
          "post_count": {
            "type": "number"
          },
          "day_name": {
            "type": "string",
            "enum": [
              "Sunday",
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday"
            ],
            "description": "UTC weekday name corresponding to day_of_week (0 = Sunday)."
          }
        }
      }
    },
    "timezone": {
      "type": "string",
      "enum": [
        "UTC"
      ],
      "description": "Timezone used for every slot weekday and hour."
    }
  }
}