{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/post-bridge-com/json-schema/post-bridge-com-post-dto-schema.json",
  "title": "PostDto",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/post-bridge-com-openapi.yml#/components/schemas/PostDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the post"
    },
    "caption": {
      "type": "string",
      "description": "Caption text for the post"
    },
    "status": {
      "type": "string",
      "description": "Current status of the post: scheduled, processing, or posted",
      "enum": [
        "posted",
        "scheduled",
        "processing",
        "failed"
      ]
    },
    "scheduled_at": {
      "type": [
        "object",
        "null"
      ],
      "description": "Scheduled date and time for the post"
    },
    "platform_configurations": {
      "type": [
        "object",
        "null"
      ],
      "description": "Platform-specific configurations for the post"
    },
    "social_accounts": {
      "description": "Array of social account IDs associated with the post",
      "nullable": false,
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "account_configurations": {
      "type": [
        "object",
        "null"
      ],
      "description": "Account-specific configurations for the post"
    },
    "media": {
      "type": [
        "object",
        "null"
      ],
      "description": "Array of media URLs associated with the post"
    },
    "created_at": {
      "type": "string",
      "description": "Timestamp when the post was created"
    },
    "updated_at": {
      "type": "string",
      "description": "Timestamp when the post was last updated"
    },
    "is_draft": {
      "type": "boolean",
      "description": "If true the post will not be processed until updated"
    },
    "warnings": {
      "description": "Warnings about draft behavior — e.g. platforms that will publish immediately when the draft is sent",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dashboard_url": {
      "type": "string",
      "description": "Link to this post in the Post Bridge dashboard (view, edit, or see per-platform results). Give it to the user when they ask where the post is."
    }
  },
  "required": [
    "id",
    "caption",
    "status",
    "scheduled_at",
    "platform_configurations",
    "social_accounts",
    "account_configurations",
    "media",
    "created_at",
    "updated_at",
    "is_draft",
    "dashboard_url"
  ]
}