Import a script as a new episode
Generates a new episode from finished script text, asynchronously. Poll its status for progress.
/v1/episodes/importAuthorizationBearer token · headerrequiredAPI key issued from /settings/api-keys in the Jellypod studio. Send as Authorization: Bearer <key>.
idempotency-keystringOptional key for one logical generation command. Reuse the same key and input after a lost or uncertain response. After a proven rejection before work starts, follow recovery.idempotency_key. Omit it to start a new generation on every request.
application/jsonpodcast_idstring<uuid>requiredPodcast that will own the imported generated episode.
outputsstring[]Files to produce: audio (MP3), video (MP4 with sound), both, or [] for an editable draft. Each requested file becomes downloadable independently. Do not combine with render. Omission preserves legacy render behavior.
renderbooleandeprecatedDeprecated: use outputs. True produces audio and video; false or omission leaves an editable draft. Do not combine with outputs.
scriptstringrequiredScript or transcript text. Bracketed speaker labels match saved Characters unless speaker_characters explicitly assigns their Character IDs.
speaker_charactersobject[]Optional explicit assignments for a finished script: label as written in [brackets], and character_id from list_characters. Assignments override name matching; unmapped labels still match saved Character names.
Show propertiesHide properties
objectcharacter_idstringrequiredlabelstringrequiredImported episode queued for generation
dataobjectrequiredShow propertiesHide properties
created_atstringrequiredhost_idsstring[]requiredidstringrequiredpodcast_idstringrequiredstatusstringrequiredgeneratingupdated_atstringrequiredworkflow_run_idstringrequiredValidation failed or malformed request.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorMissing or invalid API key.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorAuthenticated, but this API key does not have access to this resource.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorResource not found.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorRequest Content-Type is not supported for this endpoint.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorRequest was well-formed but the resource is in a state that does not allow this operation (e.g. publishing an episode that has not finished rendering).
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorRate limit exceeded. Wait Retry-After seconds before retrying; RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset describe the window.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorInternal server error.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_errorThe API could not enqueue the downstream asynchronous workflow.
detailstringLonger human-readable explanation when available.
errorsobject[]Per-field validation failures. Present when type is validation_error.
Show propertiesHide properties
objectfieldstringrequiredmessagestringrequiredreasonstringScript import failure when one or more Speakers have no saved Character match.
unresolved_speakersrecoveryobjectShow propertiesHide properties
actionstringrequiredcorrect_inputchoose_characterscheck_accountpoll_contentopen_studiocheck_contentreconnectretrycheck_resultidempotency_keystringreusenewpoll_after_secondsnumbertoolstringlist_characterslist_contentget_contentsave_podcastrequest_idstringCorrelation id, also returned in the X-Request-Id response header. Include in support requests.
speakersstring[]Speaker labels needing a saved Character match when reason is unresolved_speakers.
statusintegerrequiredHTTP status code mirrored from the response.
titlestringrequiredShort human-readable summary.
typestringrequiredMachine-readable error class. Suitable for switch/match in client code.
bad_requestvalidation_errorunauthorizedforbiddennot_foundconflictmethod_not_allowedunsupported_media_typeunprocessable_entityrate_limitedbad_gatewayinternal_error