Exports
Export Templates
This endpoint allows you to export templates by making an HTTP POST request. This endpoint will also create a new design with the requested element changes.
Request
Method: POST
Endpoint:
https://api.creatopy.com/v1/export-with-changes
Body:
templateHash
(string): The hash of the creative.type
(string): The type of export.exportSettings
(object): Settings for the exportquality
(int): HTML specific param. (Accepted values are in the range from 1 to 100).gifPreset
(string): GIF specific param. Available values: ('highQuality', 'optimized', 'static').networkId
(int): HTML specific param.pdfPreset
(enum): PDF specific param (PDF_STANDARD and PDF_PRINT)slide
(array of int): PDF specific param (the slide number to export, starts from 0 (for the first slide))scale
: (float): JPG, WEBP, PNG specific param.targetFPS
: (int): frame rate - MP4 specific paramretina
(boolean): save retina-specific images - HTML specific paramretinaOnly
(boolean): exclude non-retina images from downloaded zip - HTML specific paramconvertCustomFonts
(boolean): convert custom fonts to SVG - HTML specific paramminifyHtml
(boolean): minify HTML size - HTML specific paramurlTarget
(enum): HTML specific param (_blank, _self, _top, _parent )useAsClickTag
(boolean): HTML specific paramclickTagUrl
(string): HTML specific paramincludeFallbackImage
(boolean): include a .jpg format fallback image into downloaded zip HTML specific param
webhookUrl
(string): Webhook URL that will be called when the export completes (succeed or fails)elementsChanges
(array):elementName
(string): The name of the element.changes
(array):attribute
(string): The attribute to be changed. (Available attributes are: "LABEL", "SOURCE", "CODE" and "VISIBILITY")value
(string): The new value for the attribute.
Response
The response to this request is a JSON schema:
With the export ID we will check the status of the export
Export existing design
This endpoint allows you to export existing designs by making an HTTP POST request. This endpoint will not create a new design.
Request
Method: POST
Endpoint:
https://api.creatopy.com/v1/export
Body:
creativeHash
(string): The hash of the creative.type
(string): The type of export.exportSettings
(object): Settings for the exportquality
(int): HTML specific param.gifPreset
(enum): GIF specific param.networkId
(int): HTML specific param.pdfPreset
(enum): Pdf specific param (PDF_STANDARD and PDF_PRINT)slide
(array of int): PDF specific param (the slide number to export, starts from 0 (for the first slide))
webhookUrl
(string): Webhook URL that will be called when the export completes (succeed or fails)
Response
The response to this request is a JSON schema:
With the export ID we will check the status of the export
Check Export Status
This endpoint retrieves the export data with the specified ID.
Request
Method: GET
URL:
https://api.creatopy.com/v1/export/b46adaed-39df-41a2-89e5-beb870282414
Response
Status: 200
Content-Type: application/json
Last updated