Canva icon

Canva

Consume Canva API

Actions30

Autofill → Create

AI-generated

Summary

Creates an autofill job that applies data from a brand template to a new design. Additionally, it now supports a 'Generate' operation which autofills a brand template and exports the design in one step, handling polling until completion.

Inputs

  • brandTemplateId (required) — The ID of the brand template to autofill.
  • autofillData (required) — JSON object with field names and values to autofill.
  • title — Title for the autofilled design.
  • generateFormat (required) — The export format for the generated design. Required only for the 'Generate' operation.
  • generateExportOptions — Options to configure the export, such as quality, pages, size, and others. Applicable only to the 'Generate' operation.
  • generatePollOptions — Polling configuration options including max attempts and interval in milliseconds for checking job status. Applicable only to the 'Generate' operation.

Output shape

For the 'Create' operation, the output is the ID of the created autofill job which starts an asynchronous process. For the 'Generate' operation, the output includes the autofilled design details along with the export job information and URLs once the process completes.

The 'Create' operation initiates an asynchronous autofill job; use the 'Get' operation to check its status and retrieve the resulting design. The new 'Generate' operation automatically performs autofill, exports the design in the specified format, and returns the completed design and export URLs after polling for job completion.

Examples

Example 1: Apply a brand template to a new design

Select a brand template ID and provide JSON data (e.g., { 'Company Name': 'Acme Inc.', 'Tagline': 'Innovating Tomorrow' }) to fill its fields.

Example 2: Autofill and generate an exported design in a single step

Specify the brand template ID, JSON data for autofill, select output format (e.g., PNG), optionally set export options like quality or pages, and the node will handle job polling automatically.

Links

Discussion