API reference
Manage content articles and retrieve statistics from your own applications.
Base URL
https://your-domain.com/api/content — all requests and responses are JSON.Getting started with the API
- Create an API key under Settings → API in your dashboard.
- Send it in the
X-API-Keyheader on every request. - Make a first call to
GET /api/content/statsto confirm access.
curl "https://your-domain.com/api/content/stats" \
-H "X-API-Key: $CONTENT_HUB_API_KEY"Authentication
API keys, JWT sessions and security best practices.
Pages & content APICreate, read, update and delete content articles.
Errors
All endpoints return a JSON body with an error field on failure.
| Status | Meaning |
|---|---|
401 | Missing or invalid API key |
400 | Invalid request body |
404 | Content not found |
405 | Method not allowed |
500 | Server error |