{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/propertypixel-app/json-schema/propertypixel-app-listing-video-schema.json",
  "title": "ListingVideo",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/propertypixel-app-openapi.json#/components/schemas/ListingVideo",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "listing_video"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "title": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "description": "The current revision. Pass it as base_version to edit tools so a stale edit is refused."
    },
    "is_draft": {
      "type": "boolean",
      "description": "True until AI video has been generated for at least one photo. Drafts can't be exported."
    },
    "template_id": {
      "type": "string",
      "enum": [
        "calm_luxury",
        "fast_social",
        "bright_modern",
        "classic_tour",
        "cinematic",
        "warm_welcome",
        "beat_drop",
        "house_tour",
        "golden_hour",
        "slow_sunday",
        "clean_cuts"
      ]
    },
    "watermarked": {
      "type": "boolean",
      "description": "Trial account: exported files carry a PropertyPixel watermark."
    },
    "credits": {
      "type": "object",
      "properties": {
        "per_photo": {
          "type": "integer",
          "description": "A photo's first AI clip in this video."
        },
        "per_remake": {
          "type": "integer",
          "description": "Another AI clip for a photo already paid for in this video."
        }
      },
      "required": [
        "per_photo",
        "per_remake"
      ],
      "additionalProperties": false
    },
    "duration_sec": {
      "type": "number",
      "description": "Sum of the clip lengths."
    },
    "shots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Clip id, e.g. s3. Edit ops refer to clips by this id."
          },
          "photo_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_job_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The photo version shown: an edit's job id, or null for the original."
          },
          "room_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "motion": {
            "type": "string",
            "enum": [
              "pan_zoom",
              "ai"
            ],
            "description": "pan_zoom is a free still photo with a camera move; ai is a generated AI video clip. A clip that is ai can never go back to pan_zoom."
          },
          "move": {
            "type": "string",
            "enum": [
              "push_in",
              "pull_out",
              "pan_left",
              "pan_right",
              "orbit",
              "rise_up",
              "tilt_up",
              "fly_in",
              "drift"
            ]
          },
          "duration_sec": {
            "type": "number"
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          },
          "clip": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "processing",
                      "ready",
                      "failed"
                    ]
                  },
                  "preview_url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uri"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Signed for about an hour."
                  }
                },
                "required": [
                  "id",
                  "status",
                  "preview_url"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The AI clip for an ai shot; null for still photos."
          }
        },
        "required": [
          "id",
          "photo_id",
          "source_job_id",
          "room_type",
          "motion",
          "move",
          "duration_sec",
          "caption",
          "clip"
        ],
        "additionalProperties": false
      },
      "description": "The clips in play order."
    },
    "settings": {
      "type": "object",
      "properties": {
        "transition": {
          "type": "object",
          "properties": {
            "preset": {
              "type": "string"
            },
            "duration_sec": {
              "type": "number"
            }
          },
          "required": [
            "preset",
            "duration_sec"
          ],
          "additionalProperties": false
        },
        "opening": {
          "type": "object",
          "properties": {
            "preset": {
              "type": "string"
            },
            "duration_sec": {
              "type": "number"
            }
          },
          "required": [
            "preset",
            "duration_sec"
          ],
          "additionalProperties": false
        },
        "closing": {
          "type": "object",
          "properties": {
            "preset": {
              "type": "string"
            },
            "duration_sec": {
              "type": "number"
            }
          },
          "required": [
            "preset",
            "duration_sec"
          ],
          "additionalProperties": false
        },
        "beat": {
          "type": "object",
          "properties": {
            "cuts": {
              "type": "boolean"
            },
            "pulse": {
              "type": "boolean"
            }
          },
          "required": [
            "cuts",
            "pulse"
          ],
          "additionalProperties": false
        },
        "music": {
          "type": "object",
          "properties": {
            "track_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "volume": {
              "type": "number"
            }
          },
          "required": [
            "track_id",
            "volume"
          ],
          "additionalProperties": false
        },
        "voiceover": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "script": {
              "type": "string"
            },
            "voice_id": {
              "type": "string"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "pending",
                    "processing",
                    "ready",
                    "failed"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "enabled",
            "script",
            "voice_id",
            "status"
          ],
          "additionalProperties": false
        },
        "captions": {
          "type": "boolean"
        },
        "intro": {
          "type": "object",
          "properties": {
            "address": {
              "type": [
                "string",
                "null"
              ]
            },
            "price": {
              "type": [
                "string",
                "null"
              ]
            },
            "beds": {
              "type": [
                "number",
                "null"
              ]
            },
            "baths": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "address",
            "price",
            "beds",
            "baths"
          ],
          "additionalProperties": false
        },
        "intro_card": {
          "type": "boolean"
        },
        "end_card": {
          "type": "boolean"
        },
        "disclosure": {
          "type": "boolean"
        },
        "cards": {
          "type": "object",
          "properties": {
            "style": {
              "type": "string"
            },
            "brand_color": {
              "type": "string"
            },
            "font": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "style",
            "brand_color",
            "font"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "transition",
        "opening",
        "closing",
        "beat",
        "music",
        "voiceover",
        "captions",
        "intro",
        "intro_card",
        "end_card",
        "disclosure",
        "cards"
      ],
      "additionalProperties": false
    },
    "photos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "photo_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "label": {
            "type": "string"
          },
          "room_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid": {
            "type": "boolean",
            "description": "This photo's AI clip is paid for here; new clips of it cost per_remake."
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source_job_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "label": {
                  "type": "string"
                },
                "favourite": {
                  "type": "boolean"
                }
              },
              "required": [
                "source_job_id",
                "label",
                "favourite"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "photo_id",
          "label",
          "room_type",
          "paid",
          "versions"
        ],
        "additionalProperties": false
      },
      "description": "Every photo in the project that can be added (add_shot) and its versions (set_shot_version)."
    },
    "exports": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "format": {
            "$ref": "#/$defs/ListingVideoFormat"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "processing",
              "ready",
              "failed"
            ]
          },
          "progress": {
            "description": "Percent rendered while processing; null otherwise.",
            "type": [
              "number",
              "null"
            ]
          },
          "edit_version": {
            "type": "integer"
          },
          "current": {
            "type": "boolean",
            "description": "True when this file shows the video's current version."
          },
          "download_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "description": "When ready: a signed MP4 download link, valid for about an hour."
          },
          "size_bytes": {
            "type": [
              "integer",
              "null"
            ]
          },
          "duration_sec": {
            "type": [
              "number",
              "null"
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "retryable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "format",
          "status",
          "progress",
          "edit_version",
          "current",
          "download_url",
          "size_bytes",
          "duration_sec",
          "error",
          "created_at"
        ],
        "additionalProperties": false
      },
      "description": "Rendered files, newest first. Export with export_listing_video."
    },
    "share_url": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "studio_url": {
      "type": "string",
      "format": "uri",
      "description": "Open the video editor in the PropertyPixel Studio."
    },
    "poll_after_ms": {
      "description": "Clips, voiceover or files are still being made: call get_listing_video again after this long. Null when nothing is in progress.",
      "type": [
        "integer",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "id",
    "project_id",
    "title",
    "version",
    "is_draft",
    "template_id",
    "watermarked",
    "credits",
    "duration_sec",
    "shots",
    "settings",
    "photos",
    "exports",
    "share_url",
    "studio_url",
    "poll_after_ms",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "$defs": {
    "ListingVideoFormat": {
      "type": "string",
      "enum": [
        "portrait_9x16",
        "landscape_16x9",
        "square_1x1"
      ],
      "description": "Shape of a rendered file: portrait_9x16 (Reels, TikTok, Stories), landscape_16x9 (YouTube, MLS) or square_1x1."
    }
  }
}