Lewati ke konten utama

Webhooks API

Auto-Generated

Halaman ini di-generate otomatis dari OpenAPI spec backend Wavio. Terakhir diperbarui: 2026-11-03


🟢 GET /webhooks​

List Webhook

Contoh cURL​

curl -X GET "https://api.wavio.id/api/v1/public/webhooks" \
-H "X-API-Key: wavio_YOUR_API_KEY" \
-H "Content-Type: application/json"

Response 200​

Success


🔵 POST /webhooks​

Tambah Webhook

Request Body​

FieldTipeWajibDeskripsi
urlstring✅-
eventsstring[]✅-
secretstring❌-

Contoh Request Body​

{
"url": "https://webhook.site/xxx",
"events": [
"messages:received"
]
}

Contoh cURL​

curl -X POST "https://api.wavio.id/api/v1/public/webhooks" \
-H "X-API-Key: wavio_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://webhook.site/xxx",
"events": [
"messages:received"
]
}'

Response 200​

Success


🟡 PUT /webhooks/{id}​

Update Webhook

Parameters​

NamaLokasiTipeWajibDeskripsi
idpathstring✅-

Request Body​

FieldTipeWajibDeskripsi
urlstring❌-
eventsstring[]❌-
secretstring❌-
activeboolean❌-

Contoh Request Body​

{
"active": false
}

Contoh cURL​

curl -X PUT "https://api.wavio.id/api/v1/public/webhooks/{id}" \
-H "X-API-Key: wavio_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"active": false
}'

Response 200​

Success


🔴 DELETE /webhooks/{id}​

Hapus Webhook

Parameters​

NamaLokasiTipeWajibDeskripsi
idpathstring✅-

Contoh cURL​

curl -X DELETE "https://api.wavio.id/api/v1/public/webhooks/{id}" \
-H "X-API-Key: wavio_YOUR_API_KEY" \
-H "Content-Type: application/json"

Response 200​

Success