Criar webhook
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",
"sms.sent"
],
"instanceIds": [],
"enabled": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Meu webhook',
url: 'https://api.seudominio.com/receive',
events: ['message.sent', 'message.delivered', 'sms.sent'],
instanceIds: [],
enabled: true
})
};
fetch('https://api.notifique.dev/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/webhooks"
payload = {
"name": "Meu webhook",
"url": "https://api.seudominio.com/receive",
"events": ["message.sent", "message.delivered", "sms.sent"],
"instanceIds": [],
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/webhooks"
payload := strings.NewReader("{\n \"name\": \"Meu webhook\",\n \"url\": \"https://api.seudominio.com/receive\",\n \"events\": [\n \"message.sent\",\n \"message.delivered\",\n \"sms.sent\"\n ],\n \"instanceIds\": [],\n \"enabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": "clwh_01HNEW...",
"name": "Meu webhook",
"url": "https://api.seudominio.com/receive",
"events": [
"message.sent",
"message.delivered",
"sms.sent"
],
"instanceIds": [],
"enabled": true,
"secret": "whsec_shown_once_abc123...",
"createdAt": "2026-08-14T20:00:00.000Z"
}
}Webhooks
Criar webhook
Cadastra uma URL HTTPS que recebe POST JSON quando eventos ocorrem. Guarde o secret da resposta para validar X-Notifique-Signature. A URL passa por verificação POST (2xx, 401 ou 403 aceitos).
POST
/
v1
/
webhooks
Criar webhook
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",
"sms.sent"
],
"instanceIds": [],
"enabled": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Meu webhook',
url: 'https://api.seudominio.com/receive',
events: ['message.sent', 'message.delivered', 'sms.sent'],
instanceIds: [],
enabled: true
})
};
fetch('https://api.notifique.dev/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/webhooks"
payload = {
"name": "Meu webhook",
"url": "https://api.seudominio.com/receive",
"events": ["message.sent", "message.delivered", "sms.sent"],
"instanceIds": [],
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/webhooks"
payload := strings.NewReader("{\n \"name\": \"Meu webhook\",\n \"url\": \"https://api.seudominio.com/receive\",\n \"events\": [\n \"message.sent\",\n \"message.delivered\",\n \"sms.sent\"\n ],\n \"instanceIds\": [],\n \"enabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"id": "clwh_01HNEW...",
"name": "Meu webhook",
"url": "https://api.seudominio.com/receive",
"events": [
"message.sent",
"message.delivered",
"sms.sent"
],
"instanceIds": [],
"enabled": true,
"secret": "whsec_shown_once_abc123...",
"createdAt": "2026-08-14T20:00:00.000Z"
}
}Autorizações
ntfWhBearerAuthntfWhApiKeyHeader
API key sk_live_... ou sk_test_....
Corpo
application/json
Nome interno no painel.
URL HTTPS que recebe POST JSON.
Nomes de evento (ex.: message.sent).
Filtra por instâncias; vazio = todas.
Filtra por domínios de e-mail; vazio = todos.
Filtra por apps push; vazio = todos.
Esta página foi útil?

