Integrations
Status
Instances
Settings
Webhooks
Send Messages
Chat Management
- POSTCheck if WhatsApp
- PUTMark Message as Read
- PUTMark Chat as Unread
- PUTArchive Chat
- DELDelete Message for Everyone
- POSTSend Presence
- POSTFetch Profile Picture URL
- POSTFind Contacts
- POSTFind Chats
- POSTFind Messages
- POSTFind Status Message
- POSTFetch Base64 from Media Message
- PUTUpdate Message
- PUTUpdate Bot Status
Label Management
Profile Settings
Group Management
- POSTCreate Group
- PUTUpdate Group Picture
- PUTUpdate Group Subject
- PUTUpdate Group Description
- GETFetch Invite Code
- GETAccept Invite Code
- PUTRevoke Invite Code
- POSTSend Invite URL
- GETFind Group By Invite Code
- GETFind Group By JID
- GETFetch All Groups
- GETFind Participants
- PUTUpdate Group Participants
- PUTUpdate Group Settings
- PUTToggle Ephemeral Mode
- DELLeave Group
Webhooks
Set Webhook
Definir Webhook para instância
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
Seu cabeçalho da chave de autorização.
Path Parameters
ID da instância.
Body
application/json
Response
201 - application/json
Criado
The response is of type object
.
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
}
}
}