Webhooks

Daftarkan endpoint webhook baru

Secret ditampilkan HANYA sekali di response ini — simpan segera.

post/api/dev/webhooks

Request

  • Base URL: https://api.tokolaku.id
  • URL: https://api.tokolaku.id/api/dev/webhooks
  • Auth: API key in cookie session

Request body

urlstring required

Harus https, bukan alamat privat/localhost

tenant_idstring nullable

null = semua sub-akun, atau id sub-akun tertentu

eventsstring[]

Response

Webhook berhasil dibuat

idstring required
urlstring required
tenant_idstring nullable required
eventsstring[] required
is_activeboolean required
created_atstring date-time required
secretstring required

whsec_... — HANYA muncul di response create/rotate

Changes

No recorded changes to this operation across all 1 revision of this API.