Duply
duplyDuply provides template management and asynchronous image and video rendering through its REST v2 API, served live at /api/v2.
Acciones disponibles (12)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Archive TemplateDUPLY_ARCHIVE_TEMPLATEAcciónArchive a template so it is no longer active while preserving its render history. This is a destructive state change.
DUPLY_ARCHIVE_TEMPLATEAcciónArchive a template so it is no longer active while preserving its render history. This is a destructive state change.
Parámetros de entrada
template_idstringObligatorioID of the template to archive.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check HealthDUPLY_CHECK_HEALTHAcciónCheck whether the public Duply REST API is available and return its version. This endpoint does not validate the connected API key.
DUPLY_CHECK_HEALTHAcciónCheck whether the public Duply REST API is available and return its version. This endpoint does not validate the connected API key.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create RenderDUPLY_CREATE_RENDERAcciónCREDIT-METERED: Submit one asynchronous image or video render job. This can spend generation credits and returns immediately with a queued job rather than waiting for output; call GET_RENDER with the returned ID to monitor completion. Supplying an Idempotency-Key prevents duplicate spend when the same request is retried.
DUPLY_CREATE_RENDERAcciónCREDIT-METERED: Submit one asynchronous image or video render job. This can spend generation credits and returns immediately with a queued job rather than waiting for output; call GET_RENDER with the returned ID to monitor completion. Supplying an Idempotency-Key prevents duplicate spend when the same request is retried.
Parámetros de entrada
kindstringenumMedia kind to generate.
imagevideobatchobject[]Batch of 1-20 variable or input objects to render in this submitted job.
metadataobjectCaller-defined metadata to associate with the render job.
blueprintobjectAnimated video blueprint accepted by Duply for blueprint-driven rendering.
variablesobjectVariable values to apply to editable template fields.
variant_idstringSpecific template variant ID to render.
template_idstringTemplate ID to render, obtained from LIST_TEMPLATES or CREATE_TEMPLATE.
variant_namestringVariant name selector to use when a variant ID is not supplied.
output_formatstringenumRequested output format. Duply accepts png, jpeg, or mp4.
pngjpegmp4idempotency_keystringOptional stable unique key for this intended credit-spending render. Supplying one is strongly recommended: reuse it when retrying the same request, and use a new key only for a new render.
duration_secondsnumberDuration in seconds for a template-based MP4 render (0.5-30).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create TemplateDUPLY_CREATE_TEMPLATEAcciónCreate an image or video template, optionally with its first variant; this does not consume generation credits.
DUPLY_CREATE_TEMPLATEAcciónCreate an image or video template, optionally with its first variant; this does not consume generation credits.
Parámetros de entrada
namestringObligatorioHuman-readable template name.
widthintegerTemplate canvas width in pixels.
heightintegerTemplate canvas height in pixels.
metadataobjectOptional caller-defined metadata to store with the template.
backgroundstringTemplate background value accepted by Duply, such as a color string.
descriptionstringOptional explanation of the template's purpose.
template_typestringenumTemplate media type; omit to let Duply apply its default.
imagevideoinitial_variantobjectOptional first variant with a name and Duply design document.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Template VariantDUPLY_CREATE_TEMPLATE_VARIANTAcciónCreate an additional variant for an existing template without consuming generation credits.
DUPLY_CREATE_TEMPLATE_VARIANTAcciónCreate an additional variant for an existing template without consuming generation credits.
Parámetros de entrada
namestringOptional variant name.
widthintegerOptional variant canvas width in pixels.
heightintegerOptional variant canvas height in pixels.
documentobjectOptional Duply design document for the variant.
sort_orderintegerOptional non-negative display order among the template's variants.
template_idstringObligatorioID of the template that will own the new variant.
thumbnail_urlstringuriOptional URL of the variant thumbnail.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get RenderDUPLY_GET_RENDERAcciónGet the current status, credit cost, error, and authoritative generated file details for one asynchronous render. This action does not wait or poll: call it again later while status is queued or running.
DUPLY_GET_RENDERAcciónGet the current status, credit cost, error, and authoritative generated file details for one asynchronous render. This action does not wait or poll: call it again later while status is queued or running.
Parámetros de entrada
render_idstringObligatorioID of the render job returned by CREATE_RENDER or LIST_RENDERS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get TemplateDUPLY_GET_TEMPLATEAcciónGet one template's full settings and variants by template ID.
DUPLY_GET_TEMPLATEAcciónGet one template's full settings and variants by template ID.
Parámetros de entrada
template_idstringObligatorioID of the template to retrieve, obtained from LIST_TEMPLATES or CREATE_TEMPLATE.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get UsageDUPLY_GET_USAGEAcciónGet the connected workspace's billing period, plan, subscription-credit usage, top-up credit balance, and render count.
DUPLY_GET_USAGEAcciónGet the connected workspace's billing period, plan, subscription-credit usage, top-up credit balance, and render count.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List RendersDUPLY_LIST_RENDERSAcciónList asynchronous render jobs, optionally filtered by status or media kind, and return a cursor for the next page. Use GET_RENDER for output files.
DUPLY_LIST_RENDERSAcciónList asynchronous render jobs, optionally filtered by status or media kind, and return a cursor for the next page. Use GET_RENDER for output files.
Parámetros de entrada
kindstringenumReturn only image or video render jobs.
imagevideolimitintegerMaximum number of render jobs to return in this page (1-100).
statusstringenumReturn only jobs in this lifecycle state.
queuedrunningcompletedfailednext_cursorstringContinuation cursor returned by a previous call; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List TemplatesDUPLY_LIST_TEMPLATESAcciónList templates available to the connected workspace, returning summary fields and a cursor for the next page.
DUPLY_LIST_TEMPLATESAcciónList templates available to the connected workspace, returning summary fields and a cursor for the next page.
Parámetros de entrada
limitintegerMaximum number of templates to return in this page (1-100).
next_cursorstringContinuation cursor returned by a previous call; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update TemplateDUPLY_UPDATE_TEMPLATEAcciónUpdate one or more fields on an existing Duply template, including its metadata, dimensions, publication state, visibility, or archived state. Use is_archived=false to unarchive; ARCHIVE_TEMPLATE is the dedicated archive action.
DUPLY_UPDATE_TEMPLATEAcciónUpdate one or more fields on an existing Duply template, including its metadata, dimensions, publication state, visibility, or archived state. Use is_archived=false to unarchive; ARCHIVE_TEMPLATE is the dedicated archive action.
Parámetros de entrada
namestringNew human-readable template name.
widthintegerNew template canvas width in pixels.
heightintegerNew template canvas height in pixels.
statusstringenumNew template publication state.
draftpublishedmetadataobjectCaller-defined metadata to replace on the template.
is_publicbooleanWhether the template is publicly accessible.
backgroundstringNew template background, or null to clear it.
descriptionstringNew template description, or null to clear it.
is_archivedbooleanWhether the template is archived; set false to unarchive it.
template_idstringObligatorioID of the template to update, obtained from LIST_TEMPLATES.
thumbnail_urlstringuriNew template thumbnail URL, or null to clear it.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Template VariantDUPLY_UPDATE_TEMPLATE_VARIANTAcciónUpdate one or more fields on an existing template variant, including its design document, dimensions, thumbnail, or display order.
DUPLY_UPDATE_TEMPLATE_VARIANTAcciónUpdate one or more fields on an existing template variant, including its design document, dimensions, thumbnail, or display order.
Parámetros de entrada
namestringNew variant name.
widthintegerNew variant canvas width, or null to clear it.
heightintegerNew variant canvas height, or null to clear it.
documentobjectNew Duply design document for the variant.
sort_orderintegerNew non-negative display order for the variant.
variant_idstringObligatorioID of the variant to update.
template_idstringObligatorioID of the template that owns the variant.
thumbnail_urlstringuriNew variant thumbnail URL, or null to clear it.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not