Page Items
Create and manage content within page types.
Updated
On this page
Overview
Page items are individual entries within a content type. Each item has a title, slug, and the custom fields defined by its page type.
Reading Items
import dash from "@/lib/dash"
const { items } = await dash.contentTypes.listItems("testimonials")
items.forEach(item => {
console.log(item.title, item.slug)
console.log(item.fields) // Custom field values
})
REST API
# List items
GET /storefront/content-types/testimonials?limit=20
X-API-Key: pk_live_your_key
# Get single item
GET /storefront/content-types/testimonials/jane-review
X-API-Key: pk_live_your_key
Next Steps
- Creating Page Types — Define custom types
- Rendering Pages — Display on storefront