Initializes the JavaScript API for the Canva Button. You must embed the Canva Button SDK before calling this function.
Usage
(async () => {if (!window.Canva || !window.Canva.DesignButton) {return;}const api = await window.Canva.DesignButton.initialize({apiKey: "API KEY GOES HERE",});})();
javascript