CMS API
The CMS API provides programmatic access to your content, enabling integration with websites, apps, and other systems.
Overview
Use the API to:
- Fetch content for websites
- Integrate with mobile apps
- Build custom frontends
- Automate content workflows
API Basics
Base URL
Your CMS API is available at:
https://your-domain.com/cms/api/Authentication
API requests require authentication:
- API Key - For server-side access
- Token - For authenticated users
Response Format
All responses are in JSON format.
Common Endpoints
List Content
Get all entries of a content type:
GET /cms/api/{content-type}Get Single Entry
Get one content entry:
GET /cms/api/{content-type}/{id}Query Parameters
| Parameter | Description |
|---|---|
page | Page number |
limit | Items per page |
sort | Sort field and order |
filter | Filter criteria |
populate | Include relations |
Example Requests
Get All Blog Posts
GET /cms/api/blog-posts?limit=10&sort=createdAt:descGet Single Product
GET /cms/api/products/123Filter by Status
GET /cms/api/articles?filter[status]=publishedAPI Documentation Page
The CMS includes built-in API documentation:
- Go to CMS → API
- View available endpoints
- See request/response examples
- Test endpoints directly
Features
Pagination
Results are paginated by default:
page- Current pagepageSize- Items per pagepageCount- Total pagestotal- Total items
Sorting
Sort by any field:
?sort=createdAt:desc
?sort=title:ascFiltering
Filter by field values:
?filter[category]=news
?filter[published]=truePopulation
Include related content:
?populate=author,category
?populate=* // all relationsRate Limiting
API requests may be rate limited:
- Check response headers for limits
- Implement caching where possible
- Use webhooks for real-time updates
Best Practices
Performance
- Request only needed fields
- Use pagination for lists
- Cache responses appropriately
- Avoid over-fetching
Security
- Keep API keys secret
- Use HTTPS only
- Validate input data
- Handle errors gracefully
Tips
- Start Simple - Test basic queries first
- Use Documentation - Reference built-in docs
- Cache Wisely - Reduce API calls
- Handle Errors - Plan for failures
- Monitor Usage - Track API performance
Related Pages
- Content Manager - Manage content
- Content Type Builder - Define types
💡 Note: API access may require specific permissions. Contact your administrator if you need API access.
