POST
/
webhook
/
set
/
{instance}
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
    }
  }
}

Authorizations

apikey
string
header
required

Seu cabeçalho da chave de autorização.

Path Parameters

instance
string
required

ID da instância.

Body

application/json
url
string
required

Webhook URL

events
enum<string>[]
required

Eventos que podem ser enviados ao Webhook

Available options:
QRCODE_UPDATED,
MESSAGES_UPSERT,
MESSAGES_UPDATE,
MESSAGES_DELETE,
SEND_MESSAGE,
CONTACTS_UPSERT,
CONTACTS_UPDATE,
PRESENCE_UPDATE,
CHATS_UPSERT,
CHATS_UPDATE,
CHATS_DELETE,
GROUPS_UPSERT,
GROUP_UPDATE,
GROUP_PARTICIPANTS_UPDATE,
CONNECTION_UPDATE,
LABELS_EDIT,
LABELS_ASSOCIATION,
CALL
webhook_by_events
boolean

Aceitar Webhook por eventos. Acesse os Endpoints aqui: https://docs.wappfy.com.br/pages/webhooks-endpoints

webhook_base64
boolean

Enviar arquivos em base64 quando possivel

Response

201 - application/json
Criado
webhook
object