curl --request POST \
--url https://converso-whatsapp-api.p.rapidapi.com/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'instanceCode: <api-key>' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"enabled": true,
"url": "<string>",
"webhookByEvents": true,
"webhookBase64": true,
"events": [
"APPLICATION_STARTUP"
]
}
'{
"webhook": {
"instanceName": "teste-docs",
"webhook": {
"url": "https://example.com",
"events": [
"APPLICATION_STARTUP"
],
"enabled": true
}
}
}Set Webhook for instance
curl --request POST \
--url https://converso-whatsapp-api.p.rapidapi.com/webhook/set/{instance} \
--header 'Content-Type: application/json' \
--header 'instanceCode: <api-key>' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"enabled": true,
"url": "<string>",
"webhookByEvents": true,
"webhookBase64": true,
"events": [
"APPLICATION_STARTUP"
]
}
'{
"webhook": {
"instanceName": "teste-docs",
"webhook": {
"url": "https://example.com",
"events": [
"APPLICATION_STARTUP"
],
"enabled": true
}
}
}Your authorization key header
Your rapid api key
Name of the instance
enable webhook to instance
Webhook URL
Enables Webhook by events
Sends files in base64 when available
Events to be sent to the Webhook
1APPLICATION_STARTUP, QRCODE_UPDATED, MESSAGES_SET, MESSAGES_UPSERT, MESSAGES_UPDATE, MESSAGES_DELETE, SEND_MESSAGE, CONTACTS_SET, CONTACTS_UPSERT, CONTACTS_UPDATE, PRESENCE_UPDATE, CHATS_SET, CHATS_UPSERT, CHATS_UPDATE, CHATS_DELETE, GROUPS_UPSERT, GROUP_UPDATE, GROUP_PARTICIPANTS_UPDATE, CONNECTION_UPDATE, CALL, NEW_JWT_TOKEN, TYPEBOT_START, TYPEBOT_CHANGE_STATUS Created
Show child attributes