showCatalog

Renders an iframe that contains the product catalog.
(async () => {
const api = await Canva.Partnership.initialize({
apiKey: "<partner_api_key>",
autoAuthToken: "<auth_auth_token>",
container: document.getElementById("container"),
});
api.showCatalog({
// options go here
});
})();
javascript
ParameterTypeRequiredDescription
optsobjectYesOptions for configuring the product catalog.
opts.onProductSelectfunctionNoRefer to onProductSelect.
opts.onDesignSelectfunctionNoRefer to onDesignSelect.
opts.tagstringNoThe tag of a product catalog. This is only relevant when you've set up multiple product catalogs.