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

Response

201 - application/json

Criado

The response is of type object.