Référence API

Webhooks

Gérez les points de terminaison webhook qui reçoivent des notifications en temps réel lors d'événements d'authentification.

Objet Webhook

json
{
  "id": "wh_abc123",
  "url": "https:0
  3: ["user.created", "session.created"],
  "status": "active",
  "signingSecret": "whsec_abc123...",
  "createdAt": "2026-01-15T10:30:00Z"
}
GET/v1/dashboard/webhooks

Lister les webhooks

Listez tous les points de terminaison webhook du projet courant.

Réponse
json
{
  "webhooks": [...],
  "total": 2
}
POST/v1/dashboard/webhooks

Créer un webhook

Créez un nouveau point de terminaison webhook.

Corps de la requête
json
{
  "url": "https:0
  2: ["user.created", "user.banned", "session.ended"],
  "projectId": "proj_abc123"
}
Réponse
json
{
  "id": "wh_abc123",
  "url": "https:0
  3: ["user.created", "user.banned", "session.ended"],
  "signingSecret": "whsec_ONLY_SHOWN_ONCE",
  "status": "active"
}
DELETE/v1/dashboard/webhooks/:webhookId

Supprimer un webhook

Supprimez un point de terminaison webhook.

Réponse
json
{ "success": true }
Authon — Plateforme d’authentification universelle