Search Documentation
Search for a documentation page...
Posts API
REST API endpoints for managing blog posts.
List Posts
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Posts per page (1-100) |
offset | number | 0 | Posts to skip |
query | string | — | Search by post title |
active | boolean | — | Filter by published status |
tag | string | — | Filter by tag |
Response
Get Post
Returns a single blog post by UUID or slug, with full TipTap JSON content and SEO metadata.
Create Post
Content must be valid TipTap JSON with type: "doc". The slug must be unique within the store.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Post title |
slug | string | Yes | URL slug (lowercase, numbers, hyphens) |
content | object | Yes | TipTap JSON content ({ type: "doc", content: [...] }) |
image | string | No | Featured image URL |
tag | string | No | Post tag/category |
active | boolean | No | Visible on storefront |
publishedAt | string | No | ISO 8601 publication date |
seo | object | No | SEO metadata (see below) |
filters | object | No | Key-value metadata filters |
SEO Object
| Field | Type | Description |
|---|---|---|
title | string | Meta title |
description | string | Meta description |
canonical | string | Canonical URL |
Update Post
Partially updates a blog post. Only the provided fields are changed. Accepts the same fields as create (all optional).
Delete Post
Permanently deletes a blog post.