NjanggoNjanggoDocumentation API
Pro

Clés API

Créez, scopez et révoquez les clés d'accès REST Pro.

GET/v1/calendars/mon-calendrier
Preview

Try It! → /api/calendars/mon-calendrier

Paramètres

Modifiez les valeurs puis cliquez Try It! à droite.

Authorizationheaderrequis

Token Bearer Clerk (session dashboard)

Créer une clé

  1. 1

    Accéder au panneau

    Calendrier Pro → Développeur → Clés API.

  2. 2

    Nommer

    Ex. « Production CRM », « Staging kiosque ».

  3. 3

    Scopes

    Cochez le minimum — ex. guests:read seul pour un export automatique.

  4. 4

    Copier nj_live_…

    Affichée une seule fois. Stockez dans vos secrets serveur.

Scopes

ScopePermissions
events:readGET calendrier, events, billets, stats
events:writePOST/PATCH/DELETE events, billets, cancel, duplicate
guests:readGET guests, rsvps, export CSV/JSON
guests:writeInvite, approve, reject, status, transfer
checkins:readGET checkins list
checkins:writelookup QR + POST checkin
communications:writeAnnonces et rappels e-mail
webhooks:readGET webhook-deliveries, logs
webhooks:writePOST retry livraison
billing:readGET orders, sales-report
billing:writePOST refund — irréversible
analytics:readStats agrégées calendrier

Matrice endpoint × scope (extrait)

EndpointScopes requis
GET /api/v1/calendars/:slugevents:read
POST /api/v1/eventsevents:write
GET /api/v1/calendars/:slug/eventsevents:read
GET /api/v1/events/:slugevents:read
GET /api/v1/events/:eventId/guestsguests:read
POST /api/v1/events/:eventId/guestsguests:write
GET /api/v1/events/:eventId/exportguests:read
POST /api/v1/events/:eventId/checkinscheckins:write
GET /api/v1/events/:eventId/checkins/lookupcheckins:read
GET /api/v1/events/:eventId/checkinscheckins:read
GET /api/v1/webhook-deliverieswebhooks:read
POST /api/v1/webhook-deliveries/:id/retrywebhooks:write

Rate limits & gouvernance

PlanQuota journalierBurstNote
PlusPas d’API REST — webhooks & intégrations no-code
Pro10 000 req/j60 req/minHeaders X-RateLimit-*
EnterpriseContractuelContractuelSLA 99,9 %

Bonnes pratiques

Idempotency-Keyheaderoptionnel

UUID sur POST check-in, invite batch, refund — évite les doublons

nj_live_ / nj_test_prefixoptionnel

Production vs sandbox Enterprise

Rotationprocessoptionnel

Créer nouvelle clé → migrer → révoquer l’ancienne

X-RateLimit-*headers réponseoptionnel

Limit, Remaining, Reset — 429 si dépassé

Gestion (live)

Les clés se gèrent sous /api/calendars/:slug/api-keys (Bearer owner/admin). L'alias cible /api/v1/api-keys n'est pas encore exposé.

GET
/calendars/:slug/api-keys/scopes

Catalogue des scopes disponibles

GET
/calendars/:slug/api-keys

Lister (id, name, prefix, scopes, lastUsedAt)

POST
/calendars/:slug/api-keys

Créer { name, scopes[] } → plainKey une fois

PATCH
/calendars/:slug/api-keys/:id

Renommer, désactiver (isActive: false)

DELETE
/calendars/:slug/api-keys/:id

Révoquer définitivement

Endpoints /v1 disponibles

Juillet 2026
GET  /api/v1/calendars/:slug              events:read
GET  /api/v1/events/:eventId/guests       guests:read
GET  /api/v1/events/:eventId/export       guests:read
GET  /api/v1/events/:eventId/checkins     checkins:read
GET  /api/v1/events/:eventId/checkins/lookup  checkins:read
POST /api/v1/events/:eventId/checkins     checkins:write
CRUD events, billing API, logs webhooks : voir Roadmap.

Tester l'authentification

curl -X GET "https://api.njanggo.com/api/v1/calendars/mon-collectif" \
  -H "x-njanggo-api-key: $NJANGGO_API_KEY"
401 = clé invalide ou calendrier non Pro. 403 = scope insuffisant.