API Reference
Documentation technique de l'API Eclectique Hub
Base URL : https://hub.eclectique.app
GET
/api/productsListe tous les produits du catalogue avec pagination, filtres par categorie et tri.
curl -H "Authorization: Bearer <token>" \ https://hub.eclectique.app/api/products?limit=20&offset=0
POST
/api/contentCree un nouveau contenu (post, caption, brief) avec validation Brain automatique.
curl -X POST -H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"type":"post","title":"Nouveau produit","body":"..."}' \
https://hub.eclectique.app/api/contentGET
/api/analyticsRecupere les metriques de performance : vues, engagement, conversions par periode.
curl -H "Authorization: Bearer <token>" \ https://hub.eclectique.app/api/analytics?from=2026-01-01&to=2026-05-10
POST
/api/brain/queryInterroge le Brain IA pour obtenir des suggestions contextuelles on-brand.
curl -X POST -H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"query":"caption pour nouvelle collection ete"}' \
https://hub.eclectique.app/api/brain/query