> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt > Use this file to discover all available pages before exploring further. # Create print partner design export job This API is currently provided as a preview. Be aware of the following: * There might be unannounced breaking changes. * Any breaking changes to preview APIs won't produce a new [API version](https://www.canva.dev/docs/apps/rest-apis/versions/). * Public apps that use preview APIs will not pass the review process, and can't be made available to all Canva users. AVAILABILITY: This API is only available to Print Partners. Starts a new [asynchronous job](https://www.canva.dev/docs/apps/rest-apis/requests-responses/#asynchronous-job-endpoints) to export a Print Partner file from Canva. Once the exported file is generated, you can download it using the URL(s) provided. The download URLs are only valid for 24 hours. The request requires the design ID and exports a file as a print-quality PDF. This endpoint has the following additional rate limits: * **Integration throttle:** Each integration can export a maximum of 750 times per 5-minute window, and 5,000 times per 24-hour window. * **Document throttle:** Each document can be exported a maximum of 75 times per 5-minute window. * **User throttle:** Each user can export a maximum of 75 times per 5-minute window, and 500 times per 24-hour window. For more information on the workflow for using asynchronous jobs, see [API requests and responses](https://www.canva.dev/docs/apps/rest-apis/requests-responses/#asynchronous-job-endpoints). You can check the status and get the results of export jobs created with this API using the [Get design export job API](https://www.canva.dev/docs/apps/rest-apis/reference/exports/get-design-export-job/). ## HTTP method and URL path POST https\://api.canva.com/rest/v1/print-partner/exports ### Rate limit This operation is rate limited to 20 requests per minute for each user of your app. ## Authentication and authorization This endpoint supports public or private apps, and requires a valid OAuth access token that acts on behalf of a user (OAuth authorization code flow). For more information, see [Generate an access token](/docs/apps/rest-apis/reference/authentication/generate-access-token). ### Scopes The access token must have all the following [scopes](/docs/apps/rest-apis/scopes) (permissions): * `design:content:read` ## Header parameters Provides credentials to authenticate the request, in the form of a `Bearer` token. For example: `Authorization: Bearer {token}` Indicates the media type of the information sent in the request. This must be set to `application/json`. For example: `Content-Type: application/json` ## Body parameters The design ID. Details about the desired export format. Export the design as a Print-quality PDF. **Available values:** The only valid value is `pdf`. The size of the bleed that should be added to the design. The units of the bleed must be microns. This should match the bleed value used when creating the design with the [Create print partner design API](https://www.canva.dev/docs/apps/rest-apis/reference/print-partner/create-print-partner-design/). Use 0 for no bleed. If bleed is not specified, a default of 3000 microns is used. **Maximum:** `150000` **Default value:** `3000` Whether crop marks should be added to the image. **Default value:** `false` Whether the PDF color space should be converted to CMYK. **Default value:** `false` Whether the PDF standard should be updated to PDF/X, a printer friendly standard. **Default value:** `false` Export the design as a print-quality JPEG. **Available values:** The only valid value is `jpg`. Export the design as a print-quality PNG. **Available values:** The only valid value is `png`. Dimensions of the export in the specified units. The design dimensions must be within a scale factor of 0.3 and 3 of the requested export dimensions. Properties of dimensions} defaultExpanded={true}> The width of the exported image. Note the following behavior: * If no height or width is specified, the image is exported using the dimensions of the design. * If only one of height or width is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio. * 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. **Minimum:** `1` The height of the exported image. Note the following behavior: * If no height or width is specified, the image is exported using the dimensions of the design. * If only one of height or width is specified, then the image is scaled to match that dimension, respecting the design's aspect ratio. * 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. **Minimum:** `1` The units of the dimensions. If no units are specified, pixels are used. **Default value:** `px` **Available values:** * `px` * `in` * `cm` * `mm` To specify which pages to export in a multi-page design, provide the page numbers as an array. The first page in a design is page `1`. If `pages` isn't specified, all the pages are exported. ## Example request Examples for using the `/v1/print-partner/exports` endpoint: ```sh curl --request POST 'https://api.canva.com/rest/v1/print-partner/exports' \ --header 'Authorization: Bearer {token}' \ --header 'Content-Type: application/json' \ --data '{ "design_id": "DAVZr1z5464", "format": { "type": "pdf" }, "pages": [ 2, 3, 4 ], "dimensions": { "width": 200, "height": 300, "units": "px" } }' ``` ```js const fetch = require("node-fetch"); fetch("https://api.canva.com/rest/v1/print-partner/exports", { method: "POST", headers: { "Authorization": "Bearer {token}", "Content-Type": "application/json", }, body: JSON.stringify({ "design_id": "DAVZr1z5464", "format": { "type": "pdf" }, "pages": [ 2, 3, 4 ], "dimensions": { "width": 200, "height": 300, "units": "px" } }), }) .then(async (response) => { const data = await response.json(); console.log(data); }) .catch(err => console.error(err)); ``` ```java import java.io.IOException; import java.net.URI; import java.net.http.*; public class ApiExample { public static void main(String[] args) throws IOException, InterruptedException { HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.canva.com/rest/v1/print-partner/exports")) .header("Authorization", "Bearer {token}") .header("Content-Type", "application/json") .method("POST", HttpRequest.BodyPublishers.ofString("{\"design_id\": \"DAVZr1z5464\", \"format\": {\"type\": \"pdf\"}, \"pages\": [2, 3, 4], \"dimensions\": {\"width\": 200, \"height\": 300, \"units\": \"px\"}}")) .build(); HttpResponse response = HttpClient.newHttpClient().send( request, HttpResponse.BodyHandlers.ofString() ); System.out.println(response.body()); } } ``` ```py import requests headers = { "Authorization": "Bearer {token}", "Content-Type": "application/json" } data = { "design_id": "DAVZr1z5464", "format": { "type": "pdf" }, "pages": [ 2, 3, 4 ], "dimensions": { "width": 200, "height": 300, "units": "px" } } response = requests.post("https://api.canva.com/rest/v1/print-partner/exports", headers=headers, json=data ) print(response.json()) ``` ```csharp using System.Net.Http; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://api.canva.com/rest/v1/print-partner/exports"), Headers = { { "Authorization", "Bearer {token}" }, }, Content = new StringContent( "{\"design_id\": \"DAVZr1z5464\", \"format\": {\"type\": \"pdf\"}, \"pages\": [2, 3, 4], \"dimensions\": {\"width\": 200, \"height\": 300, \"units\": \"px\"}}", Encoding.UTF8, "application/json" ), }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }; ``` ```go package main import ( "fmt" "io" "net/http" "strings" ) func main() { payload := strings.NewReader(`{ "design_id": "DAVZr1z5464", "format": { "type": "pdf" }, "pages": [ 2, 3, 4 ], "dimensions": { "width": 200, "height": 300, "units": "px" } }`) url := "https://api.canva.com/rest/v1/print-partner/exports" req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer {token}") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/print-partner/exports", CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', 'Content-Type: application/json', ), CURLOPT_POSTFIELDS => json_encode([ "design_id" => "DAVZr1z5464", "format" => [ "type" => "pdf" ], "pages" => [ 2, 3, 4 ], "dimensions" => [ "width" => 200, "height" => 300, "units" => "px" ] ]) )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if (empty($err)) { echo $response; } else { echo "Error: " . $err; } ``` ```ruby require 'net/http' require 'uri' url = URI('https://api.canva.com/rest/v1/print-partner/exports') http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request['Authorization'] = 'Bearer {token}' request['Content-Type'] = 'application/json' request.body = < ## Success response If successful, the endpoint returns a `200` response with a JSON body with the following parameters: The status of the export job. Properties of job} defaultExpanded={true}> The export job ID. The export status of the job. A newly created job will be `in_progress` and will eventually become `success` or `failed`. **Available values:** * `failed` * `in_progress` * `success` Download URL(s) for the completed export job. These URLs expire after 24 hours. Depending on the design type and export format, there is a download URL for each page in the design. The list is sorted by page order. If the export fails, this object provides details about the error. Properties of error}> If the export failed, this specifies the reason why it failed. **Available values:** * `license_required`: The design contains [premium elements](https://www.canva.com/help/premium-elements/) that haven't been purchased. You can either buy the elements or upgrade to a Canva plan (such as Canva Pro) that has premium features, then try again. Alternatively, you can set `export_quality` to `regular` to export your document in regular quality. * `approval_required`: The design requires [reviewer approval](https://www.canva.com/en_au/help/design-approval/) before it can be exported. * `internal_failure`: The service encountered an error when exporting your design. A human-readable description of what went wrong. ## Example responses ### In progress job ```json { "job": { "id": "e08861ae-3b29-45db-8dc1-1fe0bf7f1cc8", "status": "in_progress" } } ``` ### Successfully completed job ```json { "job": { "id": "e08861ae-3b29-45db-8dc1-1fe0bf7f1cc8", "status": "success", "urls": [ "https://export-download.canva.com/..." ] } } ``` ### Failed job ```json { "job": { "id": "e08861ae-3b29-45db-8dc1-1fe0bf7f1cc8", "status": "failed", "error": { "code": "license_required", "message": "User doesn't have the required license to export in PRO quality." } } } ``` ## Error responses ### 400 Bad Request A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see [Error responses](/docs/apps/rest-apis/error-responses/). A human-readable description of what went wrong. #### Example error responses ##### Request design ID does not match expected format. ```json { "code": "invalid_request", "message": "{designId} does not match expected format for designId" } ``` ##### Export not supported for this design type. ```json { "code": "bad_request_body", "message": "{formatType} export not supported for this design type" } ``` ##### Export format not supported for requested page(s). ```json { "code": "bad_request_body", "message": "{formatType} export not supported for requested page(s) [{pageNumbers}]" } ``` ##### Requested invalid page range for design. ```json { "code": "bad_request_body", "message": "Requested page(s) [{badPageNumbers}] of a design with {maxPageNumber} page(s)" } ``` ##### Print partner export not supported for this design type. ```json { "code": "bad_request_body", "message": "Print partner export not supported for this design type" } ``` ##### Print partner export not supported for this design. ```json { "code": "bad_request_body", "message": "Print partner export not supported for this design" } ``` ##### Requested dimensions exceed expected bounds. ```json { "code": "bad_request_body", "message": "Requested dimensions exceed expected bounds" } ``` ### 403 Forbidden A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see [Error responses](/docs/apps/rest-apis/error-responses/). A human-readable description of what went wrong. #### Example error responses ##### Client does not have permission to create a Print Partner export. ```json { "code": "permission_denied", "message": "Client does not have permission to create a Print Partner export" } ``` ##### Not allowed to access design. ```json { "code": "permission_denied", "message": "Not allowed to access design with id {designId}" } ``` ##### User doesn't have the required license to export in PRO quality. ```json { "code": "license_required", "message": "User doesn't have the required license to export in PRO quality" } ``` ##### One or more of the resources in the design did not upload properly. ```json { "code": "permission_denied", "message": "One or more of the resources in the design did not upload properly" } ``` ##### The design contains embedded media that no longer work. ```json { "code": "permission_denied", "message": "The design contains embedded media that no longer work" } ``` ### 404 Not Found A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see [Error responses](/docs/apps/rest-apis/error-responses/). A human-readable description of what went wrong. #### Example error response ##### Design not found. ```json { "code": "design_not_found", "message": "Design with id '{designId}' not found" } ``` ### 429 Too Many Requests A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see [Error responses](/docs/apps/rest-apis/error-responses/). A human-readable description of what went wrong. #### Example error responses ##### Too many requests for client. ```json { "code": "too_many_requests", "message": "Too many export requests for client" } ``` ##### Too many daily requests for client. ```json { "code": "too_many_requests", "message": "Too many daily export requests for client" } ``` ##### Too many requests for user. ```json { "code": "too_many_requests", "message": "Too many export requests for user" } ``` ##### Too many daily requests for user. ```json { "code": "too_many_requests", "message": "Too many daily export requests for user" } ``` ##### Too many requests for design. ```json { "code": "too_many_requests", "message": "Too many export requests for design" } ```