What is Stru Blog API?
The Stru Blog API is a complete REST API for managing blog posts with full CRUD operations, pagination, search, and filtering capabilities. Create, read, update, and delete blog posts with ease. Base URL:https://api.stru.ai
Authentication: API key (handled internally)
Internal Use Only - This API is restricted to internal use. External access is not available.
Core Concepts
Blog Posts
Complete blog articles with title, content (markdown), author, tags, and metadata. Each post has a unique ID and URL-friendly slug.
Slugs
URL-friendly identifiers auto-generated from titles. Use slugs for clean URLs like
/blog/my-post-title.Tags
Categorize blog posts with tags. Filter and search posts by tags to organize content.
Publishing
Control visibility with published/unpublished status. Draft posts before publishing them live.
Key Features
- Full CRUD Operations: Create, read, update, and delete blog posts
- Semantic Search: Full-text search across titles and content
- Pagination: Efficient pagination for large blog collections
- Filtering: Filter by tags, authors, and publication status
- Auto-generation: Automatic slug and description generation
- Markdown Support: Rich content with markdown formatting
Quick Start
1
List All Blogs
Get a paginated list of published blog posts.
2
Create Your First Blog Post
Add a new blog post with title and content.
3
Search Blog Posts
Find relevant blog posts using full-text search.
4
Get Blog by Slug
Retrieve a specific blog post using its URL-friendly slug.
Response Format
All blog endpoints return JSON with consistent structure:Best Practices
Use Slugs for Clean URLs
Use Slugs for Clean URLs
Always use slugs instead of UUIDs in your blog URLs for better SEO and user experience.
Leverage Auto-generation
Leverage Auto-generation
Let the API auto-generate slugs and descriptions from your content. Override only when needed for SEO optimization.
Use Tags Effectively
Use Tags Effectively
Draft Before Publishing
Draft Before Publishing
Create posts with
published: false to draft content before making it live. Update to published: true when ready.API Endpoints Overview
| Endpoint | Method | Description |
|---|---|---|
/blogs | GET | List all blogs with pagination and filters |
/blogs/search | GET | Search blogs by query |
/blogs/{blog_id} | GET | Get blog by UUID |
/blogs/slug/{slug} | GET | Get blog by slug |
/blogs | POST | Create a new blog post |
/blogs/{blog_id} | PUT | Update an existing blog post |
/blogs/{blog_id} | DELETE | Delete a blog post |