API Reference

Documentation technique de l'API Eclectique Hub

Base URL : https://hub.eclectique.app

GET/api/products

Liste 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/content

Cree 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/content
GET/api/analytics

Recupere 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/query

Interroge 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