Skip to content

List Blog Posts

GET
/api/v1/posts

Lists posts with pagination, sorting and content filters.

Parameters

Query Parameters

page
Type
integer
Minimum
1
Default
1
limit
Type
integer
Minimum
1
Maximum
100
Default
10
sort
Type
string
Valid values
"created_at""published_at""updated_at""title"
order
Type
string
Valid values
"asc""desc"
Default
"desc"
status
Type
string
visibility
Type
string
category
Type
string
tag
Type
string
author
Type
string
q
Type
string
lang
Type
string

Responses

Posts list

Playground

Server
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

List blog posts with filters and pagination.

Auth: optional.

Parameters

NameInTypeRequiredDescription
pagequerynumberNoPage number
limitquerynumberNoItems per page
sortquerystringNoSort field
orderquerystringNoasc or desc
qquerystringNoText search

Request Body

None.

Response 200

json
{
	"data": [],
	"user_context": { "authenticated": false },
	"meta": { "page": 1, "limit": 10, "total": 0, "hasMore": false }
}

Response Errors

  • 400 invalid query parameters

Notes

  • Use this for public listing pages.
  • Supports page, limit, sort, order, category, tag, author, q, and lang filters.
  • Returns the standard data / user_context / meta envelope.