Referência da API
Webhooks
Gerencie endpoints de webhook que recebem notificações em tempo real quando eventos de autenticação ocorrem.
Objeto 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/webhooksListar Webhooks
Liste todos os endpoints de webhook do projeto atual.
Resposta
json
{
"webhooks": [...],
"total": 2
}POST
/v1/dashboard/webhooksCriar Webhook
Crie um novo endpoint de webhook.
Corpo da Requisição
json
{
"url": "https:0
2: ["user.created", "user.banned", "session.ended"],
"projectId": "proj_abc123"
}Resposta
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/:webhookIdExcluir Webhook
Exclua um endpoint de webhook.
Resposta
json
{ "success": true }