Beranda
XAS Form

Integrasi • 12 Sep 2026 • 6 mnt baca

Webhook: teruskan respons form ke aplikasimu

Sofia Patel

Sofia Patel

12 Sep 2026 • 6 mnt baca

Webhook respons form

Setiap respons baru dikirim sebagai POST JSON ke URL-mu. Cocok untuk sinkronisasi ke CRM, ERP, atau otomasi kustom.

Format webhook

Header X-XAS-Signature berisi HMAC SHA256 untuk verifikasi. Retry otomatis bila endpoint 5xx.

POST /webhook
Content-Type: application/json
X-XAS-Signature: sha256=...

{"form_id":32,"response_id":101,"submitted_at":"2026-09-20T08:00:00Z","values":{"nama_lengkap":"Budi","email":"budi@example.com","pilihan_sesi":"Sesi 1 Pagi"}}

Integrasi tanpa coding

  • • Google Sheets: teruskan ke spreadsheet (butuh Spreadsheet ID & Service Account)
  • • Telegram/Discord/Slack: notifikasi instan ke channel
  • • Webhook kustom: URL aplikasimu sendiri — atur di Automasi

Contoh verifikasi (Node)

const sig = req.headers["x-xas-signature"];
const expected = "sha256=" + crypto.createHmac("sha256", SECRET).update(JSON.stringify(req.body)).digest("hex");
if (sig !== expected) return res.status(401).end();

Contoh verifikasi (PHP)

$sig = $_SERVER["HTTP_X_XAS_SIGNATURE"] ?? "";
$exp = "sha256=" . hash_hmac("sha256", $rawBody, $secret);
if (!hash_equals($exp, $sig)) http_response_code(401);

Tips: gunakan ngrok untuk tes lokal, dan aktifkan retry log di dashboard.

Kesimpulan

Mulai dari satu template, sesuaikan seperlunya, dan biarkan automasi yang mengurus sisanya. Selengkapnya ada di halaman docs.

Share this post

f in

Link disalin

Kembali ke blog