API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagebulkCreate.launchcreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignMetadatagetDesignTemplateMetadatagetDesignTokeninitAppElementopenDesignoverlay.registerOnCanOpenpublish.launchrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDragChangelog
Error
Intents
Intents: Content
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrlChangelog
getDesignTemplateMetadata
API reference for the getDesignTemplateMetadata method.
Retrieves information about the template that was used in a design.
Usage: Get design template metadata
import { getDesignTemplateMetadata } from "@canva/design";const templateMetadata = await getDesignTemplateMetadata();const { keywords, domain } = templateMetadata;
TYPESCRIPT
Returns
Information about the template that was used in a design. This is a Promise that resolves with the following object:
templatesIterable<TemplateMetadata>Optional
The templates applied to the pages within the design.
keywordsstring[]A list of keywords contained in a template.
domainstringDetermines the domain of the template. This could be public, brand or personal.
Available values:
"public""brand""personal"