PerspectPerspectDocs
Go to Admin
View as Markdown

Content

Posts, pages, and block content. The content API is the primary read surface for site loaders; see also Data Loaders for cached convenience wrappers.

See the API Reference for the full type and function surface, regenerated from source on every build.

Quick Start

const posts = await client.content.list('my-site', {
  type: 'post',
  status: 'publish',
  limit: 10,
});