{
  "openapi": "3.0.3",
  "info": {
    "title": "Post Engineer API",
    "version": "1.4.0",
    "description": "Generate and schedule short videos for social accounts. Authenticate with an API key created in the dashboard: Authorization: Bearer <key>."
  },
  "servers": [
    {
      "url": "https://post-engineer.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "Stable error code."
          },
          "field": {
            "type": "string",
            "description": "Offending request field, when known."
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  },
  "paths": {
    "/api/account/connect-url": {
      "post": {
        "operationId": "post_accounts_connect_connect_url",
        "summary": "accounts connect",
        "tags": [
          "account"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "auth_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "https URL to open in a browser."
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "youtube",
                      "instagram",
                      "linkedin",
                      "threads",
                      "facebook",
                      "pinterest",
                      "fanvue"
                    ]
                  }
                },
                "required": [
                  "provider"
                ]
              }
            }
          }
        }
      }
    },
    "/api/account": {
      "get": {
        "operationId": "get_accounts_list",
        "summary": "accounts list",
        "tags": [
          "account"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authenticated": {
                      "type": "boolean"
                    },
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_accounts_disconnect",
        "summary": "accounts disconnect",
        "tags": [
          "account"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "youtube",
                "instagram",
                "bluesky",
                "linkedin",
                "threads",
                "facebook",
                "pinterest",
                "3speak",
                "rumble",
                "fanvue",
                "telegram"
              ]
            }
          },
          {
            "name": "providerAccountId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/bluesky-connect": {
      "post": {
        "operationId": "post_accounts_connect_bluesky_connect",
        "summary": "accounts connect",
        "tags": [
          "bluesky-connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "accountId": {
                      "type": "string"
                    },
                    "did": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Bluesky rejected the handle or app password (code BLUESKY_CREDENTIAL_REJECTED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "handle": {
                    "type": "string"
                  },
                  "appPassword": {
                    "type": "string"
                  }
                },
                "required": [
                  "handle",
                  "appPassword"
                ]
              }
            }
          }
        }
      }
    },
    "/api/threespeak-connect": {
      "post": {
        "operationId": "post_accounts_connect_threespeak_connect",
        "summary": "accounts connect",
        "tags": [
          "threespeak-connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "accountId": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "3Speak rejected the username or posting key (code THREESPEAK_CREDENTIAL_REJECTED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string"
                  },
                  "postingKey": {
                    "type": "string"
                  }
                },
                "required": [
                  "username",
                  "postingKey"
                ]
              }
            }
          }
        }
      }
    },
    "/api/rumble-connect": {
      "post": {
        "operationId": "post_accounts_connect_rumble_connect",
        "summary": "accounts connect",
        "tags": [
          "rumble-connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "accountId": {
                      "type": "string"
                    },
                    "channelId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channelId": {
                    "type": "string"
                  },
                  "accessToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "channelId",
                  "accessToken"
                ]
              }
            }
          }
        }
      }
    },
    "/api/telegram-connect": {
      "post": {
        "operationId": "post_accounts_connect_telegram_connect",
        "summary": "accounts connect",
        "tags": [
          "telegram-connect"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "accountId": {
                      "type": "string"
                    },
                    "chatId": {
                      "type": "string"
                    },
                    "chatType": {
                      "type": "string",
                      "enum": [
                        "channel",
                        "group",
                        "supergroup"
                      ]
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The bot is not in the chat or cannot post there (code TELEGRAM_BOT_NOT_MEMBER or TELEGRAM_BOT_CANNOT_POST).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Telegram could not find the chat (code TELEGRAM_CHAT_NOT_FOUND).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Telegram rejected the bot token (code TELEGRAM_TOKEN_REJECTED).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "botToken": {
                    "type": "string",
                    "description": "Bot token issued by @BotFather."
                  },
                  "chatId": {
                    "type": "string",
                    "description": "Public @username or numeric chat ID of the channel or group."
                  },
                  "chatType": {
                    "type": "string",
                    "enum": [
                      "channel",
                      "group"
                    ],
                    "description": "The destination kind; checked against the real chat."
                  }
                },
                "required": [
                  "botToken",
                  "chatId",
                  "chatType"
                ]
              }
            }
          }
        }
      }
    },
    "/api/persona/identity-card": {
      "get": {
        "operationId": "get_persona_media_get_card",
        "summary": "persona media get card",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "identityCard": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "type": "integer",
                          "enum": [
                            1,
                            2
                          ]
                        },
                        "identity": {
                          "type": "object",
                          "properties": {
                            "face": {
                              "type": "object",
                              "properties": {
                                "shape": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "eyes": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "eye_color": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "eyebrows": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "nose": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "lips": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "teeth": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "smile": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "skin": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "jawline": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "cheekbones": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "chin": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "forehead": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "ears": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "hair": {
                                  "type": "object",
                                  "properties": {
                                    "color": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    },
                                    "style": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    },
                                    "length": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    },
                                    "texture": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    },
                                    "parting": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "facial_hair": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "marks": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "tattoos": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                }
                              },
                              "additionalProperties": false
                            },
                            "body": {
                              "type": "object",
                              "properties": {
                                "build": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "height": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "shoulders": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "arms": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "hands": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "waist": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "hips": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "legs": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "posture": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "proportions": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        },
                        "defaults": {
                          "type": "object",
                          "properties": {
                            "style": {
                              "type": "string",
                              "enum": [
                                "casual",
                                "business",
                                "business_casual",
                                "formal",
                                "elegant",
                                "romantic",
                                "sensual",
                                "sporty",
                                "athleisure",
                                "streetwear",
                                "boho",
                                "minimalist",
                                "vintage",
                                "glamorous",
                                "edgy",
                                "cozy",
                                "beach",
                                "party",
                                "outdoor"
                              ]
                            },
                            "outfit": {
                              "type": "object",
                              "properties": {
                                "top": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "bottom": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "one_piece": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "outerwear": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "footwear": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "accessories": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                }
                              },
                              "additionalProperties": false,
                              "description": "Clothing only, one line per slot. one_piece cannot be combined with top or bottom. Nudity, sexualised clothing and words about the person (hair, skin, body) are rejected."
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false,
                      "required": [
                        "version",
                        "identity"
                      ],
                      "description": "Versioned identity card (version 1 or 2; new cards are version 2; at most 4096 bytes once stored, every level strict, at least one identity trait). A version 1 card carries only the original leaves and no style; defaults must name a style or an outfit. It describes a real person's physical traits: fill it only with their consent. Advice for the agent's image tool, not enforcement.",
                      "nullable": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key that does not include this persona.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "personaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Reads the identity card of one persona. It is never part of the persona list or a share page."
      },
      "post": {
        "operationId": "post_persona_media_render_prompt",
        "summary": "persona media render prompt",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "prompt": {
                      "type": "string",
                      "description": "The deterministic edit prompt; identity text comes only from the card."
                    },
                    "suggestedDescription": {
                      "type": "string",
                      "maxLength": 500,
                      "description": "A library description made from the outfit, setting, lighting and framing, never from the identity."
                    },
                    "cardVersion": {
                      "type": "integer",
                      "enum": [
                        1,
                        2
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key that does not include this persona.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The persona has no identity card (IDENTITY_CARD_MISSING).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "personaId": {
                    "type": "string"
                  },
                  "scene": {
                    "type": "object",
                    "properties": {
                      "style": {
                        "type": "string",
                        "enum": [
                          "casual",
                          "business",
                          "business_casual",
                          "formal",
                          "elegant",
                          "romantic",
                          "sensual",
                          "sporty",
                          "athleisure",
                          "streetwear",
                          "boho",
                          "minimalist",
                          "vintage",
                          "glamorous",
                          "edgy",
                          "cozy",
                          "beach",
                          "party",
                          "outdoor"
                        ],
                        "description": "Clothing style for this photo only. It overrides defaults.style and, without outfit slots, replaces the default outfit."
                      },
                      "outfit": {
                        "type": "object",
                        "properties": {
                          "top": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "bottom": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "one_piece": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "outerwear": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "footwear": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "accessories": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          }
                        },
                        "additionalProperties": false,
                        "description": "Clothing only, one line per slot. one_piece cannot be combined with top or bottom. Nudity, sexualised clothing and words about the person (hair, skin, body) are rejected."
                      },
                      "pose": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80,
                        "description": "Free text about the pose. Words about the person (hair, skin, body) are rejected."
                      },
                      "setting": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80,
                        "description": "Free text about the place. Words about the person (hair, skin, body) are rejected."
                      },
                      "lighting": {
                        "type": "string",
                        "enum": [
                          "soft_daylight",
                          "golden_hour",
                          "overcast",
                          "studio",
                          "warm_indoor",
                          "night_city"
                        ]
                      },
                      "framing": {
                        "type": "string",
                        "enum": [
                          "close_up",
                          "head_and_shoulders",
                          "waist_up",
                          "full_body"
                        ]
                      },
                      "aspect": {
                        "type": "string",
                        "enum": [
                          "9:16",
                          "4:5",
                          "1:1",
                          "16:9"
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "lighting",
                      "framing"
                    ],
                    "description": "Only what changes per photo: style, outfit slots, pose, setting, lighting, framing, aspect (at most 2048 bytes). Identity, face, body and version keys are rejected."
                  }
                },
                "required": [
                  "personaId",
                  "scene"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "description": "Renders the image prompt for one scene from the stored card. Nothing is generated or stored: the prompt is advice for the agent's own image tool."
      }
    },
    "/api/persona/list": {
      "get": {
        "operationId": "get_personas_list",
        "summary": "personas list",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authenticated": {
                      "type": "boolean"
                    },
                    "personas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "avatarUrl": {
                            "type": "string"
                          },
                          "photoUrl": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/persona": {
      "post": {
        "operationId": "post_personas_create",
        "summary": "personas create",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "personaId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "identityCard": {
                    "type": "string",
                    "description": "The identity card as a JSON string (at most 4096 bytes). Send the JSON literal null on PATCH to clear it; omit the field to leave it unchanged."
                  },
                  "name": {
                    "type": "string",
                    "description": "Required on create."
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary",
                    "description": "Optional. PNG, JPEG or WebP."
                  },
                  "publishingAccounts": {
                    "type": "string",
                    "description": "Create only: JSON object of account ids per provider."
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch_personas_update",
        "summary": "personas update",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "identityCard": {
                    "type": "string",
                    "description": "The identity card as a JSON string (at most 4096 bytes). Send the JSON literal null on PATCH to clear it; omit the field to leave it unchanged."
                  },
                  "name": {
                    "type": "string",
                    "description": "Required on create."
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary",
                    "description": "Optional. PNG, JPEG or WebP."
                  },
                  "publishingAccounts": {
                    "type": "string",
                    "description": "Create only: JSON object of account ids per provider."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "personaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "operationId": "delete_personas_delete",
        "summary": "personas delete",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "personaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/media/publish-existing": {
      "post": {
        "operationId": "post_publish_video_publish_existing",
        "summary": "publish video publish existing",
        "tags": [
          "media"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "scheduled",
                        "asap"
                      ]
                    },
                    "replayed": {
                      "type": "boolean"
                    },
                    "schedule": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      }
                    },
                    "slots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "slot_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "title": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "mediaKind": {
                      "type": "string",
                      "enum": [
                        "upload",
                        "image"
                      ]
                    },
                    "publishes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string"
                          },
                          "success": {
                            "type": "boolean"
                          },
                          "results": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            }
                          }
                        }
                      }
                    },
                    "logId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "TRIAL_EXPIRED: the free trial ended; publishing and scheduling are blocked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The video upload was already used to publish, is already scheduled, or is not completed yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "The video upload expired before publishing. Mint a new one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The finished video is over the 2GB limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The video service is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "media": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "upload"
                            ]
                          },
                          "uploadId": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [
                          "kind",
                          "uploadId"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "image"
                            ]
                          },
                          "imageData": {
                            "type": "string",
                            "description": "Base64 image bytes (JPEG or PNG, at most 8 MB)."
                          },
                          "contentType": {
                            "type": "string",
                            "enum": [
                              "image/jpeg",
                              "image/png"
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "imageData",
                          "contentType"
                        ]
                      }
                    ]
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "personaId": {
                    "type": "string"
                  },
                  "publishing": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "scheduled",
                          "asap"
                        ]
                      },
                      "providers": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "minItems": 1
                      },
                      "accounts": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "schedule": {
                        "type": "object",
                        "properties": {
                          "publishAt": {
                            "type": "string",
                            "description": "The one moment to publish (3h-30d ahead): with an offset, or wall-clock in timezone."
                          },
                          "timezone": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "publishAt",
                          "timezone"
                        ]
                      },
                      "pinterestBoardId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode",
                      "providers"
                    ]
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "privacyStatus": {
                    "type": "string"
                  },
                  "caption": {
                    "type": "string"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Retry with the same key: scheduled replays the schedule, asap replays the recorded posts per account."
                  }
                },
                "required": [
                  "media",
                  "title",
                  "description",
                  "publishing"
                ]
              }
            }
          }
        }
      }
    },
    "/api/metrics": {
      "get": {
        "operationId": "get_insights_post_metrics",
        "summary": "insights post metrics",
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "truncated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "28d"
              ]
            }
          },
          {
            "name": "persona",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "account",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "angle",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/metrics/last-24h": {
      "get": {
        "operationId": "get_insights_last_day",
        "summary": "insights last day",
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "views": {
                          "type": "number"
                        },
                        "engagement": {
                          "type": "number"
                        },
                        "videos": {
                          "type": "number"
                        },
                        "measurements": {
                          "type": "number"
                        }
                      }
                    },
                    "skipped": {
                      "type": "object",
                      "properties": {
                        "noBaseline": {
                          "type": "number"
                        },
                        "stale": {
                          "type": "number"
                        }
                      }
                    },
                    "counterResets": {
                      "type": "number"
                    },
                    "truncated": {
                      "type": "boolean"
                    },
                    "asOf": {
                      "type": "string",
                      "nullable": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "persona",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "account",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/metrics/retention-curve": {
      "get": {
        "operationId": "get_insights_retention_curve",
        "summary": "insights retention curve",
        "tags": [
          "metrics"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "points": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ratio": {
                            "type": "number"
                          },
                          "audienceWatchRatio": {
                            "type": "number"
                          },
                          "relativeRetentionPerformance": {
                            "type": "number",
                            "nullable": true
                          }
                        }
                      }
                    },
                    "startDate": {
                      "type": "string"
                    },
                    "endDate": {
                      "type": "string"
                    },
                    "provisional": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "YOUTUBE_ANALYTICS_SCOPE_MISSING or YOUTUBE_RECONNECT_REQUIRED: reconnect YouTube.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "YOUTUBE_ANALYTICS_REJECTED or YOUTUBE_ANALYTICS_UNAVAILABLE: retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "account",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "video",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/share-links": {
      "post": {
        "operationId": "post_insights_share_link_create",
        "summary": "insights share link create",
        "tags": [
          "share-links"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "personaIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "nullable": true,
                      "description": "null: the page shows every persona. A list limits it to those personas."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "null: the link never expires."
                    },
                    "token": {
                      "type": "string",
                      "description": "Shown once, never again."
                    },
                    "path": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "description": "The public link. Treat it as a secret: anyone who has it can read the page."
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage share links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "A persona in personaIds is unknown, or not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "You already have 10 active share links (SHARE_LINK_LIMIT).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "personaIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 50,
                    "description": "Limit the page to these personas. Omit for every persona."
                  },
                  "expiresInDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365,
                    "description": "Omit for a link that never expires."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "description": "Creates a public read-only link (no login) to the metrics summary of the first 7 days and this week's posts. The token is returned once; only its hash is stored. At most 10 links can be active at a time."
      },
      "get": {
        "operationId": "get_insights_share_link_list",
        "summary": "insights share link list",
        "tags": [
          "share-links"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "links": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "personaIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "nullable": true,
                            "description": "null: the page shows every persona. A list limits it to those personas."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "null: the link never expires."
                          },
                          "revokedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true
                          },
                          "lastViewedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true
                          }
                        },
                        "required": [
                          "id",
                          "personaIds",
                          "createdAt",
                          "expiresAt",
                          "revokedAt",
                          "lastViewedAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage share links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "description": "Lists your share links, newest first, without the token."
      }
    },
    "/api/share-links/{id}": {
      "delete": {
        "operationId": "delete_insights_share_link_revoke",
        "summary": "insights share link revoke",
        "tags": [
          "share-links"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "alreadyRevoked": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage share links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown share link, or not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Revokes a share link at once. Revoking a revoked link succeeds with alreadyRevoked true."
      }
    },
    "/api/pinterest/boards": {
      "get": {
        "operationId": "get_accounts_list_boards",
        "summary": "accounts list boards",
        "tags": [
          "pinterest"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "boards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string",
                            "nullable": true
                          },
                          "description": {
                            "type": "string",
                            "nullable": true
                          }
                        },
                        "required": [
                          "id"
                        ]
                      }
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/posts/{id}": {
      "get": {
        "operationId": "get_posts_get",
        "summary": "posts get",
        "tags": [
          "posts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "slot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "schedule": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "persona": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "nullable": true
                    },
                    "prompt": {
                      "type": "object",
                      "additionalProperties": true,
                      "nullable": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/schedule": {
      "get": {
        "operationId": "get_schedules_list",
        "summary": "schedules list",
        "tags": [
          "schedule"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "schedules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "persona_id": {
                            "type": "string",
                            "nullable": true
                          },
                          "providers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "youtube_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "instagram_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "bluesky_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "linkedin_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "threads_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "facebook_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "pinterest_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "threespeak_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "rumble_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "fanvue_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "telegram_account_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "days_of_week": {
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          },
                          "start_hour": {
                            "type": "integer"
                          },
                          "end_hour": {
                            "type": "integer"
                          },
                          "posts_per_day": {
                            "type": "integer"
                          },
                          "timezone": {
                            "type": "string"
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "publish_mode": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_schedules_cancel",
        "summary": "schedules cancel",
        "tags": [
          "schedule"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "cancelledSlotIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/schedule/slots/{slotId}": {
      "get": {
        "operationId": "get_schedules_get_slot",
        "summary": "schedules get slot",
        "tags": [
          "schedule"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "slotId is the slot id returned by publish-existing. The slot post detail fields are returned at the top level next to success."
      },
      "patch": {
        "operationId": "patch_schedules_update_slot_title",
        "summary": "schedules update slot title",
        "tags": [
          "schedule"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "title"
                ]
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "operationId": "delete_schedules_delete_slot",
        "summary": "schedules delete slot",
        "tags": [
          "schedule"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/schedule/status": {
      "get": {
        "operationId": "get_posts_list",
        "summary": "posts list",
        "tags": [
          "schedule"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "upcoming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "recent": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "slots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      },
                      "description": "Range mode only: every slot with slot_at in [from, to)."
                    },
                    "truncated": {
                      "type": "boolean",
                      "description": "Range mode only: true when the slot cap was hit."
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/persona/delete-preview": {
      "get": {
        "operationId": "get_personas_delete",
        "summary": "personas delete",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "persona": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "schedules": {
                          "type": "integer"
                        },
                        "upcomingSlots": {
                          "type": "integer"
                        },
                        "publishedSlots": {
                          "type": "integer"
                        },
                        "failedSlots": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "personaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/persona/publishing-accounts": {
      "get": {
        "operationId": "get_accounts_get_persona_publishing",
        "summary": "accounts get persona publishing",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "defaults": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "personaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "put": {
        "operationId": "put_accounts_set_persona_publishing",
        "summary": "accounts set persona publishing",
        "tags": [
          "persona"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "defaults": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "accounts": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "description": "Account ids per provider."
                  }
                },
                "required": [
                  "accounts"
                ]
              }
            }
          }
        },
        "parameters": [
          {
            "name": "personaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/tool-config": {
      "get": {
        "operationId": "get_tool_config_get",
        "summary": "tool config get",
        "tags": [
          "tool-config"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "searchTool": {
                      "type": "string",
                      "enum": [
                        "tavily",
                        "exa",
                        "own"
                      ],
                      "nullable": true
                    },
                    "stockSources": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "pexels",
                          "pixabay",
                          "coverr"
                        ]
                      }
                    },
                    "keysPresent": {
                      "type": "object",
                      "properties": {
                        "tavily": {
                          "type": "boolean"
                        },
                        "exa": {
                          "type": "boolean"
                        },
                        "pexels": {
                          "type": "boolean"
                        },
                        "pixabay": {
                          "type": "boolean"
                        },
                        "coverr": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "tavily",
                        "exa",
                        "pexels",
                        "pixabay",
                        "coverr"
                      ]
                    },
                    "keysLast4": {
                      "type": "object",
                      "properties": {
                        "tavily": {
                          "type": "string",
                          "nullable": true
                        },
                        "exa": {
                          "type": "string",
                          "nullable": true
                        },
                        "pexels": {
                          "type": "string",
                          "nullable": true
                        },
                        "pixabay": {
                          "type": "string",
                          "nullable": true
                        },
                        "coverr": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "required": [
                        "tavily",
                        "exa",
                        "pexels",
                        "pixabay",
                        "coverr"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put_tool_config_save",
        "summary": "tool config save",
        "tags": [
          "tool-config"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "configured": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "searchTool": {
                      "type": "string",
                      "enum": [
                        "tavily",
                        "exa",
                        "own"
                      ],
                      "nullable": true
                    },
                    "stockSources": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "pexels",
                          "pixabay",
                          "coverr"
                        ]
                      }
                    },
                    "keysPresent": {
                      "type": "object",
                      "properties": {
                        "tavily": {
                          "type": "boolean"
                        },
                        "exa": {
                          "type": "boolean"
                        },
                        "pexels": {
                          "type": "boolean"
                        },
                        "pixabay": {
                          "type": "boolean"
                        },
                        "coverr": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "tavily",
                        "exa",
                        "pexels",
                        "pixabay",
                        "coverr"
                      ]
                    },
                    "keysLast4": {
                      "type": "object",
                      "properties": {
                        "tavily": {
                          "type": "string",
                          "nullable": true
                        },
                        "exa": {
                          "type": "string",
                          "nullable": true
                        },
                        "pexels": {
                          "type": "string",
                          "nullable": true
                        },
                        "pixabay": {
                          "type": "string",
                          "nullable": true
                        },
                        "coverr": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "required": [
                        "tavily",
                        "exa",
                        "pexels",
                        "pixabay",
                        "coverr"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "searchTool": {
                    "type": "string",
                    "enum": [
                      "tavily",
                      "exa",
                      "own"
                    ],
                    "nullable": true
                  },
                  "stockSources": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "pexels",
                        "pixabay",
                        "coverr"
                      ]
                    }
                  },
                  "keys": {
                    "type": "object",
                    "properties": {
                      "tavily": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "exa": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "pexels": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "pixabay": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "coverr": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    }
                  }
                },
                "required": [
                  "searchTool",
                  "stockSources",
                  "keys"
                ]
              }
            }
          }
        }
      }
    },
    "/api/upload-content": {
      "post": {
        "operationId": "post_publish_video_from_file",
        "summary": "publish video from file",
        "tags": [
          "upload-content"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "TRIAL_EXPIRED: the free trial ended; publishing is blocked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "youtube",
                      "instagram",
                      "bluesky",
                      "linkedin",
                      "threads",
                      "facebook",
                      "pinterest",
                      "3speak",
                      "rumble",
                      "fanvue",
                      "telegram"
                    ]
                  },
                  "userId": {
                    "type": "string"
                  }
                },
                "required": [
                  "provider"
                ]
              }
            }
          }
        },
        "description": "Provider-specific form fields (video file, title, caption) are read by the provider handler; see the MCP publish_video (action: from_file) tool."
      }
    },
    "/api/videos/upload-url": {
      "post": {
        "operationId": "post_publish_video_create_upload",
        "summary": "publish video create upload",
        "tags": [
          "videos"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "uploadId": {
                      "type": "string"
                    },
                    "signedUrl": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "storagePath": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string"
                    },
                    "maxBytes": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "TRIAL_EXPIRED: the free trial ended; uploading for publishing is blocked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Declared size over the 2GB video or 8 MB image limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The signed upload URL could not be created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contentType": {
                    "type": "string",
                    "enum": [
                      "video/mp4",
                      "video/quicktime",
                      "image/jpeg",
                      "image/png"
                    ]
                  },
                  "sizeBytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483648
                  }
                },
                "required": [
                  "contentType",
                  "sizeBytes"
                ]
              }
            }
          }
        },
        "description": "Mint a signed upload: returns the uploadId, the signedUrl to PUT the bytes to directly, and the expiry. The upload is bound to the caller and carries a video (capped at 2GB) or a JPEG/PNG image (capped at 8 MB) for the image networks."
      }
    },
    "/api/videos/uploads/{uploadId}/complete": {
      "post": {
        "operationId": "post_publish_video_complete_upload",
        "summary": "publish video complete upload",
        "tags": [
          "videos"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "uploadId": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ready"
                      ]
                    },
                    "contentType": {
                      "type": "string",
                      "enum": [
                        "video/mp4",
                        "video/quicktime",
                        "image/jpeg",
                        "image/png"
                      ]
                    },
                    "sizeBytes": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The upload was already consumed, or changed while being verified.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "The upload expired before completion. Mint a new one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The stored video is over the 2GB limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "uploadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Verify a signed upload after the PUT: the server checks the real content (magic bytes) and size, then marks it ready. Idempotent for an already-ready upload."
      }
    },
    "/api/videos/publish-by-id": {
      "post": {
        "operationId": "post_publish_video_publish_upload",
        "summary": "publish video publish upload",
        "tags": [
          "videos"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "provider": {
                      "type": "string",
                      "enum": [
                        "youtube",
                        "instagram",
                        "bluesky",
                        "linkedin",
                        "threads",
                        "facebook",
                        "pinterest",
                        "3speak",
                        "rumble",
                        "fanvue",
                        "telegram"
                      ]
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accountId": {
                            "type": "string"
                          },
                          "success": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "accountId",
                          "success"
                        ]
                      }
                    },
                    "successCount": {
                      "type": "integer"
                    },
                    "logId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "TRIAL_EXPIRED: the free trial ended; publishing is blocked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The upload is not completed yet, or was already used to publish.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "The upload expired before publishing. Mint a new one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The stored video is over the 2GB limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "uploadId": {
                    "type": "string"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "youtube",
                      "instagram",
                      "bluesky",
                      "linkedin",
                      "threads",
                      "facebook",
                      "pinterest",
                      "3speak",
                      "rumble",
                      "fanvue",
                      "telegram"
                    ]
                  },
                  "accountIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "privacyStatus": {
                    "type": "string",
                    "enum": [
                      "public",
                      "private",
                      "unlisted"
                    ]
                  },
                  "caption": {
                    "type": "string"
                  },
                  "boardId": {
                    "type": "string"
                  }
                },
                "required": [
                  "uploadId",
                  "provider",
                  "accountIds"
                ]
              }
            }
          }
        },
        "description": "Publish a completed signed-upload video by uploadId — the remote replacement for publish_video (action: from_file). Single-use: one publish consumes the upload. Provider field rules mirror publish_video (action: from_file) (YouTube: title, description, tags, privacyStatus; Rumble/Fanvue: title, description; Pinterest: boardId plus description or caption; the rest: caption)."
      }
    },
    "/api/prompts": {
      "get": {
        "operationId": "get_prompts_list",
        "summary": "prompts list",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "prompts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "own",
                              "community"
                            ],
                            "description": "own: written by the caller. community: a public prompt written by another user, not verified by post-engineer."
                          },
                          "visibility": {
                            "type": "string",
                            "enum": [
                              "private",
                              "public"
                            ],
                            "description": "Community prompts are public; an own prompt is private until its owner makes it public."
                          },
                          "verified": {
                            "type": "boolean",
                            "description": "true when Post Engineer checked the prompt. Only Post Engineer sets it."
                          }
                        },
                        "required": [
                          "slug",
                          "title",
                          "description",
                          "source",
                          "visibility",
                          "verified"
                        ]
                      }
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "post_prompts_create",
        "summary": "prompts create",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "prompt": {
                      "type": "object",
                      "properties": {
                        "slug": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "own",
                            "community"
                          ],
                          "description": "own: written by the caller. community: a public prompt written by another user, not verified by post-engineer."
                        },
                        "visibility": {
                          "type": "string",
                          "enum": [
                            "private",
                            "public"
                          ],
                          "description": "Community prompts are public; an own prompt is private until its owner makes it public."
                        },
                        "verified": {
                          "type": "boolean",
                          "description": "true when Post Engineer checked the prompt. Only Post Engineer sets it."
                        },
                        "prompt": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "description": "The stored prompt text as written, the text the edit form loads."
                        },
                        "versionId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The current version of this prompt text. Pass it as promptVersionId when generating a video from this prompt."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Version number: a new one each time the prompt text changes."
                        }
                      },
                      "required": [
                        "slug",
                        "title",
                        "description",
                        "source",
                        "visibility",
                        "verified",
                        "prompt",
                        "body",
                        "versionId",
                        "version"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage prompts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown prompt, or not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The slug is already yours, or used by another public prompt (PROMPT_SLUG_TAKEN).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "maxLength": 64,
                    "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20000
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "private",
                      "public"
                    ]
                  }
                },
                "required": [
                  "slug",
                  "title",
                  "prompt"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/prompts/{slug}": {
      "get": {
        "operationId": "get_prompts_get",
        "summary": "prompts get",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "prompt": {
                      "type": "object",
                      "properties": {
                        "slug": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "own",
                            "community"
                          ],
                          "description": "own: written by the caller. community: a public prompt written by another user, not verified by post-engineer."
                        },
                        "visibility": {
                          "type": "string",
                          "enum": [
                            "private",
                            "public"
                          ],
                          "description": "Community prompts are public; an own prompt is private until its owner makes it public."
                        },
                        "verified": {
                          "type": "boolean",
                          "description": "true when Post Engineer checked the prompt. Only Post Engineer sets it."
                        },
                        "prompt": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "description": "The stored prompt text as written, the text the edit form loads."
                        },
                        "versionId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The current version of this prompt text. Pass it as promptVersionId when generating a video from this prompt."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Version number: a new one each time the prompt text changes."
                        }
                      },
                      "required": [
                        "slug",
                        "title",
                        "description",
                        "source",
                        "visibility",
                        "verified",
                        "prompt",
                        "body",
                        "versionId",
                        "version"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "patch": {
        "operationId": "patch_prompts_update",
        "summary": "prompts update",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "prompt": {
                      "type": "object",
                      "properties": {
                        "slug": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "own",
                            "community"
                          ],
                          "description": "own: written by the caller. community: a public prompt written by another user, not verified by post-engineer."
                        },
                        "visibility": {
                          "type": "string",
                          "enum": [
                            "private",
                            "public"
                          ],
                          "description": "Community prompts are public; an own prompt is private until its owner makes it public."
                        },
                        "verified": {
                          "type": "boolean",
                          "description": "true when Post Engineer checked the prompt. Only Post Engineer sets it."
                        },
                        "prompt": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "description": "The stored prompt text as written, the text the edit form loads."
                        },
                        "versionId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The current version of this prompt text. Pass it as promptVersionId when generating a video from this prompt."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Version number: a new one each time the prompt text changes."
                        }
                      },
                      "required": [
                        "slug",
                        "title",
                        "description",
                        "source",
                        "visibility",
                        "verified",
                        "prompt",
                        "body",
                        "versionId",
                        "version"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage prompts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown prompt, or not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The slug is already yours, or used by another public prompt (PROMPT_SLUG_TAKEN).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20000
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "private",
                      "public"
                    ]
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "operationId": "delete_prompts_delete",
        "summary": "prompts delete",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage prompts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown prompt, or not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/prompts/{slug}/versions": {
      "get": {
        "operationId": "get_prompts_versions_versions",
        "summary": "prompts versions",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "currentVersion": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "versions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "versionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "title": {
                            "type": "string",
                            "description": "The title the prompt had when this version was saved."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "preview": {
                            "type": "string",
                            "description": "The first 280 characters of the text."
                          },
                          "previewTruncated": {
                            "type": "boolean",
                            "description": "true when the text is longer than the preview."
                          },
                          "bodyLength": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "Length of the full text in characters (code points)."
                          },
                          "current": {
                            "type": "boolean",
                            "description": "true for the version the prompt text is now."
                          }
                        },
                        "required": [
                          "versionId",
                          "version",
                          "title",
                          "createdAt",
                          "preview",
                          "previewTruncated",
                          "bodyLength",
                          "current"
                        ]
                      }
                    },
                    "truncated": {
                      "type": "boolean",
                      "description": "true when older versions remain."
                    },
                    "nextCursor": {
                      "type": "integer",
                      "nullable": true,
                      "description": "Pass it as before to read the next page; null on the last page."
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage prompts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown prompt, not yours, or unknown version (PROMPT_NOT_FOUND, PROMPT_VERSION_NOT_FOUND). The history is owner-only: a public prompt of another user has none to read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Owner-only. Lists the saved texts of your own prompt, newest first. limit is 1 to 50 (default 20). before is a version number from 2 to 999999999: pass nextCursor to read the next page."
      }
    },
    "/api/prompts/{slug}/versions/{version}": {
      "get": {
        "operationId": "get_prompts_versions__version_",
        "summary": "prompts versions",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "version": {
                      "type": "object",
                      "properties": {
                        "versionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "title": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "body": {
                          "type": "string",
                          "description": "The full text of this version."
                        },
                        "current": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "versionId",
                        "version",
                        "title",
                        "createdAt",
                        "body",
                        "current"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage prompts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown prompt, not yours, or unknown version (PROMPT_NOT_FOUND, PROMPT_VERSION_NOT_FOUND). The history is owner-only: a public prompt of another user has none to read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Owner-only. Reads one saved text of your own prompt in full."
      }
    },
    "/api/prompts/{slug}/versions/{version}/restore": {
      "post": {
        "operationId": "post_prompts_restore",
        "summary": "prompts restore",
        "tags": [
          "prompts"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "restored": {
                      "type": "boolean"
                    },
                    "prompt": {
                      "type": "object",
                      "properties": {
                        "slug": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "own",
                            "community"
                          ],
                          "description": "own: written by the caller. community: a public prompt written by another user, not verified by post-engineer."
                        },
                        "visibility": {
                          "type": "string",
                          "enum": [
                            "private",
                            "public"
                          ],
                          "description": "Community prompts are public; an own prompt is private until its owner makes it public."
                        },
                        "verified": {
                          "type": "boolean",
                          "description": "true when Post Engineer checked the prompt. Only Post Engineer sets it."
                        },
                        "prompt": {
                          "type": "string"
                        },
                        "body": {
                          "type": "string",
                          "description": "The stored prompt text as written, the text the edit form loads."
                        },
                        "versionId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The current version of this prompt text. Pass it as promptVersionId when generating a video from this prompt."
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Version number: a new one each time the prompt text changes."
                        }
                      },
                      "required": [
                        "slug",
                        "title",
                        "description",
                        "source",
                        "visibility",
                        "verified",
                        "prompt",
                        "body",
                        "versionId",
                        "version"
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "A persona-scoped API key cannot manage prompts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown prompt, not yours, or unknown version (PROMPT_NOT_FOUND, PROMPT_VERSION_NOT_FOUND). The history is owner-only: a public prompt of another user has none to read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The prompt changed since expectedCurrentVersion (PROMPT_VERSION_CONFLICT). Read the list again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedCurrentVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "The currentVersion you read from the list."
                  }
                },
                "required": [
                  "expectedCurrentVersion"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Owner-only. Makes an old version the current text by saving it as a new version; the title stays. Experiment results count the new version separately from the old one. restored is false, and nothing is written, when the text already is the current one."
      }
    },
    "/api/experiments": {
      "get": {
        "operationId": "get_experiments_results",
        "summary": "experiments results",
        "tags": [
          "experiments"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "window": {
                      "type": "string"
                    },
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string"
                          },
                          "accountId": {
                            "type": "string"
                          },
                          "videos": {
                            "type": "integer"
                          },
                          "baselineViews": {
                            "type": "number",
                            "nullable": true
                          },
                          "prompts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "versionId": {
                                  "type": "string",
                                  "format": "uuid",
                                  "nullable": true,
                                  "description": "null groups the videos made without a prompt."
                                },
                                "slug": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "title": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "version": {
                                  "type": "integer",
                                  "nullable": true
                                },
                                "source": {
                                  "type": "string",
                                  "enum": [
                                    "official",
                                    "user"
                                  ],
                                  "nullable": true
                                },
                                "videos": {
                                  "type": "integer"
                                },
                                "medianViews": {
                                  "type": "number",
                                  "nullable": true
                                },
                                "lift": {
                                  "type": "number",
                                  "nullable": true,
                                  "description": "Median of each video views divided by the median views of the other videos of the same account."
                                },
                                "pValue": {
                                  "type": "number",
                                  "nullable": true,
                                  "description": "Two-sided sign test of the lifts against 1."
                                },
                                "label": {
                                  "type": "string",
                                  "enum": [
                                    "insufficient",
                                    "no_signal",
                                    "indicative",
                                    "clear"
                                  ]
                                },
                                "direction": {
                                  "type": "string",
                                  "enum": [
                                    "above",
                                    "below"
                                  ],
                                  "nullable": true
                                }
                              },
                              "required": [
                                "versionId",
                                "slug",
                                "title",
                                "version",
                                "source",
                                "videos",
                                "medianViews",
                                "lift",
                                "pValue",
                                "label",
                                "direction"
                              ]
                            }
                          }
                        },
                        "required": [
                          "provider",
                          "accountId",
                          "videos",
                          "baselineViews",
                          "prompts"
                        ]
                      },
                      "description": "One entry per publishing account: prompts are compared only inside one account."
                    },
                    "truncated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "28d"
              ]
            }
          }
        ]
      }
    }
  }
}
