curl --request POST \
--url https://api.wappfy.com.br/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"url": "<string>",
"webhook_by_events": true,
"webhook_base64": true,
"events": [
"QRCODE_UPDATED"
]
}'
{
"webhook": {
"instance": "nome_da_instancia",
"webhook": {
"url": "https://dominio.com",
"events": [
"MESSAGES_UPSERT",
"MESSAGES_DELETE"
],
"enabled": true
}
}
}
Definir Webhook para instância
curl --request POST \
--url https://api.wappfy.com.br/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"url": "<string>",
"webhook_by_events": true,
"webhook_base64": true,
"events": [
"QRCODE_UPDATED"
]
}'
{
"webhook": {
"instance": "nome_da_instancia",
"webhook": {
"url": "https://dominio.com",
"events": [
"MESSAGES_UPSERT",
"MESSAGES_DELETE"
],
"enabled": true
}
}
}
Seu cabeçalho da chave de autorização.
ID da instância.
Criado
The response is of type object
.