Content
Blog posts, Morning Boost entries, Events, and Resources all follow the same REST pattern. Examples below use /api/admin/blog — substitute morning-boost, events, or resources for the other types.
/api/admin/blogAdminList blog posts
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | No | Search by title |
| published | boolean | No | true = published only, false = drafts only |
curl https://fixernation.org/api/admin/blog \
-H "Cookie: __Secure-next-auth.session-token=<token>"/api/admin/blogAdminCreate a blog post
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Post title |
| slug | string | Yes | Unique URL slug |
| content | string | No | HTML or Markdown body |
| excerpt | string | No | Short summary for cards and meta |
| imageUrl | string | No | Cloudinary featured image URL |
| category | string | No | Category label |
| authorName | string | No | Byline |
| publishedAt | string | No | ISO 8601 publish date; null keeps it as a draft |
curl -X POST https://fixernation.org/api/admin/blog \
-H "Cookie: __Secure-next-auth.session-token=<token>" \
-H "Content-Type: application/json" \
-d '{"title":"Five Mindset Habits","slug":"five-mindset-habits","authorName":"Anthony J. Placito","publishedAt":"2026-08-16T10:00:00.000Z"}'/api/admin/blog/:idAdminUpdate a blog post
curl -X PUT https://fixernation.org/api/admin/blog/post1 \
-H "Cookie: __Secure-next-auth.session-token=<token>" \
-H "Content-Type: application/json" \
-d '{"title":"Updated Title"}'/api/admin/blog/:idAdminDelete a blog post
curl -X DELETE https://fixernation.org/api/admin/blog/post1 \
-H "Cookie: __Secure-next-auth.session-token=<token>"/api/admin/blog/uploadAdminGet a signed Cloudinary upload URL
Returns a pre-signed URL and parameters for a direct browser-to-Cloudinary image upload. After upload, the returned secure_url becomes the imageUrl.
{
"uploadUrl": "https://api.cloudinary.com/v1_1/your-cloud/image/upload",
"signature": "abc123",
"timestamp": 1700000000,
"apiKey": "your-api-key",
"folder": "blog"
}curl -X POST https://fixernation.org/api/admin/blog/upload \
-H "Cookie: __Secure-next-auth.session-token=<token>"