Skip to content

Create Page

POST/pages

Create a new page.

Attributes

AttributeTypeDescription
name *string
slugstring
statusstring
ordernumber
settingsobject
prefillBlocksboolean
eventIdnumber
workspaceIdnumber

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

const confetti = new Confetti({ apiKey: 'your-key' })

const page = await confetti.pages.create({
  name: 'example',
})
sh
curl -X POST "https://api.confetti.events/pages" \
  -H "Content-Type: application/json" \
  -H "Authorization: apikey your-key" \
  -d '{
  "data": {
    "type": "page",
    "attributes": {
      "name": "example"
    }
  }
}'