cURL
curl --request POST \ --url https://api.notifique.dev/v1/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Meu webhook", "url": "https://api.seudominio.com/receive", "events": [ "message.sent", "message.delivered", "instance.qrcode" ], "instanceIds": [] } '
{ "success": true, "data": { "id": "<string>", "workspaceId": "<string>", "name": "<string>", "url": "<string>", "secret": "<string>", "events": [ "<string>" ], "instanceIds": [ "<string>" ], "enabled": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Cria um novo webhook. A url é validada (formato e acessibilidade). Limite do plano: 403 com PLAN_LIMIT_WEBHOOKS se excedido. Escopo: webhooks:manage.
PLAN_LIMIT_WEBHOOKS
webhooks:manage
Authorization: Bearer sk_live_xxxxx
1024
2048
1
64
Webhook criado; inclui secret (use para validar assinatura HMAC).
true
Show child attributes
Was this page helpful?