API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddPageapplyTemplateautofillDesignbulkCreate.launchcreateRichtextRangeeditContentgetBrandTemplateMetadatagetCurrentPageContextgetCurrentPageMetadatagetDesignColorsgetDesignMetadatagetDesignTemplateMetadatagetDesignTokeninitAppElementopenDesignoverlay.registerOnCanOpenpublish.launchrequestBrandTemplatesrequestDataFieldMatchingrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointChangelog
Intents
Intents: Asset
Intents: Content
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrlChangelog
App middleware: Express
Error
requestBrandTemplates
API reference for the requestBrandTemplates method.
This API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.
Trigger brand template selection panel and returns the selected template token.
Usage: Request brand templates
import { requestBrandTemplates } from "@canva/design";const response = await requestBrandTemplates();if (response.status === 'aborted') return;const { token } = response.brandTemplates[0];
TYPESCRIPT
Returns
Response object from the RequestBrandTemplate operation. This is a Promise that resolves with the following object:
Response object from the RequestBrandTemplate operation completed successfully.
statusstringThe only valid value is "completed".
brandTemplatesRequestBrandTemplatesResponseContent[]Response object from the RequestBrandTemplate operation completed successfully.
tokenstringResponse object from the RequestBrandTemplate operation that was aborted.
statusstringThe only valid value is "aborted".