Skip to main content
POST
/
webhooks
Registrar Webhook
curl --request POST \
  --url http://localhost:3000/api/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instance_id": "<string>",
  "url": "<string>",
  "name": "<string>"
}
'
instance_id
string
required
ID da instância que o webhook vai monitorar.
url
string
required
URL HTTPS que receberá os eventos via POST.
name
string
Nome descritivo para identificar o webhook.

Resposta

{
  "id": "wh_...",
  "instance_id": "inst_...",
  "url": "https://meuapp.com/webhook",
  "name": "Produção",
  "active": true,
  "created_at": "2026-01-01T00:00:00Z"
}