{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canva/json-schema/canva-create-design-export-job-request-schema.json",
  "title": "CreateDesignExportJobRequest",
  "description": "Body parameters for starting an export job for a design.\nIt must include a design ID, and one of the supported export formats.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canva-export-api-openapi.yml#/components/schemas/CreateDesignExportJobRequest",
  "properties": {
    "design_id": {
      "description": "The design ID.",
      "type": "string"
    },
    "format": {
      "$ref": "#/$defs/ExportFormat"
    }
  },
  "required": [
    "design_id",
    "format"
  ],
  "type": "object",
  "$defs": {
    "CsvExportFormat": {
      "description": "Export the design as a CSV file. CSV export is only available for designs that contain\ntabular data, such as Canva Sheets.",
      "properties": {
        "type": {
          "enum": [
            "csv"
          ],
          "type": "string"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "ExportFormat": {
      "description": "Details about the desired export format.",
      "oneOf": [
        {
          "$ref": "#/$defs/PdfExportFormat"
        },
        {
          "$ref": "#/$defs/JpgExportFormat"
        },
        {
          "$ref": "#/$defs/PngExportFormat"
        },
        {
          "$ref": "#/$defs/PptxExportFormat"
        },
        {
          "$ref": "#/$defs/GifExportFormat"
        },
        {
          "$ref": "#/$defs/Mp4ExportFormat"
        },
        {
          "$ref": "#/$defs/HtmlBundleExportFormat"
        },
        {
          "$ref": "#/$defs/HtmlStandaloneExportFormat"
        },
        {
          "$ref": "#/$defs/CsvExportFormat"
        }
      ],
      "type": "object"
    },
    "ExportPageSize": {
      "default": "a4",
      "description": "The paper size of the export PDF file. The `size` attribute is only supported for Documents (Canva Docs).",
      "enum": [
        "a4",
        "a3",
        "letter",
        "legal"
      ],
      "type": "string"
    },
    "ExportQuality": {
      "default": "regular",
      "description": "Specifies the export quality of the design.",
      "enum": [
        "regular",
        "pro"
      ],
      "type": "string",
      "x-enum-descriptions": [
        "Regular quality export.",
        "Premium quality export.\n\nNOTE: A `pro` export might fail if the design contains [premium elements](https://www.canva.com/help/premium-elements/) and the calling user either hasn't purchased the elements or isn't on a Canva plan (such as Canva Pro) that has premium features."
      ]
    },
    "GifExportFormat": {
      "description": "Export the design as a GIF. Height or width (or both) may be specified, otherwise the file\nwill be exported at it's default size. Large designs will be scaled down, and aspect ratio\nwill always be maintained.",
      "properties": {
        "type": {
          "enum": [
            "gif"
          ],
          "type": "string"
        },
        "export_quality": {
          "$ref": "#/$defs/ExportQuality"
        },
        "height": {
          "description": "Specify the height in pixels of the exported image. Note the following behavior:\n\n- If no height or width is specified, the image is exported using the dimensions of the design.\n- If only one of height or width is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio.\n- If both the height and width are specified, but the values don't match the design's aspect ratio, the export defaults to the larger dimension.",
          "format": "int32",
          "maximum": 25000,
          "minimum": 40,
          "type": "integer"
        },
        "width": {
          "description": "Specify the width in pixels of the exported image. Note the following behavior:\n\n- If no width or height is specified, the image is exported using the dimensions of the design.\n- If only one of width or height is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio.\n- If both the width and height are specified, but the values don't match the design's aspect ratio, the export defaults to the larger dimension.",
          "format": "int32",
          "maximum": 25000,
          "minimum": 40,
          "type": "integer"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "HtmlBundleExportFormat": {
      "description": "Export the email design as an HTML bundle. An HTML bundle is a zip file that contains an HTML file and the associated assets.",
      "properties": {
        "type": {
          "enum": [
            "html_bundle"
          ],
          "type": "string"
        },
        "pages": {
          "description": "The pages of the design to export. Currently only a single page can be exported. If not provided,\nthe first page of the design is used.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "maxItems": 1,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "HtmlStandaloneExportFormat": {
      "description": "Export the email design as a standalone HTML file with hosted assets.",
      "properties": {
        "type": {
          "enum": [
            "html_standalone"
          ],
          "type": "string"
        },
        "pages": {
          "description": "The pages of the design to export. Currently only a single page can be exported. If not provided,\nthe first page of the design is used.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "maxItems": 1,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "JpgExportFormat": {
      "description": "Export the design as a JPEG. Compression quality must be provided. Height or width (or both)\nmay be specified, otherwise the file will be exported at it's default size.\n\nIf the user is on the Canva Free plan, the export height and width for a fixed-dimension design can't be upscaled by more than a factor of `1.125`.",
      "properties": {
        "type": {
          "enum": [
            "jpg"
          ],
          "type": "string"
        },
        "export_quality": {
          "$ref": "#/$defs/ExportQuality"
        },
        "quality": {
          "description": "For the `jpg` type, the `quality` of the exported JPEG determines how compressed the exported file should be. A _low_ `quality` value will create a file with a smaller file size, but the resulting file will have pixelated artifacts when compared to a file created with a _high_ `quality` value.",
          "format": "int32",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "height": {
          "description": "Specify the height in pixels of the exported image. Note the following behavior:\n\n- If no height or width is specified, the image is exported using the dimensions of the design.\n- If only one of height or width is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio.\n- If both the height and width are specified, but the values don't match the design's aspect ratio, the export defaults to the larger dimension.",
          "format": "int32",
          "maximum": 25000,
          "minimum": 40,
          "type": "integer"
        },
        "width": {
          "description": "Specify the width in pixels of the exported image. Note the following behavior:\n\n- If no width or height is specified, the image is exported using the dimensions of the design.\n- If only one of width or height is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio.\n- If both the width and height are specified, but the values don't match the design's aspect ratio, the export defaults to the larger dimension.",
          "format": "int32",
          "maximum": 25000,
          "minimum": 40,
          "type": "integer"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "quality",
        "type"
      ],
      "type": "object"
    },
    "Mp4ExportFormat": {
      "description": "Export the design as an MP4. You must specify the quality of the exported video.",
      "properties": {
        "type": {
          "enum": [
            "mp4"
          ],
          "type": "string"
        },
        "export_quality": {
          "$ref": "#/$defs/ExportQuality"
        },
        "quality": {
          "$ref": "#/$defs/Mp4ExportQuality"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "quality",
        "type"
      ],
      "type": "object"
    },
    "Mp4ExportQuality": {
      "description": "The resolution of the exported video, as a target number of pixels. The resolution is one of\n`480p`, `720p`, `1080p` or `4k`.\n\nThe exported video always has the same aspect ratio as the design, which matches creating a\ndownload from the Canva editor. The resolution sets how many pixels to target, and the\ndesign's aspect ratio decides how they're split between width and height, so the\n`horizontal` and `vertical` values of a given resolution produce the same output:\n\n- A 2160x3840 portrait design exported as `horizontal_4k` is 2160x3840, not 3840x2160. The\n  orientation in the value's name doesn't rotate or crop the design.\n- A 1000x2000 design exported as `horizontal_720p` is 678x1357, the 1:2 size closest to the\n  921,600 pixels of 1280x720. Aspect ratios that don't match a standard video size aren't\n  rounded to one.\n- A square design exported as `horizontal_4k` or `vertical_4k` is 2880x2880, the square with\n  the same number of pixels as 3840x2160.",
      "enum": [
        "horizontal_480p",
        "horizontal_720p",
        "horizontal_1080p",
        "horizontal_4k",
        "vertical_480p",
        "vertical_720p",
        "vertical_1080p",
        "vertical_4k"
      ],
      "type": "string"
    },
    "PdfExportFormat": {
      "description": "Export the design as a PDF. Providing a paper size is optional.",
      "properties": {
        "type": {
          "enum": [
            "pdf"
          ],
          "type": "string"
        },
        "export_quality": {
          "$ref": "#/$defs/ExportQuality"
        },
        "size": {
          "$ref": "#/$defs/ExportPageSize"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "PngExportFormat": {
      "description": "Export the design as a PNG. Height or width (or both) may be specified, otherwise\nthe file will be exported at it's default size. You may also specify whether to export the\nfile losslessly, and whether to export a multi-page design as a single image.\n\nIf the user is on the Canva Free plan, the export height and width for a fixed-dimension design can't be upscaled by more than a factor of `1.125`.",
      "properties": {
        "type": {
          "enum": [
            "png"
          ],
          "type": "string"
        },
        "export_quality": {
          "$ref": "#/$defs/ExportQuality"
        },
        "height": {
          "description": "Specify the height in pixels of the exported image. Note the following behavior:\n\n- If no height or width is specified, the image is exported using the dimensions of the design.\n- If only one of height or width is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio.\n- If both the height and width are specified, but the values don't match the design's aspect ratio, the export defaults to the larger dimension.",
          "format": "int32",
          "maximum": 25000,
          "minimum": 40,
          "type": "integer"
        },
        "width": {
          "description": "Specify the width in pixels of the exported image. Note the following behavior:\n\n- If no width or height is specified, the image is exported using the dimensions of the design.\n- If only one of width or height is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio.\n- If both the width and height are specified, but the values don't match the design's aspect ratio, the export defaults to the larger dimension.",
          "format": "int32",
          "maximum": 25000,
          "minimum": 40,
          "type": "integer"
        },
        "lossless": {
          "default": true,
          "description": "If set to `true` (default), the PNG is exported without compression.\n\nIf set to `false`, the PNG is compressed using a lossy compression algorithm.\n\nAVAILABILITY: Lossy PNG compression is only available to users on a Canva plan that has premium features, such as Canva Pro. If the user is on the Canva Free plan and this parameter is set to `false`, the export operation will fail.",
          "type": "boolean"
        },
        "transparent_background": {
          "default": false,
          "description": "If set to `true`, the PNG is exported with a transparent background.\n\nAVAILABILITY: This option is only available to users on a Canva plan that has premium features, such as Canva Pro. If the user is on the Canva Free plan and this parameter is set to `true`, the export operation will fail.",
          "type": "boolean"
        },
        "as_single_image": {
          "default": false,
          "description": "When `true`, multi-page designs are merged into a single image.\nWhen `false` (default), each page is exported as a separate image.",
          "type": "boolean"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "PptxExportFormat": {
      "description": "Export the design as a PPTX.",
      "properties": {
        "type": {
          "enum": [
            "pptx"
          ],
          "type": "string"
        },
        "pages": {
          "description": "To specify which pages to export in a multi-page design, provide the page numbers as\nan array. The first page in a design is page `1`.\nIf `pages` isn't specified, all the pages are exported.",
          "items": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  }
}