Admin APIPosts
List all posts
GET{handle}.blutui.com/admin/api/posts
List all blog posts for a project.
Query parameters
limitinteger | default: 10
Limit the number of objects to return, ranging between 1 and 20.
pageinteger | default: 1
The current page used to display the pagination results.
expandstring[]
Expand the response for the given items. Expand array accepts list.
Response
import Blutui from 'blutui'
const blutui = new Blutui('ey....')
blutui.project('one').admin.posts.list(){
"object": "list",
"data": [
{
"id": "9a53098c-29df-4347-bfdb-49be0850db29",
"object": "post",
"title": "A very awesome post",
"description": "A short description about my awesome post.",
"content": "<p>My post content</p>",
"slug": "/a-very-awesome-post",
"author": "John Doe",
"feature_image": "https://cdn.blutui.com/uploads/one/image.jpg",
"blog": "99e2addd-e8d2-45c3-8184-fbcae8a6cf29",
"publish_date": "2024-09-25T11:00:00+12:00",
"created_at": "2024-08-14T16:49:46+12:00",
"updated_at": "2024-08-14T16:49:46+12:00"
},
{...},
{...}
],
"meta": {
"has_more": false,
"current_page": 1,
"from": 1,
"to": 3,
"total": 3,
"per_page": 10,
"last_page": 1
}
}objectstring
This will always contain list for this endpoint.
dataarray
An array of up to limit blog post resources. If no blog posts are available, an empty array is returned.
metaobject
Additional information about the list.
Last updated on