API-Referenz

Webhooks

Webhook-Endpunkte verwalten, die Echtzeit-Benachrichtigungen empfangen, wenn Authentifizierungsereignisse auftreten.

Webhook-Objekt

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

Webhooks auflisten

Listet alle Webhook-Endpunkte für das aktuelle Projekt auf.

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

Webhook erstellen

Erstellt einen neuen Webhook-Endpunkt.

Anfrage-Body
json
{
  "url": "https:0
  2: ["user.created", "user.banned", "session.ended"],
  "projectId": "proj_abc123"
}
Antwort
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

Webhook löschen

Löscht einen Webhook-Endpunkt.

Antwort
json
{ "success": true }
Authon — Universelle Authentifizierungsplattform