Get Blog Post by Slug
Powered by VitePress OpenAPI
Read a single blog post by slug.
Auth: optional.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | string | Yes | Post slug |
Request Body
None.
Response 200
json
{
"data": { "id": "post_1", "slug": "hello-world", "title": "Hello" },
"user_context": { "authenticated": false },
"meta": {}
}Response Errors
404post not found
Notes
- Best for public content pages.
- Slugs should be unique and stable.
- Returns the post payload plus viewer context.