Blog Posts

Get Blog Posts

Retrieves the blog posts.

get/v1/shops/{shopId}/blog-posts

Request body

pageinteger
perPageinteger

Must be at least 1. Must not be greater than 100.

orderColumn'id' | 'title' | 'created_at' | 'updated_at'
orderDirection'asc' | 'desc'
titlestring

Must not be greater than 255 characters.

Example request

{
  "page": 12,
  "perPage": 1,
  "orderColumn": "id",
  "orderDirection": "asc",
  "title": "zwszwtxpeqqikym"
}

Response

current_pageinteger
first_page_urlstring
frominteger
last_pageinteger
last_page_urlstring
next_page_urlstring
pathstring
per_pageinteger
prev_page_urlstring
tointeger
totalinteger

Example response

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "shop_id": 1,
      "ai_generated": false,
      "topic_type": null,
      "path": "welcome",
      "title": "Welcome",
      "summary": "Welcome to our shop.",
      "image_id": null,
      "meta_title": null,
      "meta_description": null,
      "created_at": "2026-08-28T18:23:02.000000Z",
      "updated_at": "2026-08-28T18:23:02.000000Z",
      "image": null
    }
  ],
  "first_page_url": "http://api.sellauth.test/v1/shops/1/blog-posts?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "http://api.sellauth.test/v1/shops/1/blog-posts?page=1",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "http://api.sellauth.test/v1/shops/1/blog-posts?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "http://api.sellauth.test/v1/shops/1/blog-posts",
  "per_page": 1,
  "prev_page_url": null,
  "to": 1,
  "total": 1
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.