Exemplo de body recebido no webhook
{
"event": "DISCONNECTED",// quando é esse tipo de evento virá sempre essa string
"data": {
"connection": "close",
"lastDisconnect": {
"error": {
"data": {
"tag": "stream:error",
"attrs": {
"code": "401"
},
"content": [
{
"tag": "conflict",
"attrs": {
"type": "device_removed"
}
}
]
},
"isBoom": true,
"isServer": false,
"output": {
"statusCode": 401,
"payload": {
"statusCode": 401,
"error": "Unauthorized",
"message": "Stream Errored (conflict)"
},
"headers": {}
}
},
"date": "2023-06-15T17:38:50.266Z"
},
"instanceId": 450
}
}