{"openapi":"3.1.0","info":{"title":"YumCut User API","version":"1.0.0","description":"Bearer-key API for account data, user settings, project creation, project status polling, and final media URLs. API keys are managed from the web account page."},"servers":[{"url":"/api/user/v1","description":"Current YumCut deployment"}],"tags":[{"name":"Account"},{"name":"Tokens"},{"name":"Settings"},{"name":"Projects"},{"name":"Media"},{"name":"Characters"},{"name":"Catalog"},{"name":"Publishing"},{"name":"Telegram"}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"YumCut User API key","description":"Use a key created from Account API keys. User API keys start with ycu_."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]},"ProjectCreate":{"type":"object","properties":{"prompt":{"type":"string","description":"Project prompt. For image-generation projects, Runware processing limits the user prompt to 3,000 characters for standalone images and 1,796 characters when imagePrank is supplied."},"rawScript":{"type":"string"},"durationSeconds":{"type":"integer","minimum":30},"languages":{"type":"array","items":{"type":"string"}},"voiceId":{"type":"string"},"projectExperience":{"type":"string","enum":["story","character","image-generation"]},"characterSlug":{"type":"string"},"characterSelection":{"type":"object","additionalProperties":true},"imagePrank":{"type":"object","additionalProperties":true},"templateId":{"type":"string"},"includeDefaultMusic":{"type":"boolean"},"addOverlay":{"type":"boolean"},"includeCallToAction":{"type":"boolean"},"watermarkEnabled":{"type":"boolean"},"captionsEnabled":{"type":"boolean"}},"additionalProperties":true},"SettingsPatch":{"type":"object","properties":{"key":{"type":"string","enum":["includeDefaultMusic","addOverlay","includeCallToAction","projectEmailsEnabled","autoApproveScript","autoApproveAudio","watermarkEnabled","captionsEnabled","characterCreationSettings","defaultDurationSeconds","sidebarOpen","defaultUseScript","characterContentTone","targetLanguages","scriptCreationGuidance","scriptCreationGuidanceEnabled","scriptAvoidanceGuidance","scriptAvoidanceGuidanceEnabled","audioStyleGuidance","audioStyleGuidanceEnabled","characterSelection","preferredVoiceId","languageVoicePreferences","preferredTemplateId","schedulerDefaultTimes","schedulerCadence"]},"value":{}},"required":["key","value"],"additionalProperties":false},"LocalizedCatalogText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"ImagePrankCatalog":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subtitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"categoryId":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subtitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"items":{"type":"array","items":{"type":"object","description":"Public Image Prank catalog item with source image and preview image fields.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"imageUrl":{"type":"string","description":"Original/source prank image URL."},"imagePath":{"type":"string"},"previewImageUrl":{"type":["string","null"],"description":"Display-safe preview image URL."},"previewImagePath":{"type":["string","null"]},"categoryId":{"type":"string"},"categorySlug":{"type":"string"},"categoryTitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategoryId":{"type":["string","null"]},"subcategorySlug":{"type":["string","null"]},"subcategoryTitle":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","imagePath","categoryId","categorySlug","categoryTitle"]}}}}},"items":{"type":"array","items":{"type":"object","description":"Public Image Prank catalog item with source image and preview image fields.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"imageUrl":{"type":"string","description":"Original/source prank image URL."},"imagePath":{"type":"string"},"previewImageUrl":{"type":["string","null"],"description":"Display-safe preview image URL."},"previewImagePath":{"type":["string","null"]},"categoryId":{"type":"string"},"categorySlug":{"type":"string"},"categoryTitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategoryId":{"type":["string","null"]},"subcategorySlug":{"type":["string","null"]},"subcategoryTitle":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","imagePath","categoryId","categorySlug","categoryTitle"]}}}}}},"required":["categories"]},"ImagePrankItem":{"type":"object","description":"Public Image Prank catalog item with source image and preview image fields.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"imageUrl":{"type":"string","description":"Original/source prank image URL."},"imagePath":{"type":"string"},"previewImageUrl":{"type":["string","null"],"description":"Display-safe preview image URL."},"previewImagePath":{"type":["string","null"]},"categoryId":{"type":"string"},"categorySlug":{"type":"string"},"categoryTitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategoryId":{"type":["string","null"]},"subcategorySlug":{"type":["string","null"]},"subcategoryTitle":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","imagePath","categoryId","categorySlug","categoryTitle"]},"CharacterCatalog":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subtitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"characters":{"type":"array","items":{"type":"object","description":"Public catalog character with preview image/video and metrics for the authenticated user.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"bio":{"type":"string"},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"previewImageUrl":{"type":"string"},"previewVideoUrl":{"type":["string","null"]},"previewVideoHasAudio":{"type":"boolean"},"defaultVoiceId":{"type":["string","null"]},"defaultVoiceProvider":{"type":["string","null"]},"creationsCount":{"type":"integer"},"favoritesCount":{"type":"integer"},"isFavorited":{"type":"boolean"}},"required":["id","slug","name","title","bio","previewImageUrl","previewVideoUrl","previewVideoHasAudio","creationsCount","favoritesCount","isFavorited"]}}},"required":["id","title","subtitle","description","characters"]}}},"required":["categories"]},"CharacterProfile":{"type":"object","properties":{"id":{"type":"string"},"characterId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"tagline":{"type":"string"},"bio":{"type":"string"},"previewImageUrl":{"type":"string"},"previewVideoUrl":{"type":["string","null"]},"previewVideoHasAudio":{"type":"boolean"},"defaultVoiceId":{"type":["string","null"]},"defaultVoiceProvider":{"type":["string","null"]},"creationsCount":{"type":"integer"},"favoritesCount":{"type":"integer"},"isFavorited":{"type":"boolean"}},"required":["id","characterId","slug","name","title","tagline","bio","previewImageUrl","previewVideoUrl","previewVideoHasAudio","creationsCount","favoritesCount","isFavorited"]},"Template":{"type":"object","description":"Story/template metadata. previewImageUrl and previewVideoUrl can be used to show the template before project creation.","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"previewImageUrl":{"type":["string","null"]},"previewVideoUrl":{"type":["string","null"]},"weight":{"type":"number"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"customData":{"type":"object","additionalProperties":true}},"required":["id","title","previewImageUrl","previewVideoUrl","isPublic"]}}},"paths":{"/account":{"get":{"summary":"Get account","tags":["Account"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":["string","null"]},"name":{"type":["string","null"]},"image":{"type":["string","null"]},"preferredLanguage":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"tokenBalance":{"type":"integer"},"isGuest":{"type":"boolean"}}}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/account/language":{"get":{"summary":"Get account language","tags":["Account"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"patch":{"summary":"Update account language","tags":["Account"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":"string","enum":["en","ru"]}},"required":["language"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/tokens":{"get":{"summary":"Get token balance and cost table","tags":["Tokens"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/tokens/history":{"get":{"summary":"List token transactions","tags":["Tokens"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/settings":{"get":{"summary":"Get user settings","tags":["Settings"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"patch":{"summary":"Update one user setting","tags":["Settings"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","enum":["includeDefaultMusic","addOverlay","includeCallToAction","projectEmailsEnabled","autoApproveScript","autoApproveAudio","watermarkEnabled","captionsEnabled","characterCreationSettings","defaultDurationSeconds","sidebarOpen","defaultUseScript","characterContentTone","targetLanguages","scriptCreationGuidance","scriptCreationGuidanceEnabled","scriptAvoidanceGuidance","scriptAvoidanceGuidanceEnabled","audioStyleGuidance","audioStyleGuidanceEnabled","characterSelection","preferredVoiceId","languageVoicePreferences","preferredTemplateId","schedulerDefaultTimes","schedulerCadence"]},"value":{}},"required":["key","value"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/project-cost":{"post":{"summary":"Quote project token cost","tags":["Projects","Tokens"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Project prompt. For image-generation projects, Runware processing limits the user prompt to 3,000 characters for standalone images and 1,796 characters when imagePrank is supplied."},"rawScript":{"type":"string"},"durationSeconds":{"type":"integer","minimum":30},"languages":{"type":"array","items":{"type":"string"}},"voiceId":{"type":"string"},"projectExperience":{"type":"string","enum":["story","character","image-generation"]},"characterSlug":{"type":"string"},"characterSelection":{"type":"object","additionalProperties":true},"imagePrank":{"type":"object","additionalProperties":true},"templateId":{"type":"string"},"includeDefaultMusic":{"type":"boolean"},"addOverlay":{"type":"boolean"},"includeCallToAction":{"type":"boolean"},"watermarkEnabled":{"type":"boolean"},"captionsEnabled":{"type":"boolean"}},"additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects":{"get":{"summary":"List own projects","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"post":{"summary":"Create project","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Project prompt. For image-generation projects, Runware processing limits the user prompt to 3,000 characters for standalone images and 1,796 characters when imagePrank is supplied."},"rawScript":{"type":"string"},"durationSeconds":{"type":"integer","minimum":30},"languages":{"type":"array","items":{"type":"string"}},"voiceId":{"type":"string"},"projectExperience":{"type":"string","enum":["story","character","image-generation"]},"characterSlug":{"type":"string"},"characterSelection":{"type":"object","additionalProperties":true},"imagePrank":{"type":"object","additionalProperties":true},"templateId":{"type":"string"},"includeDefaultMusic":{"type":"boolean"},"addOverlay":{"type":"boolean"},"includeCallToAction":{"type":"boolean"},"watermarkEnabled":{"type":"boolean"},"captionsEnabled":{"type":"boolean"}},"additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}":{"get":{"summary":"Get project detail","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"delete":{"summary":"Cancel or delete own project","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/status":{"get":{"summary":"Poll project status","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/stop":{"post":{"summary":"Stop own project","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/downloads/video":{"get":{"summary":"Get final video download URL","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/downloads/image":{"get":{"summary":"Get final image download URL","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/script/request":{"post":{"summary":"Request script revision","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/script/approve":{"post":{"summary":"Approve project script","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/script/final":{"post":{"summary":"Update final script text","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/audios":{"get":{"summary":"List generated audios","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/audios/request":{"post":{"summary":"Request voiceover generation","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/audios/approve":{"post":{"summary":"Approve voiceover","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/audios/regenerate":{"post":{"summary":"Regenerate voiceover","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/images/regenerate":{"post":{"summary":"Regenerate project image","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/images/replace":{"post":{"summary":"Replace project image","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/video/recreate":{"post":{"summary":"Recreate final video","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/projects/{projectId}/image-prank-reuse":{"get":{"summary":"Get reusable Image Prank source data","tags":["Projects","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/storage/upload-token":{"post":{"summary":"Create signed upload token","tags":["Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ttlMs":{"type":"integer","minimum":1000,"maximum":1800000},"maxBytes":{"type":"integer","minimum":1,"maximum":10485760}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/media/grant":{"post":{"summary":"Grant access to uploaded media","tags":["Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/voices":{"get":{"summary":"List voices","tags":["Catalog"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/templates":{"get":{"summary":"List public and own templates","description":"Returns story/template metadata including previewImageUrl and previewVideoUrl for pre-creation previews.","tags":["Catalog"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"public","in":"query","schema":{"type":"string","enum":["1"]}},{"name":"mine","in":"query","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Templates","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"Story/template metadata. previewImageUrl and previewVideoUrl can be used to show the template before project creation.","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"previewImageUrl":{"type":["string","null"]},"previewVideoUrl":{"type":["string","null"]},"weight":{"type":"number"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"customData":{"type":"object","additionalProperties":true}},"required":["id","title","previewImageUrl","previewVideoUrl","isPublic"]}}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/templates/{id}":{"get":{"summary":"Get template","description":"Returns one story/template with preview media and prompt metadata if the template is public or owned by the authenticated user.","tags":["Catalog"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Template","content":{"application/json":{"schema":{"type":"object","description":"Story/template metadata. previewImageUrl and previewVideoUrl can be used to show the template before project creation.","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"previewImageUrl":{"type":["string","null"]},"previewVideoUrl":{"type":["string","null"]},"weight":{"type":"number"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"customData":{"type":"object","additionalProperties":true}},"required":["id","title","previewImageUrl","previewVideoUrl","isPublic"]}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/image-pranks":{"get":{"summary":"List Image Prank catalog","description":"Returns public Image Prank categories and items. Each item includes localized info, imageUrl, and previewImageUrl.","tags":["Catalog"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Image Prank catalog","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subtitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"categoryId":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subtitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"items":{"type":"array","items":{"type":"object","description":"Public Image Prank catalog item with source image and preview image fields.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"imageUrl":{"type":"string","description":"Original/source prank image URL."},"imagePath":{"type":"string"},"previewImageUrl":{"type":["string","null"],"description":"Display-safe preview image URL."},"previewImagePath":{"type":["string","null"]},"categoryId":{"type":"string"},"categorySlug":{"type":"string"},"categoryTitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategoryId":{"type":["string","null"]},"subcategorySlug":{"type":["string","null"]},"subcategoryTitle":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","imagePath","categoryId","categorySlug","categoryTitle"]}}}}},"items":{"type":"array","items":{"type":"object","description":"Public Image Prank catalog item with source image and preview image fields.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"imageUrl":{"type":"string","description":"Original/source prank image URL."},"imagePath":{"type":"string"},"previewImageUrl":{"type":["string","null"],"description":"Display-safe preview image URL."},"previewImagePath":{"type":["string","null"]},"categoryId":{"type":"string"},"categorySlug":{"type":"string"},"categoryTitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategoryId":{"type":["string","null"]},"subcategorySlug":{"type":["string","null"]},"subcategoryTitle":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","imagePath","categoryId","categorySlug","categoryTitle"]}}}}}},"required":["categories"]}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/image-pranks/{slug}":{"get":{"summary":"Get Image Prank catalog item","description":"Returns one public Image Prank item by slug, including localized info, source image URL, and preview image URL.","tags":["Catalog"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Image Prank item","content":{"application/json":{"schema":{"type":"object","description":"Public Image Prank catalog item with source image and preview image fields.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"imageUrl":{"type":"string","description":"Original/source prank image URL."},"imagePath":{"type":"string"},"previewImageUrl":{"type":["string","null"],"description":"Display-safe preview image URL."},"previewImagePath":{"type":["string","null"]},"categoryId":{"type":"string"},"categorySlug":{"type":"string"},"categoryTitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subcategoryId":{"type":["string","null"]},"subcategorySlug":{"type":["string","null"]},"subcategoryTitle":{"anyOf":[{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},{"type":"null"}]}},"required":["id","slug","title","description","imageUrl","imagePath","categoryId","categorySlug","categoryTitle"]}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/groups":{"post":{"summary":"Create project group","tags":["Projects"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters":{"get":{"summary":"List catalog and own characters","description":"Returns catalog and user-owned characters with variation imageUrl values for project creation pickers.","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/catalog":{"get":{"summary":"List public character catalog","description":"Returns public character categories and characters with slugs, previewImageUrl, previewVideoUrl, voice defaults, and viewer-specific favorite metrics.","tags":["Characters","Catalog"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Character catalog","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"subtitle":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"description":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"characters":{"type":"array","items":{"type":"object","description":"Public catalog character with preview image/video and metrics for the authenticated user.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"bio":{"type":"string"},"hiddenSearchText":{"type":"object","properties":{"en":{"type":"string"},"ru":{"type":"string"}},"required":["en","ru"]},"previewImageUrl":{"type":"string"},"previewVideoUrl":{"type":["string","null"]},"previewVideoHasAudio":{"type":"boolean"},"defaultVoiceId":{"type":["string","null"]},"defaultVoiceProvider":{"type":["string","null"]},"creationsCount":{"type":"integer"},"favoritesCount":{"type":"integer"},"isFavorited":{"type":"boolean"}},"required":["id","slug","name","title","bio","previewImageUrl","previewVideoUrl","previewVideoHasAudio","creationsCount","favoritesCount","isFavorited"]}}},"required":["id","title","subtitle","description","characters"]}}},"required":["categories"]}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/{slug}":{"get":{"summary":"Get catalog character profile","description":"Returns one public catalog character by slug, including profile info, preview image/video URLs, voice defaults, and viewer metrics.","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Character profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"characterId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"tagline":{"type":"string"},"bio":{"type":"string"},"previewImageUrl":{"type":"string"},"previewVideoUrl":{"type":["string","null"]},"previewVideoHasAudio":{"type":"boolean"},"defaultVoiceId":{"type":["string","null"]},"defaultVoiceProvider":{"type":["string","null"]},"creationsCount":{"type":"integer"},"favoritesCount":{"type":"integer"},"isFavorited":{"type":"boolean"}},"required":["id","characterId","slug","name","title","tagline","bio","previewImageUrl","previewVideoUrl","previewVideoHasAudio","creationsCount","favoritesCount","isFavorited"]}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/variations/{variationId}/preview-image":{"get":{"summary":"Get catalog character variation preview image","description":"Redirects to a prepared catalog preview image for a public character variation. Private/user-owned variations are not exposed.","tags":["Characters","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","parameters":[{"name":"variationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"h","in":"query","required":true,"schema":{"type":"integer","enum":[896]},"description":"Preview height. Currently only 896 is supported."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"307":{"description":"Redirect to the prepared preview image URL.","headers":{"Location":{"schema":{"type":"string"}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/{slug}/favorite":{"post":{"summary":"Favorite catalog character","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"delete":{"summary":"Remove catalog character favorite","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/custom/upload":{"post":{"summary":"Upload custom character image","tags":["Characters","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/custom/generate":{"post":{"summary":"Generate custom character image","tags":["Characters","Media"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/mine":{"post":{"summary":"Create own character","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/mine/{userCharacterId}/variations":{"post":{"summary":"Create own character variation","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"userCharacterId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/characters/mine/{userCharacterId}/variations/{variationId}":{"delete":{"summary":"Delete own character variation","tags":["Characters"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"userCharacterId","in":"path","required":true,"schema":{"type":"string"}},{"name":"variationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/scheduler/settings":{"get":{"summary":"Get publishing scheduler settings","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"post":{"summary":"Update publishing scheduler settings","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"patch":{"summary":"Update publishing scheduler settings","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/scheduler/channels":{"post":{"summary":"Connect publishing channel","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/scheduler/channels/{channelId}":{"delete":{"summary":"Delete publishing channel","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"channelId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/scheduler/channels/{channelId}/revoke":{"post":{"summary":"Revoke publishing channel credentials","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"channelId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/scheduler/projects/{projectId}":{"post":{"summary":"Schedule project publishing","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":191},"description":"Required for job-creating and token-costly writes. Reusing the same key replays the first successful response."},{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/scheduler/tasks/{taskId}/cleanup-request":{"post":{"summary":"Request scheduled task cleanup","tags":["Publishing"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/telegram/account":{"get":{"summary":"Get linked Telegram account","tags":["Telegram"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"read","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}},"delete":{"summary":"Unlink Telegram account","tags":["Telegram"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}},"/telegram/link-token":{"post":{"summary":"Create Telegram link token","tags":["Telegram"],"security":[{"BearerAuth":[]}],"x-yumcut-scope":"write","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}}}}}}}}