{"items":[{"type":"link","label":"Panjaya Dubbing Studio API","link":"/apis","routeSlug":"/apis","content":{"contentType":"overview","meta":{"name":"Panjaya Dubbing Studio API"},"children":[{"nodeType":"container","panels":[{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://www.panjaya.ai/","url":"https://www.panjaya.ai/"},{"kind":"email","title":"Panjaya Support","email":"support@panjaya.ai","label":"support@panjaya.ai","withCopyButton":true,"copyContent":"support@panjaya.ai"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"payload","title":"Payload","lang":"Payload"},{"key":"python","title":"Python","lang":"Python"},{"key":"go","title":"Go","lang":"Go"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"java","title":"Java","lang":"Java"},{"key":"curl","title":"curl","lang":"curl"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://api.panjaya.ai"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Panjaya Dubbing Studio API","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[]}],"sectionId":"/apis"}],"sectionId":"/apis"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"section/authentication"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authentication"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To authenticate with the API, you will need to provide your API key in the Authorization header of each request."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"It should look like this:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"Authorization: Bearer panjaya-{YOUR_API_KEY}\n","language":"http"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"Authorization: Bearer panjaya-{YOUR_API_KEY}\n"},"children":[]}]}]}],"sectionId":"/apis/section/authentication"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"section/languages-support"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Languages support"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Below is a list of supported languages and their corresponding locale codes that are used in Panjaya Dubbing Studio API."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Please note that some languages are marked as source languages only, meaning they can only be used as the source language"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"of the uploaded videos, while some are marked as target languages only - meaning they can only be translated into."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Language"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Locale code"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source supported"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Target supported"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Arabic"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ar-AE"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Bulgarian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"bg-BG"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cantonese"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"yue-CN"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chinese"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"zh-CN"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Croatian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"hr-HR"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Czech"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cs-CZ"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Danish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"da-DK"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dutch"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"nl-NL"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"English"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"en-US"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Filipino"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"fil-PH"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Finnish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"fi-FI"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"French"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"fr-FR"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"German"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"de-DE"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Greek"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"el-GR"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hebrew"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"he-IL"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🚫"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hindi"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"hi-IN"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hungarian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"hu-HU"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Indonesian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"id-ID"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Italian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"it-IT"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Japanese"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ja-JP"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Korean"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ko-KR"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lithuanian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"lt-LT"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Malay"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ms-MY"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Norwegian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"nb-NO"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Polish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"pl-PL"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Portuguese"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"pt-BR"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Portuguese"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"pt-PT"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Romanian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ro-RO"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Russian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ru-RU"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Slovak"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"sk-SK"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Spanish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"es-ES"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Spanish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"es-MX"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Swedish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"sv-SE"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tamil"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ta-IN"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Thai"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"th-TH"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🚫"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Turkish"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"tr-TR"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ukrainian"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"uk-UA"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Urdu"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ur-IN"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"🚫"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Vietnamese"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"vi-VN"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"✅"},"children":[]}]}]}]}]}]}]}],"sectionId":"/apis/section/languages-support"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"section/error-codes"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Error codes"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Panjaya Dubbing Studio API uses standard HTTP status codes to indicate the success or failure of an API request."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"In case of an error, the response body will include a detailed error message to help you identify and resolve the issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Here is a list of erroneous HTTP status codes and their general meanings:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"401 Unauthorized"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The API key could not be validated"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"400 Bad Request"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The request could not be processed due to invalid input"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"403 Forbidden"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The request could not be completed due to account limitations"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"404 Not Found"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The requested resource was not found"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"429 Too Many Requests"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Too many requests"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"500 Internal Server Error"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": An internal server error occurred"},"children":[]}]}]}]}]}],"sectionId":"/apis/section/error-codes"}]}]}},{"type":"link","label":"Authentication","link":"/apis/section/authentication","routeSlug":"/apis/section/authentication","content":null},{"type":"link","label":"Languages support","link":"/apis/section/languages-support","routeSlug":"/apis/section/languages-support","content":null},{"type":"link","label":"Error codes","link":"/apis/section/error-codes","routeSlug":"/apis/section/error-codes","content":null},{"type":"group","label":"Assets","link":"/apis/assets","routeSlug":"/apis/assets","items":[{"label":"Get assets","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/assets/assets-get_assets","routeSlug":"/apis/assets/assets-get_assets","metadata":{"seo":{"title":"Get assets","description":"Get a paginated list of your assets."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Assets-get_assets","name":"Get assets","isWebhook":false,"pointer":"/paths/~1v1~1assets~1/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get assets","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Get a paginated list of your assets."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This endpoint allows you to fetch all your assets with basic metadata, including the asset's current status and associated dubbings."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For available versions of each asset use the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/apis/assets/assets-get_asset"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Get an asset"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"skip","in":"query","schemaId":"schema_12"},{"name":"limit","in":"query","schemaId":"schema_13"}],"pointer":"/paths/~1v1~1assets~1/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/assets/","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[],"query":[{"name":"skip","in":"query","required":false,"schemaId":"schema_12"},{"name":"limit","in":"query","required":false,"schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","400","401","500"],"pointer":"/v1/assets/","href":"assets/assets-get_assets","openApiOperationId":"Assets-get_assets","summary":"Get assets"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Asset found successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetsResponse","exampleIds":["paths/~1v1~1assets~1/get/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/ApiAssetsResponse","exampleIds":["paths/~1v1~1assets~1/get/responses/200/content/application~1json/example"]},{"code":"400","description":"The request could not be processed due to invalid input","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1assets~1/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ApiAssetsResponse","exampleIds":["paths/~1v1~1assets~1/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetsResponse","exampleIds":["paths/~1v1~1assets~1/get/responses/200/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/assets/assets-get_assets"}],"panels":[]}]},"httpPath":"/v1/assets/"},{"label":"Creating a new asset","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/assets/assets-create_asset","routeSlug":"/apis/assets/assets-create_asset","metadata":{"seo":{"title":"Creating a new asset","description":"Creating an asset is the first step to dubbing your video with Panjaya Dubbing Studio.This endpoint allows you to:"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Assets-create_asset","name":"Creating a new asset","isWebhook":false,"pointer":"/paths/~1v1~1assets~1/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Creating a new asset","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Creating an asset is the first step to dubbing your video with Panjaya Dubbing Studio."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This endpoint allows you to:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Upload a source video"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Configure the necessary parameters to initiate the dubbing process"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/uploading-the-source-video","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/uploading-the-source-video"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Uploading the Source Video"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter to specify the publicly accessible URL of the source video you want to dub."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Set the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"locale"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field to indicate the original language of the source video."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"It is recommended to set the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"speakers_count"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field to the number of distinct speakers in the video, to improve"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accuracy and quality of the final video."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/adding-target-languages","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/adding-target-languages"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Adding Target Languages"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Define the languages into which you want to dub the video:"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Panjaya's locale codes adhere to the IETF Language Tag standard, combining ISO 639-1 language codes and ISO 3166-1 country codes. Examples: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"en-US"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (English - United States), "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"es-ES"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Spanish - Spain), "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"zh-CN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Chinese - China)."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For each target language, you may optionally provide a valid SRT file, where applicable, in the designated "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"srt"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/trimming-the-video","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/trimming-the-video"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Trimming the Video"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can optionally use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"start_time"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"end_time"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameters to trim your video, allowing you to dub a specific"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"section of your video."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Both parameters accept a number of seconds from the beginning of the video. For example, if you want to dub only the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"first 2 minutes of your video, set "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"end_time"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"120"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If not specified, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"start_time"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" defaults to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"0"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (beginning of the video), and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"end_time"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" defaults to the end of the video."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/status-updates-via-callbacks","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/status-updates-via-callbacks"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status Updates via Callbacks"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optionally, you can configure a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"callback_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to receive real-time status updates about the dubbing process."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"callback_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is specified, Panjaya will send updates whenever the status of an asset or any of its dubbing versions changes."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For detailed information on implementing callbacks, refer to the Callbacks section of this documentation."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/models","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/models"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Models"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"lips_model"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field specifies which lips model to use when generating versions under this asset."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This parameter is only applicable when lip correction is enabled. You can use it to fine-tune the balance between quality and performance."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"real_face"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Default): Our highest-quality lips model, suitable for most use cases."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"real_face_turbo"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Optimized for speed - up to 4× faster than "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"real_face"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", while maintaining high quality."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/generate-balance","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/generate-balance"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Generate balance"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"auto_generate"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is set to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"with_lips"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"no_lips"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", Panjaya checks your organization's remaining video-generation balance before creating the asset. If the balance is insufficient, the request is rejected with a 403 response and the insufficient balance error message."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/library-voice","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/library-voice"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Library voice"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"By default, each speaker is dubbed with a voice cloned from their original speech. To narrate all speakers with a specific"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"library voice instead, set "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to the id of that voice (list available voices with the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /voices"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint)."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The library voice applies to the whole asset — every target language is narrated by that voice. The original speech is still"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"replaced by the dubbed vocals unless voice-over is enabled."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/voice-over","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/voice-over"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Voice-over"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"By default, Panjaya replaces the original speech with the dubbed vocals. With voice-over enabled, the original audio is instead"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ducked (lowered in volume) and the dubbed vocals are delayed and mixed on top of it, preserving the original speaker's voice underneath."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To enable voice-over, set "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" together with a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (see "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#library-voice"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Library voice"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Voice-over applies to the whole asset — every target language is narrated by that voice."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Voice-over cannot be combined with lip correction: a request that enables voice-over together with synthesized lips ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"auto_generate=with_lips"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") is rejected."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/voice-anonymization","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/voice-anonymization"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Voice Anonymization"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_anonymization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field allows you to control the degree of voice anonymization applied to the dubbed voices. This is a float between 0.0 (no anonymization, default) and 1.0 (maximum anonymization)."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This feature is useful for privacy or compliance requirements, or when you want to mask the original speaker's identity."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"0.0"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": No anonymization. The cloned voice will closely match the original speaker."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"1.0"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Maximum anonymization. The voice will sound very different from the original."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Any value between 0.0 and 1.0 will apply a proportional level of anonymization."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-create_asset/request/background-audio","deepLinkHash":"/assets/assets-create_asset#assets/assets-create_asset/request/background-audio"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Background Audio"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Panjaya uses our "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.panjaya.ai/blog/sceneaware-the-audio-dubbing-breakthrough"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"SceneAware audio separation model"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"to separate speech from background audio in the source video."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This preserves the original background audio in the dubbed result, creating a more natural and immersive experience."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you have a clean background audio track (e.g., music and sound effects without speech), you can provide a publicly accessible URL to it"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"via the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"background_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field. Panjaya will then use this track directly instead of separating background audio from the source video."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If you have a clean speech audio track, you can provide a publicly accessible URL to it via the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"speech_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Panjaya will then use this track directly instead of separating speech audio from the source video."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiCreateAssetRequest","exampleIds":["paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation","paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback"]}},"schemaId":"components/schemas/ApiCreateAssetRequest","exampleIds":["paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation","paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback"],"pointer":"/paths/~1v1~1assets~1/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/assets/","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/ApiCreateAssetRequest","exampleIds":["paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation","paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback"]}},"responseCodes":["201","400","401","403","500"],"pointer":"/v1/assets/","href":"assets/assets-create_asset","openApiOperationId":"Assets-create_asset","summary":"Creating a new asset"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/ApiCreateAssetRequest","exampleIds":["paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation","paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiCreateAssetRequest","exampleIds":["paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation","paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Asset was created successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1/post/responses/201/content/application~1json/example"]}},"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1/post/responses/201/content/application~1json/example"]},{"code":"400","description":"The request could not be processed due to invalid input","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"403","description":"The request could not be completed due to account limitations","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1assets~1/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1/post/responses/201/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1/post/responses/201/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/assets/assets-create_asset"}],"panels":[]}]},"httpPath":"/v1/assets/"},{"label":"Uploading a new asset","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/assets/assets-upload_asset","routeSlug":"/apis/assets/assets-upload_asset","metadata":{"seo":{"title":"Uploading a new asset","description":"Upload an asset video file directly to Panjaya Dubbing Studio."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Assets-upload_asset","name":"Uploading a new asset","isWebhook":false,"pointer":"/paths/~1v1~1assets~1upload/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Uploading a new asset","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Upload an asset video file directly to Panjaya Dubbing Studio."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This endpoint allows you to upload a video file directly, saving the need to upload to an external storage service."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"It accepts the same parameters as the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/apis/assets/assets-create_asset"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create Asset"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint, except for the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"which is replaced by the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" file input."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note that this endpoint is structured as a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"multipart/form-data"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" request,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"where the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"request"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" form field contains a JSON-serialized object with the asset parameters, and the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" form field contains the video file to be uploaded."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You may additionally provide a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"background"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" file to upload a clean background audio track."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Refer to "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/apis/assets/assets-create_asset#section/Background-Audio"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Background Audio section"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" under create asset endpoint."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"components/schemas/Body_Assets-upload_asset"}},"schemaId":"components/schemas/Body_Assets-upload_asset","pointer":"/paths/~1v1~1assets~1upload/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/assets/upload","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"requestBody":{"multipart/form-data":{"schemaId":"components/schemas/Body_Assets-upload_asset"}},"responseCodes":["201","400","401","403","500"],"pointer":"/v1/assets/upload","href":"assets/assets-upload_asset","openApiOperationId":"Assets-upload_asset","summary":"Uploading a new asset"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/Body_Assets-upload_asset","mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"components/schemas/Body_Assets-upload_asset"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Asset was created successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1upload/post/responses/201/content/application~1json/example"]}},"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1upload/post/responses/201/content/application~1json/example"]},{"code":"400","description":"The request could not be processed due to invalid input","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"403","description":"The request could not be completed due to account limitations","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1assets~1upload/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1upload/post/responses/201/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1upload/post/responses/201/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/assets/assets-upload_asset"}],"panels":[]}]},"httpPath":"/v1/assets/upload"},{"label":"Get an asset","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/assets/assets-get_asset","routeSlug":"/apis/assets/assets-get_asset","metadata":{"seo":{"title":"Get an asset","description":"After creating an asset - either through the Panjaya Dubbing Studio API or by uploading it via thePanjaya Dubbing Studio web interface - you can easily fetch detailed information about the asset by specifying its asset ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Assets-get_asset","name":"Get an asset","isWebhook":false,"pointer":"/paths/~1v1~1assets~1{asset_id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get an asset","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"After creating an asset - either through the Panjaya Dubbing Studio API or by uploading it via the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Panjaya Dubbing Studio web interface - you can easily fetch detailed information about the asset by specifying its asset ID."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This endpoint allows you to access key metadata, including the asset's current status, associated dubbings, and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"available versions."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"assets/assets-get_asset/request/asset-processing-failures","deepLinkHash":"/assets/assets-get_asset#assets/assets-get_asset/request/asset-processing-failures"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Asset processing failures"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"In case of an error while processing the asset, the asset status will be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field in this endpoint's response will contain helpful information for identifying the issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"It contains an error code and a detailed error message to help you understand and resolve the issue. Here is a list of common error codes for assets:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_input"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The input provided is invalid. Ensure all provided fields match the asset's properties."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unsupported_media"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": We didnt find a valid video stream in the media file."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"empty_transcript"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": No spoken content was identified in the uploaded video."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"missing_audio_track"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": No audio tracks were found in the source video."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video_duration_limit_reached"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The video duration limit for your account has been reached."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video_size_limit_reached"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The file size of the requested video has exceeded the allowed size limit."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"time_out_of_range"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The provided start_time or end_time is out of video range. Ensure that the timestamps are within the video duration."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over_library_required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Voice-over is enabled but no voice_library_id was provided. Set voice_library_id to the library voice that should narrate the asset (list available voices with the GET /voices endpoint)."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over_with_lips_not_allowed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Voice-over cannot be combined with lip correction. Set auto_generate to no_lips (or off) when voice_over is enabled."},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"asset_id","in":"path","schemaId":"schema_14","required":true}],"pointer":"/paths/~1v1~1assets~1{asset_id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/assets/{asset_id}","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"asset_id","in":"path","required":true,"schemaId":"schema_14"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","401","404","500"],"pointer":"/v1/assets/{asset_id}","href":"assets/assets-get_asset","openApiOperationId":"Assets-get_asset","summary":"Get an asset"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Asset found successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}/get/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}/get/responses/200/content/application~1json/example"]},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"404","description":"The requested resource was not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1assets~1{asset_id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}/get/responses/200/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/assets/assets-get_asset"}],"panels":[]}]},"httpPath":"/v1/assets/{asset_id}"},{"label":"Add languages to an existing asset","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/assets/assets-add_languages","routeSlug":"/apis/assets/assets-add_languages","metadata":{"seo":{"title":"Add languages to an existing asset","description":"With this endpoint, you can add new languages to an existing asset. Once you make the request, Panjaya will initiate a new dubbing process for each added language."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Assets-add_languages","name":"Add languages to an existing asset","isWebhook":false,"pointer":"/paths/~1v1~1assets~1{asset_id}~1languages/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Add languages to an existing asset","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"With this endpoint, you can add new languages to an existing asset. Once you make the request, Panjaya will initiate a new dubbing process for each added language.\n\nOnce the process is complete, you will be notified via email and the callback URL, if configured."},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"asset_id","in":"path","schemaId":"schema_14","required":true}],"pointer":"/paths/~1v1~1assets~1{asset_id}~1languages/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiAddAssetLanguageRequest","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example"]}},"schemaId":"components/schemas/ApiAddAssetLanguageRequest","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/assets/{asset_id}/languages","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"asset_id","in":"path","required":true,"schemaId":"schema_14"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/ApiAddAssetLanguageRequest","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example"]}},"responseCodes":["202","400","401","404","500"],"pointer":"/v1/assets/{asset_id}/languages","href":"assets/assets-add_languages","openApiOperationId":"Assets-add_languages","summary":"Add languages to an existing asset"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/ApiAddAssetLanguageRequest","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiAddAssetLanguageRequest","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"202","description":"Languages added successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/responses/202/content/application~1json/example"]}},"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/responses/202/content/application~1json/example"]},{"code":"400","description":"The request could not be processed due to invalid input","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"404","description":"The requested resource was not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1assets~1{asset_id}~1languages/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"202","schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/responses/202/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiAssetResponse","exampleIds":["paths/~1v1~1assets~1{asset_id}~1languages/post/responses/202/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/assets/assets-add_languages"}],"panels":[]}]},"httpPath":"/v1/assets/{asset_id}/languages"}],"content":{"contentType":"group","meta":{"name":"Assets"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Assets","showPageActions":true},{"nodeType":"markdoc","content":"Assets are the core resource in Panjaya Dubbing Studio. An asset represents a source video you want to dub into different languages.\nEach asset can be dubbed into multiple languages, and every language is assigned a unique dubbing ID. You can\noptionally add SRT files for better accuracy."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/assets/","summary":"Get assets","prefix":{"name":"get","color":"get"},"badges":[],"link":"/assets/assets-get_assets","deprecated":false},{"title":"/v1/assets/","summary":"Creating a new asset","prefix":{"name":"post","color":"post"},"badges":[],"link":"/assets/assets-create_asset","deprecated":false},{"title":"/v1/assets/upload","summary":"Uploading a new asset","prefix":{"name":"post","color":"post"},"badges":[],"link":"/assets/assets-upload_asset","deprecated":false},{"title":"/v1/assets/{asset_id}","summary":"Get an asset","prefix":{"name":"get","color":"get"},"badges":[],"link":"/assets/assets-get_asset","deprecated":false},{"title":"/v1/assets/{asset_id}/languages","summary":"Add languages to an existing asset","prefix":{"name":"post","color":"post"},"badges":[],"link":"/assets/assets-add_languages","deprecated":false}]}]}]}]}},{"type":"group","label":"Versions","link":"/apis/versions","routeSlug":"/apis/versions","items":[{"label":"Get a dubbing version","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/versions/versions-get_version","routeSlug":"/apis/versions/versions-get_version","metadata":{"seo":{"title":"Get a dubbing version","description":"Retrieve detailed information about a specific dubbing version by providing its unique Version ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Versions-get_version","name":"Get a dubbing version","isWebhook":false,"pointer":"/paths/~1v1~1versions~1{version_id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get a dubbing version","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieve detailed information about a specific dubbing version by providing its unique Version ID."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"versions/versions-get_version/request/response-details","deepLinkHash":"/versions/versions-get_version#versions/versions-get_version/request/response-details"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Response Details"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The response includes metadata about the version, such as its current status and progress in the dubbing process."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"studio_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field provides a link to "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Panjaya Dubbing Studio"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", where you can fine-tune the dubs further."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This URL is not signed and requires authentication. Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/studio_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint (as described below) to pre-sign a"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the final video has been successfully generated, the response will also include a signed URL in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"result_url"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"field. This URL allows you to securely download the fully synchronized video, complete with lip and body language alignment."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A signed URL for the dubbed audio track is also returned in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"result_audio_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Both "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"result_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"result_audio_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" are short-lived signed URLs that expire "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"5 days"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" after the response is"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"issued. Re-call this endpoint to obtain a fresh URL once the previous one has expired."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"versions/versions-get_version/request/version-status","deepLinkHash":"/versions/versions-get_version#versions/versions-get_version/request/version-status"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Version Status"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field indicates the current state of the version. Possible values include:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"NotReady"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The version is currently being prepared for editing."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ReadyToEdit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The version is ready for editing and refinement in the Panjaya Dubbing Studio web interface."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Generating"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The version is being processed to generate the final video. Editing is temporarily disabled during this stage."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The version has been successfully generated and is ready for download."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": An error occurred during the version processing."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"versions/versions-get_version/request/version-failures","deepLinkHash":"/versions/versions-get_version#versions/versions-get_version/request/version-failures"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Version failures"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the version status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field in this endpoint's response will contain helpful information for identifying the issue."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"It contains an error code and a detailed error message to help you understand and resolve the issue. Here is a list of common error codes for versions:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"general_error"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": A general error occurred."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_balance"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Your organization's balance is insufficient to perform this operation."},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"version_id","in":"path","schemaId":"schema_15","required":true}],"pointer":"/paths/~1v1~1versions~1{version_id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/versions/{version_id}","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"version_id","in":"path","required":true,"schemaId":"schema_15"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","401","404","500"],"pointer":"/v1/versions/{version_id}","href":"versions/versions-get_version","openApiOperationId":"Versions-get_version","summary":"Get a dubbing version"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Version found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiDubbingVersionResponse","exampleIds":["paths/~1v1~1versions~1{version_id}/get/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/ApiDubbingVersionResponse","exampleIds":["paths/~1v1~1versions~1{version_id}/get/responses/200/content/application~1json/example"]},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"404","description":"The requested resource was not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1versions~1{version_id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ApiDubbingVersionResponse","exampleIds":["paths/~1v1~1versions~1{version_id}/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiDubbingVersionResponse","exampleIds":["paths/~1v1~1versions~1{version_id}/get/responses/200/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/versions/versions-get_version"}],"panels":[]}]},"httpPath":"/v1/versions/{version_id}"},{"label":"Revise version","deprecated":false,"httpVerb":"patch","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/versions/versions-revise_version","routeSlug":"/apis/versions/versions-revise_version","metadata":{"seo":{"title":"Revise version","description":"Revert a generated dubbing version to editing mode in the Panjaya Dubbing Studio."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Versions-revise_version","name":"Revise version","isWebhook":false,"pointer":"/paths/~1v1~1versions~1{version_id}~1revise/patch","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Revise version","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Revert a generated dubbing version to editing mode in the Panjaya Dubbing Studio."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Once a dubbing version is successfully generated, its status changes to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", allowing only preview access to"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"the generated video. If further edits are needed, use this endpoint to restore the version to an "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"editable state"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": This action permanently removes the generated video and its associated "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"result_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"studio_url_request"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" provided this endpoint will return a URL to the Panjaya Dubbing Studio."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/apis/versions/versions-get_studio_url_for_version"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a signed URL"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint for more details."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"versions/versions-revise_version/request/version-status","deepLinkHash":"/versions/versions-revise_version#versions/versions-revise_version/request/version-status"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Version Status"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This operation is only allowed if the version status is either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ReadyToEdit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Upon execution,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"the version status will be updated to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ReadyToEdit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", allowing further modifications."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"version_id","in":"path","schemaId":"schema_15","required":true}],"pointer":"/paths/~1v1~1versions~1{version_id}~1revise/patch/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/Body_Versions-revise_version"}},"schemaId":"components/schemas/Body_Versions-revise_version","pointer":"/paths/~1v1~1versions~1{version_id}~1revise/patch/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PATCH","path":"/v1/versions/{version_id}/revise","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"version_id","in":"path","required":true,"schemaId":"schema_15"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/Body_Versions-revise_version"}},"responseCodes":["200","400","401","500"],"pointer":"/v1/versions/{version_id}/revise","href":"versions/versions-revise_version","openApiOperationId":"Versions-revise_version","summary":"Revise version"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/Body_Versions-revise_version","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/Body_Versions-revise_version"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Version has been reverted and is ready to edit in studio","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ReviseVersionResponse"}},"schemaId":"components/schemas/ReviseVersionResponse"},{"code":"400","description":"The request could not be processed due to invalid input","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1versions~1{version_id}~1revise/patch/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ReviseVersionResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ReviseVersionResponse"}}},{"code":"400","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/versions/versions-revise_version"}],"panels":[]}]},"httpPath":"/v1/versions/{version_id}/revise"},{"label":"Generate version","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/versions/versions-generate_version","routeSlug":"/apis/versions/versions-generate_version","metadata":{"seo":{"title":"Generate version","description":"Initiate the generation process for a dubbing version. Once the process is complete,and you'll receive notifications via email or a callback URL, if configured (see below). Your final video willthen be available for download."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Versions-generate_version","name":"Generate version","isWebhook":false,"pointer":"/paths/~1v1~1versions~1{version_id}~1generate/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Generate version","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Initiate the generation process for a dubbing version. Once the process is complete,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"and you'll receive notifications via "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"email"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or a "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"callback URL"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", if configured (see below). Your final video will"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"then be available for download."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"versions/versions-generate_version/request/version-status","deepLinkHash":"/versions/versions-generate_version#versions/versions-generate_version/request/version-status"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Version Status"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This operation is only allowed if the version status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ReadyToEdit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Upon execution,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"the version status will be updated to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Generating"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", until the generation process is completed,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"after which the version status will be updated to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"version_id","in":"path","schemaId":"schema_15","required":true}],"pointer":"/paths/~1v1~1versions~1{version_id}~1generate/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiVersionGenerateRequest"}},"schemaId":"components/schemas/ApiVersionGenerateRequest","pointer":"/paths/~1v1~1versions~1{version_id}~1generate/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/versions/{version_id}/generate","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"version_id","in":"path","required":true,"schemaId":"schema_15"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/ApiVersionGenerateRequest"}},"responseCodes":["202","400","401","500"],"pointer":"/v1/versions/{version_id}/generate","href":"versions/versions-generate_version","openApiOperationId":"Versions-generate_version","summary":"Generate version"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/ApiVersionGenerateRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiVersionGenerateRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"202","description":"The version is being generated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16"}},"schemaId":"schema_16"},{"code":"400","description":"The request could not be processed due to invalid input","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1versions~1{version_id}~1generate/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"202","schemaId":"schema_16","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16"}}},{"code":"400","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/versions/versions-generate_version"}],"panels":[]}]},"httpPath":"/v1/versions/{version_id}/generate"},{"label":"Create a signed URL for version","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/versions/versions-get_studio_url_for_version","routeSlug":"/apis/versions/versions-get_studio_url_for_version","metadata":{"seo":{"title":"Create a signed URL for version","description":"Create a URL that allows anyone with the link to access the Panjaya Dubbing Studio for a specific dubbing version."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Versions-get_studio_url_for_version","name":"Create a signed URL for version","isWebhook":false,"pointer":"/paths/~1v1~1versions~1{version_id}~1studio_url/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a signed URL for version","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a URL that allows anyone with the link to access the Panjaya Dubbing Studio for a specific dubbing version."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This endpoint is useful for sharing a version with collaborators or reviewers who need to make edits or QC the dubbing,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"without requiring them to log in."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The generated URL provides a pre-signed access to the Panjaya Dubbing Studio, where users can view the dubbing version, adjust the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"text, and fine-tune the dubbing. The access is limited to the specific version and does not allow access to other"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"versions or assets."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Adjust the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expiration_minutes"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter to specify the duration in minutes for which the URL will remain valid."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The default expiration time is 3 hours."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"version_id","in":"path","schemaId":"schema_15","required":true}],"pointer":"/paths/~1v1~1versions~1{version_id}~1studio_url/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiVersionStudioUrlRequest"}},"schemaId":"components/schemas/ApiVersionStudioUrlRequest","pointer":"/paths/~1v1~1versions~1{version_id}~1studio_url/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/versions/{version_id}/studio_url","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"version_id","in":"path","required":true,"schemaId":"schema_15"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/ApiVersionStudioUrlRequest"}},"responseCodes":["200","401","404","500"],"pointer":"/v1/versions/{version_id}/studio_url","href":"versions/versions-get_studio_url_for_version","openApiOperationId":"Versions-get_studio_url_for_version","summary":"Create a signed URL for version"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/ApiVersionStudioUrlRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiVersionStudioUrlRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Version found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiVersionStudioUrlResponse","exampleIds":["paths/~1v1~1versions~1{version_id}~1studio_url/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/ApiVersionStudioUrlResponse","exampleIds":["paths/~1v1~1versions~1{version_id}~1studio_url/post/responses/200/content/application~1json/example"]},{"code":"401","description":"The API key could not be validated","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"404","description":"The requested resource was not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1versions~1{version_id}~1studio_url/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ApiVersionStudioUrlResponse","exampleIds":["paths/~1v1~1versions~1{version_id}~1studio_url/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiVersionStudioUrlResponse","exampleIds":["paths/~1v1~1versions~1{version_id}~1studio_url/post/responses/200/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/versions/versions-get_studio_url_for_version"}],"panels":[]}]},"httpPath":"/v1/versions/{version_id}/studio_url"},{"label":"Get a version's subtitles","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/versions/versions-get_version_srt","routeSlug":"/apis/versions/versions-get_version_srt","metadata":{"seo":{"title":"Get a version's subtitles","description":"Fetch the current version's source transcript or target translation, formatted as an SRT file."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Versions-get_version_srt","name":"Get a version's subtitles","isWebhook":false,"pointer":"/paths/~1v1~1versions~1{version_id}~1srt/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get a version's subtitles","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fetch the current version's source transcript or target translation, formatted as an SRT file."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"locality"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter to indicate the desired subtitles - Set to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"source"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for fetching the transcript in the asset's source language,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"target"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for fetching the current translation in the version's target language."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"srt_profile"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameter to select the subtitle formatting profile:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"regular"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"(default)"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — standard desktop and TV viewing (up to 70 chars/block, 42 chars/line, 21 CPS)."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mobile"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — tighter limits for small screens (up to 45 chars/block, 22 chars/line, 17 CPS)."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"global_regular"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — like "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"regular"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" but uses a cross-sentence word-stream pipeline that produces more natural block breaks and better line balance."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"global_mobile"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — like "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mobile"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with the same cross-sentence pipeline."},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"version_id","in":"path","schemaId":"schema_15","required":true}],"pointer":"/paths/~1v1~1versions~1{version_id}~1srt/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"locality","in":"query","schemaId":"schema_17"},{"name":"srt_profile","in":"query","schemaId":"schema_18"}],"pointer":"/paths/~1v1~1versions~1{version_id}~1srt/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/versions/{version_id}/srt","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[{"name":"version_id","in":"path","required":true,"schemaId":"schema_15"}],"query":[{"name":"locality","in":"query","required":false,"schemaId":"components/schemas/ApiLocality"},{"name":"srt_profile","in":"query","required":false,"schemaId":"components/schemas/SrtProfile"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","401","404","500"],"pointer":"/v1/versions/{version_id}/srt","href":"versions/versions-get_version_srt","openApiOperationId":"Versions-get_version_srt","summary":"Get a version's subtitles"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"SRT successfully fetched","mediaType":"application/x-subrip","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"schema_19","exampleIds":["paths/~1v1~1versions~1{version_id}~1srt/get/responses/200/content/application~1x-subrip/example"]}},"schemaId":"schema_19","exampleIds":["paths/~1v1~1versions~1{version_id}~1srt/get/responses/200/content/application~1x-subrip/example"]},{"code":"401","description":"The API key could not be validated","mediaType":"application/x-subrip","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"404","description":"The requested resource was not found","mediaType":"application/x-subrip","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"},{"code":"500","description":"An internal server error occurred","mediaType":"application/x-subrip","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"components/schemas/ApiErrorResponse"}},"schemaId":"components/schemas/ApiErrorResponse"}],"pointer":"/paths/~1v1~1versions~1{version_id}~1srt/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_19","exampleIds":["paths/~1v1~1versions~1{version_id}~1srt/get/responses/200/content/application~1x-subrip/example"],"mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"schema_19","exampleIds":["paths/~1v1~1versions~1{version_id}~1srt/get/responses/200/content/application~1x-subrip/example"]}}},{"code":"401","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"components/schemas/ApiErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ApiErrorResponse","mediaTypes":["application/x-subrip"],"mediaTypeContent":{"application/x-subrip":{"schemaId":"components/schemas/ApiErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/versions/versions-get_version_srt"}],"panels":[]}]},"httpPath":"/v1/versions/{version_id}/srt"}],"content":{"contentType":"group","meta":{"name":"Versions"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Versions","showPageActions":true},{"nodeType":"markdoc","content":"After upload, an initial version of the dub is automatically created for each language. You can create additional\nversions for each language to act as snapshots in time as you edit or to edit independently, with each version\nidentified by a unique version ID."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/versions/{version_id}","summary":"Get a dubbing version","prefix":{"name":"get","color":"get"},"badges":[],"link":"/versions/versions-get_version","deprecated":false},{"title":"/v1/versions/{version_id}/revise","summary":"Revise version","prefix":{"name":"patch","color":"patch"},"badges":[],"link":"/versions/versions-revise_version","deprecated":false},{"title":"/v1/versions/{version_id}/generate","summary":"Generate version","prefix":{"name":"post","color":"post"},"badges":[],"link":"/versions/versions-generate_version","deprecated":false},{"title":"/v1/versions/{version_id}/studio_url","summary":"Create a signed URL for version","prefix":{"name":"post","color":"post"},"badges":[],"link":"/versions/versions-get_studio_url_for_version","deprecated":false},{"title":"/v1/versions/{version_id}/srt","summary":"Get a version's subtitles","prefix":{"name":"get","color":"get"},"badges":[],"link":"/versions/versions-get_version_srt","deprecated":false}]}]}]}]}},{"type":"group","label":"Callbacks","link":"/apis/callbacks","routeSlug":"/apis/callbacks","items":[{"label":"Receiving Status Updates","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/callbacks/callback_callback_post","routeSlug":"/apis/callbacks/callback_callback_post","metadata":{"seo":{"title":"Receiving Status Updates","description":"To stay informed about the progress of dubbing processes, you can configure a callback URL."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"callback_callback_post","name":"Receiving Status Updates","isWebhook":true,"pointer":"/paths/~1callback/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Receiving Status Updates","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To stay informed about the progress of dubbing processes, you can configure a callback URL."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For every status update related to an asset or its versions, Panjaya will send an HTTP "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" request to the specified URL."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Each update includes the following details:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Asset ID"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The unique identifier for the asset. This field is always included."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Version ID"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The unique identifier for the version. This field is optional and is included only for"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"version-related events."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Version locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The target language of the version. This field is optional and is included only for version-related events."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Event type"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" specifies the type of event that occurred. Possible values are:"},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"asset_failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": An error occurred while processing the asset. In this case, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"version_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field will be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"version_ready"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The version is ready for QC and additional editing in the workspace"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"version_failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" An error occurred during the dubbing process for this version."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"version_generating"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The version final video generation process has started."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"version_generated"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The version has been successfully generated. A URL to download the final video will be"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"provided in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"result_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field in "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/apis/versions/versions-get_version"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Get Version"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"version_generate_failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": An error occurred during the video generation process."},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"callbacks/callback_callback_post/request/signature-verification","deepLinkHash":"/callbacks/callback_callback_post#callbacks/callback_callback_post/request/signature-verification"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Signature verification"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To ensure the authenticity of our callback requests, each request will include a signature in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"X-Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The signature is calculated on the raw HTTP request's body, using the ES256 algorithm."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optionally, you may use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"X-Signature"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header to verify the authenticity of our request in your server."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Below is Panjaya's public key, to be used for verifying our callback's content:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZbUzbbuVyzSv7zVmH6rKypr6ojSS\n/86W9dU6mwbdfAtUAx+QI7GNxl/4H1QV2BuBrysabh56O/YXhnFJMh7Lng==\n-----END PUBLIC KEY-----\n","language":"text"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZbUzbbuVyzSv7zVmH6rKypr6ojSS\n/86W9dU6mwbdfAtUAx+QI7GNxl/4H1QV2BuBrysabh56O/YXhnFJMh7Lng==\n-----END PUBLIC KEY-----\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"And here's an example of how to verify the signature in Python:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"import binascii\nfrom cryptography.hazmat.primitives import serialization, hashes\nfrom cryptography.hazmat.primitives.asymmetric import ec\nfrom cryptography.exceptions import InvalidSignature\n\nPANJAYA_PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZbUzbbuVyzSv7zVmH6rKypr6ojSS\\n/86W9dU6mwbdfAtUAx+QI7GNxl/4H1QV2BuBrysabh56O/YXhnFJMh7Lng==\\n-----END PUBLIC KEY-----'\npublic_key = serialization.load_pem_public_key(PANJAYA_PUBLIC_KEY.encode())\n\ndef validate_panjaya_signature(request: Request) -> bool:\n    raw_body = request.body()\n    signature = request.headers.get(\"X-Signature\")\n    try:\n        signature_bytes = binascii.unhexlify(signature)\n        public_key.verify(signature_bytes, raw_body, ec.ECDSA(hashes.SHA256()))\n        print(\"Signature is valid ✅\")\n        return True\n    except InvalidSignature:\n        print(\"Signature is invalid ❌\")\n        return False\n","language":"python"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"import binascii\nfrom cryptography.hazmat.primitives import serialization, hashes\nfrom cryptography.hazmat.primitives.asymmetric import ec\nfrom cryptography.exceptions import InvalidSignature\n\nPANJAYA_PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZbUzbbuVyzSv7zVmH6rKypr6ojSS\\n/86W9dU6mwbdfAtUAx+QI7GNxl/4H1QV2BuBrysabh56O/YXhnFJMh7Lng==\\n-----END PUBLIC KEY-----'\npublic_key = serialization.load_pem_public_key(PANJAYA_PUBLIC_KEY.encode())\n\ndef validate_panjaya_signature(request: Request) -> bool:\n    raw_body = request.body()\n    signature = request.headers.get(\"X-Signature\")\n    try:\n        signature_bytes = binascii.unhexlify(signature)\n        public_key.verify(signature_bytes, raw_body, ec.ECDSA(hashes.SHA256()))\n        print(\"Signature is valid ✅\")\n        return True\n    except InvalidSignature:\n        print(\"Signature is invalid ❌\")\n        return False\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Here's an example of the payload you can expect:"},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Signature","in":"header","schemaId":"schema_20","description":"ES256 signature of the request body. Can be used to verify the authenticity of the request.","required":true},{"name":"X-Signature-Algorithm","in":"header","schemaId":"schema_21"}],"pointer":"/paths/~1callback/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiCallbackRequest","exampleIds":["paths/~1callback/post/requestBody/content/application~1json/example"]}},"schemaId":"components/schemas/ApiCallbackRequest","exampleIds":["paths/~1callback/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1callback/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"/callback","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"X-Signature","in":"header","required":true,"schemaId":"schema_20"},{"name":"X-Signature-Algorithm","in":"header","required":false,"schemaId":"schema_21"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ApiCallbackRequest","exampleIds":["paths/~1callback/post/requestBody/content/application~1json/example"]}},"responseCodes":["200","422"],"pointer":"/callback","href":"callbacks/callback_callback_post","openApiOperationId":"callback_callback_post","summary":"Receiving Status Updates"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"schemaId":"components/schemas/ApiCallbackRequest","exampleIds":["paths/~1callback/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ApiCallbackRequest","exampleIds":["paths/~1callback/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16"}},"schemaId":"schema_16"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1callback/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_16","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/callbacks/callback_callback_post"}],"panels":[]}]},"httpPath":"/callback"}],"content":{"contentType":"group","meta":{"name":"Callbacks"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Callbacks","showPageActions":true},{"nodeType":"markdoc","content":"Learn how to use a callback URL to receive real-time status updates about the dubbing process."}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"/callback","summary":"Receiving Status Updates","prefix":{"name":"post","color":"post"},"badges":[],"link":"/callbacks/callback_callback_post","deprecated":false}]}]}]}]}},{"type":"group","label":"Voices","link":"/apis/voices","routeSlug":"/apis/voices","items":[{"label":"Get Voices","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/voices/voices-get_voices","routeSlug":"/apis/voices/voices-get_voices","metadata":{"seo":{"title":"Get Voices","description":"List the library voices available for voice-over. Use a voice's library_id as a language's voice_over_library_id in the create-asset request."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"Voices-get_voices","name":"Get Voices","isWebhook":false,"pointer":"/paths/~1v1~1voices/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Voices","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"List the library voices available for voice-over. Use a voice's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as a language's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over_library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the create-asset request."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api_key","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"skip","in":"query","schemaId":"schema_12"},{"name":"limit","in":"query","schemaId":"schema_22"}],"pointer":"/paths/~1v1~1voices/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/voices","servers":[{"url":"https://api.panjaya.ai"}],"parameters":{"path":[],"query":[{"name":"skip","in":"query","required":false,"schemaId":"schema_12"},{"name":"limit","in":"query","required":false,"schemaId":"schema_22"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api_key","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/v1/voices","href":"voices/voices-get_voices","openApiOperationId":"Voices-get_voices","summary":"Get Voices"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.panjaya.ai"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_23"}},"schemaId":"schema_23"}],"pointer":"/paths/~1v1~1voices/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_23","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_23"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/voices/voices-get_voices"}],"panels":[]}]},"httpPath":"/v1/voices"}],"content":{"contentType":"group","meta":{"name":"Voices"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Voices","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/voices","summary":"Get Voices","prefix":{"name":"get","color":"get"},"badges":[],"link":"/voices/voices-get_voices","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/ApiAddAssetLanguageRequest":{"id":"components/schemas/ApiAddAssetLanguageRequest","kind":"json-schema","title":"ApiAddAssetLanguageRequest","data":{"properties":{"languages":{"items":{"$ref":"#/components/schemas/ApiLanguageRequest"},"type":"array","title":"Languages","description":"List of languages to translate and dub the asset to"},"auto_generate":{"$ref":"#/components/schemas/AutoGenerate","description":"If specified, Panjaya will generate the result video automatically, with or without synthesized lips according to the parameter's value. If not specified, Panjaya will not generate the result video automatically.","default":"off"}},"type":"object","required":["languages"],"title":"ApiAddAssetLanguageRequest"}},"components/schemas/ApiAssetErrorInfo":{"id":"components/schemas/ApiAssetErrorInfo","kind":"json-schema","title":"ApiAssetErrorInfo","data":{"properties":{"error_code":{"anyOf":[{"type":"string","enum":["invalid_input","unsupported_media","empty_transcript","missing_audio_track","video_duration_limit_reached","video_size_limit_reached","time_out_of_range","voice_over_library_required","voice_over_with_lips_not_allowed"]},{"type":"string"}],"title":"Error Code","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the asset's status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this field will contain additional error information."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Common error codes for assets are:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_input"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The input provided is invalid. Ensure all provided fields match the asset's properties."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unsupported_media"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": We didnt find a valid video stream in the media file."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"empty_transcript"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": No spoken content was identified in the uploaded video."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"missing_audio_track"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": No audio tracks were found in the source video."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video_duration_limit_reached"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The video duration limit for your account has been reached."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video_size_limit_reached"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The file size of the requested video has exceeded the allowed size limit."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"time_out_of_range"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The provided start_time or end_time is out of video range. Ensure that the timestamps are within the video duration."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over_library_required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Voice-over is enabled but no voice_library_id was provided. Set voice_library_id to the library voice that should narrate the asset (list available voices with the GET /voices endpoint)."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over_with_lips_not_allowed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Voice-over cannot be combined with lip correction. Set auto_generate to no_lips (or off) when voice_over is enabled."},"children":[]}]}]}]}]},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["error_code","detail"],"title":"ApiAssetErrorInfo"}},"components/schemas/ApiAssetLanguageResponse":{"id":"components/schemas/ApiAssetLanguageResponse","kind":"json-schema","title":"ApiAssetLanguageResponse","data":{"properties":{"dubbing_id":{"anyOf":[{"type":"string","description":"Dubbing ID, if dubbing exists"},{"type":"null"}],"title":"Dubbing Id"},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"versions":{"items":{"$ref":"#/components/schemas/ApiAssetLanguageVersionResponse"},"type":"array","title":"Versions"}},"type":"object","required":["dubbing_id","locale","versions"],"title":"ApiAssetLanguageResponse"}},"components/schemas/ApiAssetLanguageVersionResponse":{"id":"components/schemas/ApiAssetLanguageVersionResponse","kind":"json-schema","title":"ApiAssetLanguageVersionResponse","data":{"properties":{"version_id":{"type":"string","title":"Version Id"},"voice_over":{"type":"boolean","title":"Voice Over","description":"Whether this version was created with voice-over enabled.","default":false}},"type":"object","required":["version_id"],"title":"ApiAssetLanguageVersionResponse"}},"components/schemas/ApiAssetResponse":{"id":"components/schemas/ApiAssetResponse","kind":"json-schema","title":"ApiAssetResponse","data":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"name":{"type":"string","title":"Name"},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/ApiAssetStatus"},"duration":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Duration","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Duration of the source video in seconds. The field may be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" while the asset is processing."},"children":[]}]}]}],"examples":[null,62.8]},"error":{"anyOf":[{"$ref":"#/components/schemas/ApiAssetErrorInfo","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"In case of an error while processing the asset, the asset status will be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and this field contains helpful information for identifying the issue."},"children":[]}]}]}]},{"type":"null"}]},"source_video_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":"The uploaded video before dubbing"},{"type":"null"}],"title":"Source Video Url"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A poster/thumbnail image for the asset, suitable for link previews. May be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" while the asset is processing."},"children":[]}]}]}]},{"type":"null"}],"title":"Thumbnail Url"},"languages":{"items":{"$ref":"#/components/schemas/ApiAssetLanguageResponse"},"type":"array","title":"Languages"}},"type":"object","required":["asset_id","name","locale","created_at","status","duration","languages"],"title":"ApiAssetResponse"}},"components/schemas/ApiAssetStatus":{"id":"components/schemas/ApiAssetStatus","kind":"json-schema","title":"ApiAssetStatus","data":{"type":"string","enum":["Dubbing","PendingReview","Ready","Failed"],"title":"ApiAssetStatus"}},"components/schemas/ApiAssetsResponse":{"id":"components/schemas/ApiAssetsResponse","kind":"json-schema","title":"ApiAssetsResponse","data":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/ApiBasicAssetResponse"},"type":"array","title":"Assets"}},"type":"object","required":["assets"],"title":"ApiAssetsResponse"}},"components/schemas/ApiBaseAssetLanguageResponse":{"id":"components/schemas/ApiBaseAssetLanguageResponse","kind":"json-schema","title":"ApiBaseAssetLanguageResponse","data":{"properties":{"dubbing_id":{"anyOf":[{"type":"string","description":"Dubbing ID, if dubbing exists"},{"type":"null"}],"title":"Dubbing Id"},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]}},"type":"object","required":["dubbing_id","locale"],"title":"ApiBaseAssetLanguageResponse"}},"components/schemas/ApiBasicAssetResponse":{"id":"components/schemas/ApiBasicAssetResponse","kind":"json-schema","title":"ApiBasicAssetResponse","data":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"name":{"type":"string","title":"Name"},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/ApiAssetStatus"},"duration":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Duration","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Duration of the source video in seconds. The field may be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" while the asset is processing."},"children":[]}]}]}],"examples":[null,62.8]},"error":{"anyOf":[{"$ref":"#/components/schemas/ApiAssetErrorInfo","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"In case of an error while processing the asset, the asset status will be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and this field contains helpful information for identifying the issue."},"children":[]}]}]}]},{"type":"null"}]},"source_video_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":"The uploaded video before dubbing"},{"type":"null"}],"title":"Source Video Url"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A poster/thumbnail image for the asset, suitable for link previews. May be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" while the asset is processing."},"children":[]}]}]}]},{"type":"null"}],"title":"Thumbnail Url"},"languages":{"items":{"$ref":"#/components/schemas/ApiBaseAssetLanguageResponse"},"type":"array","title":"Languages"}},"type":"object","required":["asset_id","name","locale","created_at","status","duration","languages"],"title":"ApiBasicAssetResponse"}},"components/schemas/ApiCallbackEvent":{"id":"components/schemas/ApiCallbackEvent","kind":"json-schema","title":"ApiCallbackEvent","data":{"type":"string","enum":["asset_failed","version_ready","version_failed","version_generating","version_generated","version_generate_failed"],"title":"ApiCallbackEvent"}},"components/schemas/ApiCallbackRequest":{"id":"components/schemas/ApiCallbackRequest","kind":"json-schema","title":"ApiCallbackRequest","data":{"properties":{"event":{"$ref":"#/components/schemas/ApiCallbackEvent"},"asset_id":{"type":"string","title":"Asset Id"},"version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Id"},"version_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Locale"}},"type":"object","required":["event","asset_id"],"title":"ApiCallbackRequest"}},"components/schemas/ApiCreateAssetRequest":{"id":"components/schemas/ApiCreateAssetRequest","kind":"json-schema","title":"ApiCreateAssetRequest","data":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Display name of the dubbing project. Must not be empty. Names exceeding 255 characters will be automatically truncated."},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"languages":{"items":{"$ref":"#/components/schemas/ApiLanguageRequest"},"type":"array","title":"Languages","description":"List of languages to translate and dub the asset to"},"callback_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":"If specified, Panjaya will POST this url on dubbing status updates. Must be a valid, publicly accessible HTTPS URL."},{"type":"null"}],"title":"Callback Url"},"speakers_count":{"anyOf":[{"type":"integer","maximum":35,"minimum":1},{"type":"null"}],"title":"Speakers Count","description":"Number of speakers in the source video. If not specified, Panjaya will attempt to automatically detect the number of speakers in the video.","examples":[null,1,2,3]},"start_time":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Start Time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Trim the source video from this time (in seconds). Must be within the video's total duration, otherwise, the asset will fail with an error code of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_input"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Defaults to the start of the video."},"children":[]}]}]}],"examples":[0,5.9,null]},"end_time":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"End Time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Trim the source video to this time (in seconds). Must be greater than start_time, if provided, and within the video's total duration, otherwise, the asset will fail with an error code of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_input"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Defaults to the end of the video."},"children":[]}]}]}],"examples":[null,120,304.2]},"auto_generate":{"$ref":"#/components/schemas/AutoGenerate","description":"If specified, Panjaya will generate the result video automatically, with or without synthesized lips according to the parameter's value. If not specified, Panjaya will not generate the result video automatically.","default":"off"},"source_srt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Srt","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optional reference SRT file contents. Recommended to be in a "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://docs.fileformat.com/video/srt/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"valid SRT file format"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", but other textual formats are also accepted."},"children":[]}]}]}]},"lips_model":{"anyOf":[{"$ref":"#/components/schemas/LipsModel","description":"The lips model to use. If not specified, Panjaya will use the default RealFace model."},{"type":"null"}]},"voice_anonymization":{"type":"number","maximum":1,"minimum":0,"title":"Voice Anonymization","description":"The degree of voice anonymization to apply, as a float between 0.0 (no anonymization, default) and 1.0 (maximum anonymization).","default":0,"examples":[0,0.5,1]},"voice_over":{"type":"boolean","title":"Voice Over","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Enable voice-over for the asset: instead of replacing the original speech, the original audio is ducked and the dubbed vocals are delayed and mixed on top. Requires "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and cannot be combined with synthesized lips ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"auto_generate=with_lips"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}],"default":false},"voice_library_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Library Id","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The library voice that narrates all speakers of the asset instead of their cloned voices (list available voices with the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /voices"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint). Can be used with or without "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; required when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is true."},"children":[]}]}]}]},"media_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Media Url","description":"Public URL (can be temporary) of the source video"},"background_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":"Optional public URL (can be temporary) of a background audio file to be used as background music in the result video."},{"type":"null"}],"title":"Background Url"},"speech_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":"Optional public URL (can be temporary) of a clean speech audio file to be used instead of extracting it from the media file."},{"type":"null"}],"title":"Speech Url"}},"type":"object","required":["name","locale","languages","media_url"],"title":"ApiCreateAssetRequest"}},"components/schemas/ApiDubbingVersionResponse":{"id":"components/schemas/ApiDubbingVersionResponse","kind":"json-schema","title":"ApiDubbingVersionResponse","data":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"dubbing_id":{"type":"string","title":"Dubbing Id"},"version_id":{"type":"string","title":"Version Id"},"name":{"type":"string","title":"Name"},"studio_url":{"type":"string","title":"Studio Url"},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/ApiVersionStatus"},"result_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Url"},"result_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Audio Url"},"result_generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Result Generated At"},"voice_over":{"type":"boolean","title":"Voice Over","description":"Whether the version was created with voice-over enabled, keeping the original audio under the dubbed vocals.","default":false},"error":{"anyOf":[{"$ref":"#/components/schemas/ApiVersionErrorInfo","description":"In case of an error while processing the version, this field contains helpful information for identifying the issue."},{"type":"null"}]}},"type":"object","required":["asset_id","dubbing_id","version_id","name","studio_url","locale","created_at","status"],"title":"ApiDubbingVersionResponse"}},"components/schemas/ApiErrorResponse":{"id":"components/schemas/ApiErrorResponse","kind":"json-schema","title":"ApiErrorResponse","data":{"properties":{"detail":{"type":"string","title":"Detail","description":"A full description of the error."}},"type":"object","required":["detail"],"title":"ApiErrorResponse"}},"components/schemas/ApiLanguageRequest":{"id":"components/schemas/ApiLanguageRequest","kind":"json-schema","title":"ApiLanguageRequest","data":{"properties":{"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"srt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Srt","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optional reference SRT file contents.  Must be in a "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://docs.fileformat.com/video/srt/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"valid SRT file format"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", otherwise, an error response of status 400 will be returned."},"children":[]}]}]}]}},"type":"object","required":["locale"],"title":"ApiLanguageRequest"}},"components/schemas/ApiLibraryVoiceResponse":{"id":"components/schemas/ApiLibraryVoiceResponse","kind":"json-schema","title":"ApiLibraryVoiceResponse","data":{"properties":{"library_id":{"type":"string","title":"Library Id","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Set a language's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over_library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to this value to narrate that language with this voice."},"children":[]}]}]}]},"name":{"type":"string","title":"Name"},"pronouns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pronouns"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sample_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Url","description":"Temporary URL to an audio sample of this voice."}},"type":"object","required":["library_id","name"],"title":"ApiLibraryVoiceResponse"}},"components/schemas/ApiLocality":{"id":"components/schemas/ApiLocality","kind":"json-schema","title":"ApiLocality","data":{"type":"string","enum":["source","target"],"title":"ApiLocality"}},"components/schemas/ApiUploadAssetRequest":{"id":"components/schemas/ApiUploadAssetRequest","kind":"json-schema","title":"ApiUploadAssetRequest","data":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Display name of the dubbing project. Must not be empty. Names exceeding 255 characters will be automatically truncated."},"locale":{"type":"string","maxLength":6,"minLength":5,"pattern":"^[a-z]{2,3}-[A-Z]{2}$","title":"Locale","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A locale code of "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"#section/Languages-support"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"a supported locale"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the locale is not supported, an error response of status 400 will be returned."},"children":[]}]}]}],"examples":["en-US","es-ES","zh-CN"]},"languages":{"items":{"$ref":"#/components/schemas/ApiLanguageRequest"},"type":"array","title":"Languages","description":"List of languages to translate and dub the asset to"},"callback_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri","description":"If specified, Panjaya will POST this url on dubbing status updates. Must be a valid, publicly accessible HTTPS URL."},{"type":"null"}],"title":"Callback Url"},"speakers_count":{"anyOf":[{"type":"integer","maximum":35,"minimum":1},{"type":"null"}],"title":"Speakers Count","description":"Number of speakers in the source video. If not specified, Panjaya will attempt to automatically detect the number of speakers in the video.","examples":[null,1,2,3]},"start_time":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Start Time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Trim the source video from this time (in seconds). Must be within the video's total duration, otherwise, the asset will fail with an error code of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_input"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Defaults to the start of the video."},"children":[]}]}]}],"examples":[0,5.9,null]},"end_time":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"End Time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Trim the source video to this time (in seconds). Must be greater than start_time, if provided, and within the video's total duration, otherwise, the asset will fail with an error code of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_input"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Defaults to the end of the video."},"children":[]}]}]}],"examples":[null,120,304.2]},"auto_generate":{"$ref":"#/components/schemas/AutoGenerate","description":"If specified, Panjaya will generate the result video automatically, with or without synthesized lips according to the parameter's value. If not specified, Panjaya will not generate the result video automatically.","default":"off"},"source_srt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Srt","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optional reference SRT file contents. Recommended to be in a "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://docs.fileformat.com/video/srt/"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"valid SRT file format"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", but other textual formats are also accepted."},"children":[]}]}]}]},"lips_model":{"anyOf":[{"$ref":"#/components/schemas/LipsModel","description":"The lips model to use. If not specified, Panjaya will use the default RealFace model."},{"type":"null"}]},"voice_anonymization":{"type":"number","maximum":1,"minimum":0,"title":"Voice Anonymization","description":"The degree of voice anonymization to apply, as a float between 0.0 (no anonymization, default) and 1.0 (maximum anonymization).","default":0,"examples":[0,0.5,1]},"voice_over":{"type":"boolean","title":"Voice Over","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Enable voice-over for the asset: instead of replacing the original speech, the original audio is ducked and the dubbed vocals are delayed and mixed on top. Requires "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_library_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and cannot be combined with synthesized lips ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"auto_generate=with_lips"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}],"default":false},"voice_library_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Library Id","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The library voice that narrates all speakers of the asset instead of their cloned voices (list available voices with the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /voices"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" endpoint). Can be used with or without "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; required when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"voice_over"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is true."},"children":[]}]}]}]}},"additionalProperties":false,"type":"object","required":["name","locale","languages"],"title":"ApiUploadAssetRequest","example":{"languages":[{"locale":"es-ES"}],"locale":"en-US","name":"My Asset"}}},"components/schemas/ApiVersionErrorInfo":{"id":"components/schemas/ApiVersionErrorInfo","kind":"json-schema","title":"ApiVersionErrorInfo","data":{"properties":{"error_code":{"anyOf":[{"type":"string","const":"general_error"},{"type":"string"}],"title":"Error Code"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["error_code","detail"],"title":"ApiVersionErrorInfo"}},"components/schemas/ApiVersionGenerateRequest":{"id":"components/schemas/ApiVersionGenerateRequest","kind":"json-schema","title":"ApiVersionGenerateRequest","data":{"properties":{"generate_mode":{"type":"string","enum":["with_lips","no_lips"],"title":"Generate Mode","description":"Panjaya will generate the version with or without synthesized lips according to the parameter's value."}},"type":"object","required":["generate_mode"],"title":"ApiVersionGenerateRequest"}},"components/schemas/ApiVersionStatus":{"id":"components/schemas/ApiVersionStatus","kind":"json-schema","title":"ApiVersionStatus","data":{"type":"string","enum":["NotReady","ReadyToEdit","Generating","Completed","Failed"],"title":"ApiVersionStatus"}},"components/schemas/ApiVersionStudioUrlRequest":{"id":"components/schemas/ApiVersionStudioUrlRequest","kind":"json-schema","title":"ApiVersionStudioUrlRequest","data":{"properties":{"sign_url":{"type":"boolean","title":"Sign Url","description":"If true, the returned URL will be signed","default":true},"expiration_minutes":{"type":"integer","exclusiveMaximum":7200,"exclusiveMinimum":0,"title":"Expiration Minutes","description":"Time in minutes for url to expire","default":180}},"type":"object","title":"ApiVersionStudioUrlRequest"}},"components/schemas/ApiVersionStudioUrlResponse":{"id":"components/schemas/ApiVersionStudioUrlResponse","kind":"json-schema","title":"ApiVersionStudioUrlResponse","data":{"properties":{"studio_url":{"type":"string","title":"Studio Url"}},"type":"object","required":["studio_url"],"title":"ApiVersionStudioUrlResponse"}},"components/schemas/AutoGenerate":{"id":"components/schemas/AutoGenerate","kind":"json-schema","title":"AutoGenerate","data":{"type":"string","enum":["off","with_lips","no_lips"],"title":"AutoGenerate"}},"components/schemas/Body_Assets-upload_asset":{"id":"components/schemas/Body_Assets-upload_asset","kind":"json-schema","title":"Body_Assets-upload_asset","data":{"properties":{"request":{"$ref":"#/components/schemas/ApiUploadAssetRequest","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A JSON object that accepts the same configuration as "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/apis/assets/assets-create_asset"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"creating an asset"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (except for the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" field)."},"children":[]}]}]}]},"video":{"type":"string","contentMediaType":"application/octet-stream","title":"Video","description":"Video file to upload. Maximum size is 5GB."},"background":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"type":"string","format":"binary","title":"Background","description":"Optional background audio file to upload. Maximum size is 500MB."},"speech":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"type":"string","format":"binary","title":"Speech","description":"Optional speech audio file to upload. Maximum size is 500MB."}},"type":"object","required":["request","video"],"title":"Body_Assets-upload_asset"}},"components/schemas/Body_Versions-revise_version":{"id":"components/schemas/Body_Versions-revise_version","kind":"json-schema","title":"Body_Versions-revise_version","data":{"properties":{"studio_url_request":{"anyOf":[{"$ref":"#/components/schemas/ApiVersionStudioUrlRequest"},{"type":"null"}]}},"type":"object","title":"Body_Versions-revise_version"}},"components/schemas/HTTPValidationError":{"id":"components/schemas/HTTPValidationError","kind":"json-schema","title":"HTTPValidationError","data":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}},"components/schemas/LipsModel":{"id":"components/schemas/LipsModel","kind":"json-schema","title":"LipsModel","data":{"type":"string","enum":["real_face","real_face_turbo"],"title":"LipsModel"}},"components/schemas/ReviseVersionResponse":{"id":"components/schemas/ReviseVersionResponse","kind":"json-schema","title":"ReviseVersionResponse","data":{"properties":{"studio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Studio Url"}},"type":"object","title":"ReviseVersionResponse"}},"components/schemas/SrtProfile":{"id":"components/schemas/SrtProfile","kind":"json-schema","title":"SrtProfile","data":{"type":"string","enum":["regular","mobile","global_regular","global_mobile"],"title":"SrtProfile"}},"components/schemas/ValidationError":{"id":"components/schemas/ValidationError","kind":"json-schema","title":"ValidationError","data":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"schema_12":{"kind":"json-schema","data":{"type":"integer","minimum":0,"default":0,"title":"Skip"},"id":"schema_12"},"schema_13":{"kind":"json-schema","data":{"type":"integer","maximum":50,"minimum":0,"default":30,"title":"Limit"},"id":"schema_13"},"schema_14":{"kind":"json-schema","data":{"type":"string","title":"Asset Id"},"id":"schema_14"},"schema_15":{"kind":"json-schema","data":{"type":"string","title":"Version Id"},"id":"schema_15"},"schema_16":{"kind":"json-schema","data":{},"id":"schema_16"},"schema_17":{"kind":"json-schema","data":{"$ref":"#/components/schemas/ApiLocality","default":"target"},"id":"schema_17"},"schema_18":{"kind":"json-schema","data":{"$ref":"#/components/schemas/SrtProfile","default":"regular"},"id":"schema_18"},"schema_19":{"kind":"json-schema","data":{"type":"string"},"id":"schema_19"},"schema_20":{"kind":"json-schema","data":{"type":"string","title":"X-Signature","description":"ES256 signature of the request body. Can be used to verify the authenticity of the request."},"id":"schema_20"},"schema_21":{"kind":"json-schema","data":{"type":"string","const":"ES256","title":"X-Signature-Algorithm","default":"ES256"},"id":"schema_21"},"schema_22":{"kind":"json-schema","data":{"type":"integer","maximum":100,"minimum":0,"default":100,"title":"Limit"},"id":"schema_22"},"schema_23":{"kind":"json-schema","data":{"type":"array","items":{"$ref":"#/components/schemas/ApiLibraryVoiceResponse"},"title":"Response Voices-Get Voices"},"id":"schema_23"}},"exampleStore":{"paths/~1v1~1assets~1/get/responses/200/content/application~1json/example":{"value":{"assets":[{"asset_id":"7b9b9e3c3c7e322aec4c3d9b","name":"Asset #1","locale":"en-US","created_at":"2023-08-10T12:00:00Z","status":"Ready","duration":123.45,"source_video_url":"https://signed_url/","languages":[{"dubbing_id":"7b9b9e3c3c7e322aec4c3d9c","locale":"es-ES"}]},{"asset_id":"7b9b9e3c3c7e322aec4c3d9d","name":"Asset #2","locale":"en-ES","created_at":"2023-08-11T12:00:00Z","status":"Dubbing","duration":123.45,"languages":[{"dubbing_id":"7b9b9e3c3c7e322aec4c3d9e","locale":"fr-FR"}]}]},"id":"paths/~1v1~1assets~1/get/responses/200/content/application~1json/example"},"paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation":{"value":{"name":"My Asset","locale":"en-US","languages":[{"locale":"es-ES"}],"media_url":"https://my.storage.service.com/my-video.mp4"},"key":"Simple asset creation","summary":"Simple asset creation","description":"Create a new asset with only required fields. Make sure to replace media URL with your own.","id":"paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Simple asset creation"},"paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback":{"value":{"name":"My Asset","locale":"en-US","languages":[{"locale":"es-ES","srt":"1\n00:00:00,000 --> 00:00:03,000\nHola mundo!..."}],"callback_url":"https://my.callback.service.com/callback","speakers_count":3,"end_time":60,"media_url":"https://my.storage.service.com/my-video.mp4"},"key":"Trim asset with SRT and callback","summary":"Trim asset with SRT and callback","description":"Upload a new asset with SRT file contents in Spanish, specify exactly 3 speakers, and dub only first minute. In addition, provide a callback URL to be notified when the asset is ready.","id":"paths/~1v1~1assets~1/post/requestBody/content/application~1json/examples/Trim asset with SRT and callback"},"paths/~1v1~1assets~1/post/responses/201/content/application~1json/example":{"value":{"asset_id":"7b9b9e3c3c7e322aec4c3d9b","name":"My Asset","locale":"en-US","created_at":"2021-08-10T12:00:00Z","status":"Dubbing","languages":[{"locale":"es-ES","versions":[]}]},"id":"paths/~1v1~1assets~1/post/responses/201/content/application~1json/example"},"paths/~1v1~1assets~1upload/post/responses/201/content/application~1json/example":{"value":{"asset_id":"7b9b9e3c3c7e322aec4c3d9b","name":"My Asset","locale":"en-US","created_at":"2021-08-10T12:00:00Z","status":"Dubbing","languages":[{"locale":"es-ES","versions":[]}]},"id":"paths/~1v1~1assets~1upload/post/responses/201/content/application~1json/example"},"paths/~1v1~1assets~1{asset_id}/get/responses/200/content/application~1json/example":{"value":{"asset_id":"7b9b9e3c3c7e322aec4c3d9b","name":"My Asset","locale":"en-US","created_at":"2021-08-10T12:00:00Z","status":"Ready","duration":123.45,"source_video_url":"https://signed_url/","languages":[{"dubbing_id":"7b9b9e3c3c7e322aec4c3d9c","locale":"es-ES","versions":[{"version_id":"7b9b9e3c3c7e322aec4c3d9d","voice_over":false}]}]},"id":"paths/~1v1~1assets~1{asset_id}/get/responses/200/content/application~1json/example"},"paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example":{"value":{"languages":[{"locale":"ja-JP","srt":"1\n00:00:00,000 --> 00:00:03,000\nこんにちは!..."}],"auto_generate":"off"},"id":"paths/~1v1~1assets~1{asset_id}~1languages/post/requestBody/content/application~1json/example"},"paths/~1v1~1assets~1{asset_id}~1languages/post/responses/202/content/application~1json/example":{"value":{"asset_id":"7b9b9e3c3c7e322aec4c3d9b","name":"My Asset","locale":"en-US","created_at":"2021-08-10T12:00:00Z","status":"Dubbing","duration":123.45,"languages":[{"dubbing_id":"7b9b9e3c3c7e322aec4c3d9c","locale":"es-ES","versions":[{"version_id":"7b9b9e3c3c7e322aec4c3d9d","voice_over":false}]},{"locale":"ja-JP","versions":[]}]},"id":"paths/~1v1~1assets~1{asset_id}~1languages/post/responses/202/content/application~1json/example"},"paths/~1v1~1versions~1{version_id}/get/responses/200/content/application~1json/example":{"value":{"asset_id":"7b9b9e3c3c7e322aec4c3d9b","dubbing_id":"7b9b9e3c3c7e322aec4c3d9c","version_id":"7b9b9e3c3c7e322aec4c3d9d","name":"Version 1","locale":"es-ES","created_at":"2021-09-01T12:00:00Z","status":"Completed","result_url":"https://cdn.panjaya.ai/your-result.mp4","result_audio_url":"https://cdn.panjaya.ai/your-result.mp3","studio_url":"https://client.panjaya.ai/v/7b9b9e3c3c7e322aec4c3d9d"},"id":"paths/~1v1~1versions~1{version_id}/get/responses/200/content/application~1json/example"},"paths/~1v1~1versions~1{version_id}~1studio_url/post/responses/200/content/application~1json/example":{"value":{"studio_url":"https://client.panjaya.ai/v/7b9b9e3c3c7e322aec4c3d9d?access_token=eJzrWfJ9jf..."},"id":"paths/~1v1~1versions~1{version_id}~1studio_url/post/responses/200/content/application~1json/example"},"paths/~1v1~1versions~1{version_id}~1srt/get/responses/200/content/application~1x-subrip/example":{"value":"1\n00:00:00,000 --> 00:00:03,000\nHello, world!","id":"paths/~1v1~1versions~1{version_id}~1srt/get/responses/200/content/application~1x-subrip/example"},"paths/~1callback/post/requestBody/content/application~1json/example":{"value":{"event":"version_generated","asset_id":"7b9b9e3c3c7e322aec4c3d9b","version_id":"7b9b9e3c3c7e322aec4c3d9d"},"id":"paths/~1callback/post/requestBody/content/application~1json/example"}},"securitySchemeStore":{"api_key":{"id":"api_key","type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To access this endpoint, provide your Panjaya API key in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" HTTP header when making requests. Use the bearer format as shown below."},"children":[]}]}]}]}},"servers":[{"url":"https://api.panjaya.ai"}],"logo":{"imageUrl":"https://cdn.panjaya.ai/static/dark_large_logo.png?Expires=1891246954&Signature=oAYzHacofXB1uPyN3ZZg5Sl3x~IKohFiFa04tk7otV1enonu-Tr4O67Iu4gs4IRjWClbvTHyT6YeY-s3I6AtGFfGldeY06~Gb1eCJIqp2uXG6y-YQNpoR3E1u4vGN8yRD2IjZHNiOfXMTjVfo0OECuFpEwDDO7BWskSJSf4pcJ1WDfjQkGuGUfsxanHb2~k4R9mForQszP-Nqo0QiWmdlj5~Yc6SEy7pxAFminw1KqrGsjmGTocpQ7pV0MweJtMIfPtZu0sYc-RKFieInhovuOtP7k04rqiFkUfxb9j82d72QTzPHX40IyNWct~lb75tRQw~2gU459mHeNS3Rd4NsA__&Key-Pair-Id=K2ZVCBQJ3W7JVR","href":"https://www.panjaya.ai/"},"specType":"openapi"},"options":{"hideDownloadButtons":true,"hideSchemaTitles":true,"onlyRequiredInSamples":true,"codeSamples":{"skipOptionalParameters":true,"languages":[{"lang":"Payload"},{"lang":"Python"},{"lang":"Go"},{"lang":"JavaScript"},{"lang":"C#"},{"lang":"Java"},{"lang":"curl"}]},"mockServer":{"url":"/_mock/apis","position":"off","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/index.json?download"},{"url":"/_bundle/apis/index.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Panjaya Dubbing Studio API","description":"\n## Authentication\n\nTo authenticate with the API, you will need to provide your API key in the Authorization header of each request.\n\nIt should look like this:\n\n```http\nAuthorization: Bearer panjaya-{YOUR_API_KEY}\n```\n\n## Languages support\nBelow is a list of supported languages and their corresponding locale codes that are used in Panjaya Dubbing Studio API.\nPlease note that some languages are marked as source languages only, meaning they can only be used as the source language\nof the uploaded videos, while some are marked as target languages only - meaning they can only be translated into.\n\n| Language           | Locale code | Source supported | Target supported |\n|--------------------|-------------|------------------|------------------|\n| Arabic             | ar-AE       | ✅               | ✅               |\r\n| Bulgarian          | bg-BG       | ✅               | ✅               |\r\n| Cantonese          | yue-CN      | ✅               | ✅               |\r\n| Chinese            | zh-CN       | ✅               | ✅               |\r\n| Croatian           | hr-HR       | ✅               | ✅               |\r\n| Czech              | cs-CZ       | ✅               | ✅               |\r\n| Danish             | da-DK       | ✅               | ✅               |\r\n| Dutch              | nl-NL       | ✅               | ✅               |\r\n| English            | en-US       | ✅               | ✅               |\r\n| Filipino           | fil-PH      | ✅               | ✅               |\r\n| Finnish            | fi-FI       | ✅               | ✅               |\r\n| French             | fr-FR       | ✅               | ✅               |\r\n| German             | de-DE       | ✅               | ✅               |\r\n| Greek              | el-GR       | ✅               | ✅               |\r\n| Hebrew             | he-IL       | ✅               | 🚫               |\r\n| Hindi              | hi-IN       | ✅               | ✅               |\r\n| Hungarian          | hu-HU       | ✅               | ✅               |\r\n| Indonesian         | id-ID       | ✅               | ✅               |\r\n| Italian            | it-IT       | ✅               | ✅               |\r\n| Japanese           | ja-JP       | ✅               | ✅               |\r\n| Korean             | ko-KR       | ✅               | ✅               |\r\n| Lithuanian         | lt-LT       | ✅               | ✅               |\r\n| Malay              | ms-MY       | ✅               | ✅               |\r\n| Norwegian          | nb-NO       | ✅               | ✅               |\r\n| Polish             | pl-PL       | ✅               | ✅               |\r\n| Portuguese         | pt-BR       | ✅               | ✅               |\r\n| Portuguese         | pt-PT       | ✅               | ✅               |\r\n| Romanian           | ro-RO       | ✅               | ✅               |\r\n| Russian            | ru-RU       | ✅               | ✅               |\r\n| Slovak             | sk-SK       | ✅               | ✅               |\r\n| Spanish            | es-ES       | ✅               | ✅               |\r\n| Spanish            | es-MX       | ✅               | ✅               |\r\n| Swedish            | sv-SE       | ✅               | ✅               |\r\n| Tamil              | ta-IN       | ✅               | ✅               |\r\n| Thai               | th-TH       | 🚫               | ✅               |\r\n| Turkish            | tr-TR       | ✅               | ✅               |\r\n| Ukrainian          | uk-UA       | ✅               | ✅               |\r\n| Urdu               | ur-IN       | ✅               | 🚫               |\r\n| Vietnamese         | vi-VN       | ✅               | ✅               |\r\n\n\n## Error codes\nPanjaya Dubbing Studio API uses standard HTTP status codes to indicate the success or failure of an API request.\nIn case of an error, the response body will include a detailed error message to help you identify and resolve the issue.\n\nHere is a list of erroneous HTTP status codes and their general meanings:\n- **401 Unauthorized**: The API key could not be validated\n- **400 Bad Request**: The request could not be processed due to invalid input\n- **403 Forbidden**: The request could not be completed due to account limitations\n- **404 Not Found**: The requested resource was not found\n- **429 Too Many Requests**: Too many requests\n- **500 Internal Server Error**: An internal server error occurred"}},"baseSlug":"/apis","routesMapping":{}}