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
| Field | Tipe | Wajib | Deskripsi |
|---|---|---|---|
url | string | ✅ | - |
events | string[] | ✅ | - |
secret | string | ❌ | - |
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
| Nama | Lokasi | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id | path | string | ✅ | - |
Request Body
| Field | Tipe | Wajib | Deskripsi |
|---|---|---|---|
url | string | ❌ | - |
events | string[] | ❌ | - |
secret | string | ❌ | - |
active | boolean | ❌ | - |
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
| Nama | Lokasi | Tipe | Wajib | Deskripsi |
|---|---|---|---|---|
id | path | string | ✅ | - |
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