nulis.top

POST /api/v1/webhooks/test

Test pengiriman webhook dari studio (session login, bukan API key).

Request

POST /api/v1/webhooks/test
Cookie: session=...
Content-Type: application/json

Body — webhook tersimpan

{
  "webhook_uuid": "uuid-webhook-dari-integrasi"
}

Body — ad-hoc (tanpa simpan)

{
  "url": "https://webhook.site/your-id",
  "secret": "your-hmac-secret"
}

Response

{ "ok": true }

atau { "ok": false, "error": "…" } dengan status 4xx.

Catatan

  • Untuk test dari UI, gunakan tombol Test di halaman Integrasi
  • Payload test: { "test": true, "message": "nulis.top webhook test" }
  • Header signature sama dengan webhook produksi — lihat Webhooks