Posts
List blog posts for the authenticated website.
get/api/v1/posts
Request
- Base URLhttps://api.unicornplatform.com
- AuthHTTP bearer
Query parameters
pageinteger
perPageinteger
includeHtmlboolean
Include post HTML in list items. Defaults to false. Page size is capped at 25 when true.
publishedboolean
true returns public posts, false returns non-public posts.
slugstring
directorystring
updatedSincestring date-time
qstring
Simple case-insensitive search over prepared text content.
sort'-updatedAt' | 'updatedAt' | '-createdAt' | 'createdAt' | '-headline' | 'headline'
Response
Paginated post list.
Example response
{
"items": [
{
"id": "post_abc123def",
"slug": "my-post",
"directory": "/blog",
"path": "/blog/my-post",
"url": "https://example.com/blog/my-post"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.