API reference
Asset: Test
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagebulkCreate.launchcreateRichtextRangeeditContentgetCurrentPageContextgetCurrentPageMetadatagetDefaultPageDimensionsgetDesignMetadatagetDesignTemplateMetadatagetDesignTokeninitAppElementopenDesignoverlay.registerOnCanOpenpublish.launchrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDragChangelog
Design: Test
Error
Error: Test
Intents
Intents: Content
Intents: Data
Intents: Design
Intents: Test
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrlChangelog
Platform: Test
User
User: Test
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"