{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reeldrop-io/json-schema/reeldrop-io-post-out-schema.json",
  "title": "PostOut",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reeldrop-io-openapi.json#/components/schemas/PostOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "workspace_id": {
      "type": "string",
      "title": "Workspace Id"
    },
    "ig_account_id": {
      "type": "string",
      "title": "Ig Account Id"
    },
    "created_by": {
      "type": "string",
      "title": "Created By"
    },
    "mode": {
      "$ref": "#/$defs/PostMode"
    },
    "status": {
      "$ref": "#/$defs/PostStatus"
    },
    "caption": {
      "type": "string",
      "title": "Caption"
    },
    "hashtags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Hashtags"
    },
    "media_urls": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Media Urls"
    },
    "media_kinds": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Media Kinds"
    },
    "media_meta": {
      "items": {
        "$ref": "#/$defs/MediaMeta"
      },
      "type": "array",
      "title": "Media Meta",
      "default": []
    },
    "reel_meta": {
      "anyOf": [
        {
          "$ref": "#/$defs/ReelMeta"
        },
        {
          "type": "null"
        }
      ]
    },
    "carousel_meta": {
      "anyOf": [
        {
          "$ref": "#/$defs/CarouselMeta"
        },
        {
          "type": "null"
        }
      ]
    },
    "story_meta": {
      "anyOf": [
        {
          "$ref": "#/$defs/StoryMeta"
        },
        {
          "type": "null"
        }
      ]
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scheduled At"
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Published At"
    },
    "schedule_arn": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule Arn"
    },
    "ig_container_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ig Container Id"
    },
    "ig_permalink": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ig Permalink"
    },
    "publish_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Publish Error"
    },
    "publish_warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Publish Warnings",
      "default": []
    },
    "automation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Automation Id"
    },
    "first_comment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Comment"
    },
    "first_comment_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Comment Error"
    },
    "ai_caption_used": {
      "type": "boolean",
      "title": "Ai Caption Used"
    },
    "ai_hashtags_used": {
      "type": "boolean",
      "title": "Ai Hashtags Used"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "workspace_id",
    "ig_account_id",
    "created_by",
    "mode",
    "status",
    "caption",
    "hashtags",
    "media_urls",
    "media_kinds",
    "reel_meta",
    "carousel_meta",
    "story_meta",
    "scheduled_at",
    "published_at",
    "schedule_arn",
    "ig_container_id",
    "ig_permalink",
    "publish_error",
    "automation_id",
    "first_comment",
    "first_comment_error",
    "ai_caption_used",
    "ai_hashtags_used",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "CarouselMeta": {
      "properties": {
        "carousel_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Carousel Id"
        },
        "slide_count": {
          "type": "integer",
          "title": "Slide Count",
          "default": 0
        }
      },
      "type": "object",
      "title": "CarouselMeta",
      "description": "Carousel-specific metadata fields."
    },
    "MediaMeta": {
      "properties": {
        "alt_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alt Text"
        },
        "user_tags": {
          "items": {
            "$ref": "#/$defs/TaggedUser"
          },
          "type": "array",
          "title": "User Tags"
        }
      },
      "type": "object",
      "title": "MediaMeta",
      "description": "Alt text and tagged accounts for one item of a feed post or carousel.\n\nPhotos only: Instagram's `alt_text` is image-only, and a tag on a video\ncarousel item takes no position, which the composer has no UI for."
    },
    "PostMode": {
      "type": "string",
      "enum": [
        "post",
        "reel",
        "story",
        "carousel"
      ],
      "title": "PostMode"
    },
    "PostStatus": {
      "type": "string",
      "enum": [
        "draft",
        "scheduled",
        "publishing",
        "published",
        "failed"
      ],
      "title": "PostStatus"
    },
    "ReelMeta": {
      "properties": {
        "audio_start_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Audio Start Ms"
        },
        "cover_frame_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cover Frame Ms"
        },
        "duration_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Duration Ms"
        },
        "share_to_feed": {
          "type": "boolean",
          "title": "Share To Feed",
          "default": true
        },
        "collaborators": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Collaborators"
        },
        "allow_comments": {
          "type": "boolean",
          "title": "Allow Comments",
          "default": true
        },
        "allow_remixing": {
          "type": "boolean",
          "title": "Allow Remixing",
          "default": true
        },
        "is_trial": {
          "type": "boolean",
          "title": "Is Trial",
          "default": false
        },
        "trial_graduation": {
          "anyOf": [
            {
              "$ref": "#/$defs/TrialGraduation"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "title": "ReelMeta",
      "description": "Reel-specific metadata fields.\n\nThere is no audio_name. It sat here as a picked track (\"Espresso - Sabrina\nCarpenter\") that nothing ever wrote or sent, and Instagram's `audio_name`\ncould not have delivered that anyway: it only renames the reel's own\noriginal audio, once, and cannot attach a licensed track (#1375)."
    },
    "StoryMeta": {
      "properties": {
        "is_video": {
          "type": "boolean",
          "title": "Is Video",
          "default": false
        }
      },
      "type": "object",
      "title": "StoryMeta",
      "description": "Story-specific metadata fields.\n\nDeliberately minimal — Instagram's Content Publishing API only accepts\nimage_url/video_url for media_type=STORIES; caption, share_to_feed,\nlocation_id, and comment settings are all invalid for stories and\nrejected by the container-create call. user_tags was dropped: IG only\nresolves tags for Business/Creator accounts, so most tags failed the\nwhole story with a terminal \"Invalid user id\" error."
    },
    "TaggedUser": {
      "properties": {
        "username": {
          "type": "string",
          "title": "Username"
        },
        "x": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "X"
        },
        "y": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Y"
        }
      },
      "type": "object",
      "required": [
        "username",
        "x",
        "y"
      ],
      "title": "TaggedUser",
      "description": "An Instagram account tagged on a photo, pinned at a point on it.\n\nx/y are fractions of the image's width and height from its top-left corner,\nwhich is what the Graph API's `user_tags` wants for an image."
    },
    "TrialGraduation": {
      "type": "string",
      "enum": [
        "MANUAL",
        "SS_PERFORMANCE"
      ],
      "title": "TrialGraduation",
      "description": "Instagram's `trial_params.graduation_strategy` values, verbatim.\n\nMANUAL — the creator graduates (shares to followers) from the Instagram app.\nSS_PERFORMANCE — Instagram auto-graduates the reel if it performs well, by\nits own undisclosed threshold. These are the ONLY two options the Content\nPublishing API exposes: there is no endpoint to graduate a trial reel from\noutside the app, and no media field that reports whether it has graduated."
    }
  }
}