(async function verifyWebhookSignature() {
const url = 'https://api-stage.agencyhandy.com/api/v1/webhooks/verify-signature';
const postData = {
webhookId: 'your_webhook_id',
signature: 'your_signature',
secret: 'your_webhook_secret',
payload: {
// Your payload object here
}
};
try {
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(postData)
});
const data = await response.json();
console.log('Success:', data);
} catch (error) {
console.error('Error:', error);
}
})();