Canva icon

Canva

Trabalhe com a API Connect do Canva para designs e assets

Actions22

Overview

This node integrates with the Canva API to create export jobs for designs. It allows users to export a design in various formats such as PDF, PNG, JPG, or MP4. Users can specify export options like quality, transparency (for PNG), lossless compression, and select specific pages to export. This is useful for automating the process of generating downloadable or shareable files from Canva designs within workflows.

Practical examples:

  • Automatically exporting a presentation design as a PDF after final edits.
  • Exporting selected pages of a multi-page design as high-quality PNG images with transparent backgrounds for use in marketing materials.
  • Generating video exports (MP4) from animated designs for social media posts.

Properties

Name Meaning
Design ID The unique identifier of the design to be exported.
Export Format The format to export the design in. Options: PDF, PNG, JPG, MP4.
Transparent Background (Only for PNG) Whether to export the PNG with a transparent background (available for paid plans).
Quality (For JPG and PNG) The quality level of the export. Options: Low, Medium, High.
Lossless (Only for PNG) Whether to use lossless compression for the PNG export.
Page Numbers Specific pages to export, specified as a comma-separated list or range (e.g., "1,2,3" or "1-5"). Optional.

Output

The node outputs JSON data representing the created export job. This typically includes details such as the job ID, status, and possibly URLs or references to the exported file once the job completes.

If the export job produces binary data (like the actual exported file), it would be accessible via the job's status or completion endpoint rather than directly in this node's output.

Dependencies

  • Requires an API authentication token credential for accessing the Canva API.
  • The node makes HTTP POST requests to the Canva API endpoint /designs/{designId}/export to create export jobs.
  • The base URL used is https://api.canva.com/rest/v1.
  • Proper permissions on the Canva account are necessary to export designs.

Troubleshooting

  • Invalid Design ID: If the provided design ID does not exist or is inaccessible, the API will return an error. Verify the design ID is correct and that the authenticated user has access.
  • Unsupported Export Format: Selecting an unsupported format or incompatible options (e.g., transparent background for non-PNG formats) may cause errors. Ensure options match the export format.
  • API Authentication Errors: Missing or expired API tokens will result in authorization failures. Refresh or reconfigure credentials as needed.
  • Page Numbers Format: Incorrectly formatted page numbers string may cause the export to fail. Use proper comma-separated values or ranges.
  • Feature Availability: Some features like transparent backgrounds for PNG exports require a paid Canva plan; attempting to use them without proper subscription may lead to errors.

Links and References

Discussion