API reference

Manage content articles and retrieve statistics from your own applications.

Base URLhttps://your-domain.com/api/content — all requests and responses are JSON.

Getting started with the API

  1. Create an API key under Settings → API in your dashboard.
  2. Send it in the X-API-Key header on every request.
  3. Make a first call to GET /api/content/stats to confirm access.
curl "https://your-domain.com/api/content/stats" \
  -H "X-API-Key: $CONTENT_HUB_API_KEY"

Errors

All endpoints return a JSON body with an error field on failure.

StatusMeaning
401Missing or invalid API key
400Invalid request body
404Content not found
405Method not allowed
500Server error