CimolaceDémarrer
Documentation/API Reference

API Reference

API REST Cimolace — Tous les endpoints sont préfixés par https://api.cimolace.com

Endpoints

Tous les endpoints retournent le format { data } ou { error: { code, message } }

GET/healthPublic
GET/auth/meJWT
POST/tenantsJWT
GET/tenants/currentJWT + Tenant
PATCH/tenants/current/brandingJWT + Tenant + Owner
POST/livesJWT + Tenant + Staff
GET/livesJWT + Tenant
GET/lives/:idJWT + Tenant
GET/lives/:id/tokenJWT + Tenant
POST/checkout/sessionsJWT
POST/checkout/webhook/stripePublic
GET/cimolace/catalogPublic
GET/marketing/promo-codesJWT + Tenant
GET/billing/subscriptionJWT + Tenant + Admin

Authentification

Tous les endpoints protégés nécessitent un token JWT Supabase dans le header Authorization: Bearer <token>

Les endpoints multi-tenant nécessitent le header X-Tenant-Slug: <slug>

En savoir plus sur la sécurité