Receba eventos em tempo real via HTTPS. Validação por HMAC-SHA256. Retries com backoff exponencial (até 5x).
/v1/webhook-configsConfigura um endpoint para receber webhooks. A URL deve usar HTTPS. Um secret é gerado automaticamente.
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| url | string | OBRIGATÓRIO | URL HTTPS do seu endpoint |
| events | array | OBRIGATÓRIO | Eventos: payment.confirmed, ticket.generated, batch.sold_out, * |
{
"url": "https://seusite.com/webhooks/flair",
"events": [
"payment.confirmed",
"ticket.generated",
"batch.sold_out"
]
}{
"data": {
"id": "wh_uuid",
"url": "https://seusite.com/webhooks/flair",
"secret": "whsec_abc123...",
"events": ["payment.confirmed", ...]
}
}/v1/webhooks/dlqLista webhooks que falharam após 5 tentativas.
curl .../webhooks/dlq -H "Authorization: Bearer TOKEN"
{ "data": [{ "webhook_id": "...", "event": "payment.confirmed", "attempts": 5, "last_error": "timeout" }] }/v1/webhooks/dlq/:id/retryReenvia um webhook da DLQ.
curl -X POST .../webhooks/dlq/wh_uuid/retry -H "Authorization: Bearer TOKEN"
{ "data": { "status": "retrying" } }Nossa infraestrutura global processa milhões de requisições simultâneas em horários de pico. Junte-se a +500 promotores usando Flair.
Uptime Garantido