List posts
Changed onRetrieves a list of posts with optional filtering and pagination. Returns lightweight post objects optimized for list views (excludes full content, only returns content_length for read time calculation).
Request
- Base URLhttps://postal.nesohq.org
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Number of posts to return
Number of posts to skip (for pagination)
Filter by post status
Filter by category ID
Filter by subcategory ID
Search in title, content, and summary
Field to sort by
Sort order
Response
Posts retrieved successfully
Example response
{
"status": true,
"message": "Posts retrieved successfully",
"data": [
{
"id": 1,
"slug": "getting-started-with-go",
"title": "Getting Started with Go",
"summary": "Learn the basics of Go programming",
"meta_description": "A comprehensive guide to getting started with Go",
"keywords": "go,programming,tutorial",
"category_id": 1,
"sub_category_id": 2,
"created_by": 1,
"view_count": 100,
"content_length": 1250
}
],
"meta": {
"total": 100,
"limit": 10
}
}Changes
- breaking
for the
queryrequest parameterlimit, default value was changed from10to20 - breaking
the response property
//became nullable for the status - warning
for the
queryrequest parameterlimit, the max was set to100.00 - warning
for the
queryrequest parameterlimit, the min was set to1.00 - warning
for the
queryrequest parameteroffset, the min was set to0.00 - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parametersearch - info
added the new optional
queryrequest parametersort_by - info
added the new optional
queryrequest parametersort_order - info
added the new enum value
deletedto thequeryrequest parameterstatus - info
added the optional property
//to the response with the status
- breaking
- breaking
for the
queryrequest parameterlimit, default value was changed from20to10 - breaking
removed the enum value
deletedfrom thequeryrequest parameterstatus - warning
deleted the
queryrequest parametersearch - warning
deleted the
queryrequest parametersort_by - warning
deleted the
queryrequest parametersort_order - warning
removed the optional property
//from the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking