QUANTM7 Docs
Headless APIAPI Reference

Blog

Fetch blog posts, categories, and tags from the QUANTM7 API.

List blog posts

Returns a paginated list of published blog posts, ordered by publish date (newest first).

GET /v1/blog/posts

Auth: Publishable or secret key

Query parameters

ParameterTypeDefaultDescription
pageinteger1Page number
per_pageinteger25Items per page (max 100)

Response

{
  "data": [
    {
      "id": 15,
      "public_id": "01J7XYZ...",
      "title": "Summer Style Guide 2026",
      "handle": "summer-style-guide-2026",
      "excerpt": "Five looks to take you from beach to bar.",
      "author_name": "Sarah Chen",
      "author_avatar_url": "https://cdn.quantm7.com/store/team/sarah.webp",
      "featured_image_src": "https://cdn.quantm7.com/store/blog/summer-guide.webp",
      "featured_image_alt": "Summer style guide hero image",
      "is_featured": true,
      "reading_time_minutes": 5,
      "published_at": "2026-06-15T09:00:00.000Z",
      "created_at": "2026-06-10T14:30:00.000Z",
      "updated_at": "2026-06-15T09:00:00.000Z",
      "seo_title": "Summer Style Guide 2026 | My Store Blog",
      "seo_description": "Five versatile summer outfits for every occasion.",
      "category": {
        "id": 3,
        "name": "Style Guides",
        "handle": "style-guides"
      },
      "tags": [
        { "id": 8, "name": "Summer", "handle": "summer" },
        { "id": 12, "name": "Lookbook", "handle": "lookbook" }
      ]
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total": 23
  }
}

Post fields

FieldTypeDescription
idintegerPost ID
public_idstringPublic UUID
titlestringPost title
handlestringURL-safe slug
excerptstring or nullShort summary
author_namestring or nullAuthor display name
author_avatar_urlstring or nullAuthor avatar image
featured_image_srcstring or nullHero image URL
featured_image_altstring or nullHero image alt text
is_featuredbooleanWhether the post is featured
reading_time_minutesinteger or nullEstimated reading time in minutes
published_atstringPublish date (ISO 8601)
created_atstringCreation date
updated_atstringLast update date
seo_titlestring or nullSEO page title
seo_descriptionstring or nullSEO meta description
categoryobject or nullSingle category (see below)
tagsarrayList of tags

Category fields

FieldTypeDescription
idintegerCategory ID
namestringCategory name
handlestringURL-safe slug

Tag fields

FieldTypeDescription
idintegerTag ID
namestringTag name
handlestringURL-safe slug

Get a blog post

Returns a single blog post with its full content sections.

GET /v1/blog/posts/{handle}

Auth: Publishable or secret key

Path parameters

ParameterTypeDescription
handlestringBlog post handle

Response

The response includes all the fields from the list endpoint, plus og_image and content:

{
  "data": {
    "title": "Summer Style Guide 2026",
    "handle": "summer-style-guide-2026",
    "og_image": "https://cdn.quantm7.com/store/blog/summer-guide-og.webp",
    "blocks": { "..." : "..." },
    "sections": [
      {
        "id": 1,
        "section_type": "rich_text",
        "data": { "body": "<p>Summer is here...</p>" },
        "position": 1
      },
      {
        "id": 2,
        "section_type": "image_text",
        "data": {
          "image_src": "https://cdn.quantm7.com/store/blog/outfit-1.webp",
          "body": "<p>Look one: casual linen.</p>"
        },
        "position": 2
      }
    ]
  }
}

Section fields

FieldTypeDescription
idintegerSection ID
section_typestringSection type (e.g. rich_text, image_text, gallery, faq, video, table)
dataobjectSection-specific content data
positionintegerSort order

Blog posts use the same section system as pages. Each section type has its own data shape. See Pages for more on sections.

Errors

StatusCodeDescription
404not_foundNo blog post with this handle exists

List blog categories

Returns all blog categories.

GET /v1/blog/categories

Auth: Publishable or secret key

Response

{
  "data": [
    {
      "id": 3,
      "name": "Style Guides",
      "handle": "style-guides",
      "description": "Outfit inspiration and seasonal lookbooks."
    }
  ]
}

Fields

FieldTypeDescription
idintegerCategory ID
namestringCategory name
handlestringURL-safe slug
descriptionstring or nullCategory description

Examples

List posts:

curl "https://api.quantm7.com/v1/blog/posts?per_page=10" \
  -H "Authorization: Bearer q7_pk_your_key"

Get a single post:

curl https://api.quantm7.com/v1/blog/posts/summer-style-guide-2026 \
  -H "Authorization: Bearer q7_pk_your_key"

List categories:

curl https://api.quantm7.com/v1/blog/categories \
  -H "Authorization: Bearer q7_pk_your_key"

On this page