*️Contoh Webhook

Karena kolomnya itu banyak banget, nanti coba tes langsung aja ya di Webhooknya. Soalnya beda tipe pesan beda data juga wkwk

Jadi Zawa nanti bakal kirim request body ke URL Webhook yang udah disetting contohnya kaya gini

{
  "type": String, // receipt | message,
  "data": String, // string json data
}

Nah kaya gitu sih. Soal token gimana? Itu nanti ada di Header x-token requestnya, jadi supaya tau bahwa request webhook ini tuh dari Zawa. Okeh?

Zawa ngga ada proses apapun ya soal pesan yang diterima, apalagi soal media. Jadi kalau pesan gambar, silahkan decrypt sendiri filenya wkwk


Gitu doang sih, pengen liat contoh aslinya? Bah, ya udah ini nih. Ini buat tipe text ya, kalau tipe lain silahkan coba sendiri hehe...

{
  Type: 'message',
  Data: '{"Info":{"Chat":"62895385278590@s.whatsapp.net","Sender":"62895385278590:74@s.whatsapp.net","IsFromMe":false,"IsGroup":false,"AddressingMode":"","SenderAlt":"174607667597348:74@lid","RecipientAlt":"","BroadcastListOwner":"","ID":"3EB05F22D34BDE64079197","ServerID":0,"Type":"text","PushName":"Azickri","Timestamp":"2025-07-17T13:23:12+07:00","Category":"","Multicast":false,"MediaType":"","Edit":"","MsgBotInfo":{"EditType":"","EditTargetID":"","EditSenderTimestampMS":"0001-01-01T00:00:00Z"},"MsgMetaInfo":{"TargetID":"","TargetSender":"","DeprecatedLIDSession":null,"ThreadMessageID":"","ThreadMessageSenderJID":""},"VerifiedName":null,"DeviceSentMeta":null},"Message":{"conversation":"Halo, ini dari Zawa","messageContextInfo":{"deviceListMetadata":{"senderKeyHash":"QEyZhObWoeQCRg==","senderTimestamp":1752409180,"senderAccountType":0,"receiverAccountType":0,"recipientKeyHash":"z2knWIYaaQ3h2A==","recipientTimestamp":1752647701},"deviceListMetadataVersion":2,"messageSecret":"XnbQMsBun5KYuYUqeVUPCeU6QF4fG8hyoKNwbjETR3U=","limitSharingV2":{"trigger":0,"initiatedByMe":false}}},"IsEphemeral":false,"IsViewOnce":false,"IsViewOnceV2":false,"IsViewOnceV2Extension":false,"IsDocumentWithCaption":false,"IsLottieSticker":false,"IsEdit":false,"SourceWebMsg":null,"UnavailableRequestID":"","RetryCount":0,"NewsletterMeta":null,"RawMessage":{"conversation":"Halo, ini dari Zawa","messageContextInfo":{"deviceListMetadata":{"senderKeyHash":"QEyZhObWoeQCRg==","senderTimestamp":1752409180,"senderAccountType":0,"receiverAccountType":0,"recipientKeyHash":"z2knWIYaaQ3h2A==","recipientTimestamp":1752647701},"deviceListMetadataVersion":2,"messageSecret":"XnbQMsBun5KYuYUqeVUPCeU6QF4fG8hyoKNwbjETR3U=","limitSharingV2":{"trigger":0,"initiatedByMe":false}}}}'
}

Last updated