> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/button/llms.txt > Use this file to discover all available pages before exploring further. # Creating designs Create a new design with the JavaScript API. After [setting up the JavaScript API](https://www.canva.dev/docs/button/html/getting-started/), the next step is to allow users to create a design with the Canva editor. To do this, call the [`createDesign`](https://www.canva.dev/docs/button/javascript/api-reference/create-design/) method: ```javascript api.createDesign({ design: { type: "Poster", }, }); ``` At a minimum, the `createDesign` method expects an `opts.design.type` argument. This argument defines the *design type* of a newly created design. The design type determines: * The dimensions of the user's design. * The templates that Canva shows to the user. For a complete list of design types that Canva supports, refer to [Design types](https://www.canva.dev/docs/button/reference/design-types/). ## Example ```markup