Skip to main content
POST
Create a CMS collection

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Body

application/json

Create a collection

companyId
string
required

Company ID that owns the website

name
string
required

Machine name, slugified (e.g. "service-areas"). Templates loop over collections., and a /pages//[slug].html template serves one page per entry at //.

label
string

Human label shown in the editor (defaults to name)

description
string

What the collection holds

websiteId
string

Website to link the collection to on creation (from list websites)

Response

The created collection

The collection: id, name, label, description, entryCount