API ReferenceDevices & Pairing
Update device webhook
PATCH
/api/gateway/devices/{device_id}/webhookUpdate device webhook
Headers
Authorizationstringrequired
Bearer format: Bearer <API_KEY>.
X-Device-Idstringoptional
Optional / Session-scoped. Target WhatsApp session ID.
Path Parameters
device_idstringrequired
WhatsApp session ID from GET /devices.
Body Parameters
webhook_urlstringoptional
-
webhook_secretstringoptional
-
webhook_eventsstringoptional
-
webhook_insecure_skip_verifybooleanoptional
-
Returns
Returns standard Wayits response envelope with status: 200 and code: "SUCCESS". The response payload is available inside results.
curl -X PATCH "https://api.yourdomain.com/api/gateway/devices/{device_id}/webhook" \
-H "Authorization: Bearer $WAYITS_API_KEY" \
-H "X-Device-Id: $WAYITS_DEVICE_ID"200 — Example
{
"status": 200,
"code": "SUCCESS",
"message": "Success",
"results": {
"message_id": "01a1c306-90c3-7284-b7a6-1fa5a72df9b1",
"status": "Success"
}
}