Skip to content

Seamless Introduction

This page provides a guide on how to use and configure webhooks.

  • Endpoint URL
  • API Key
  • Method: POST
  • Content-Type: text/plain
  • Algorithm: Advanced Encryption Standard (AES)
  • Key Size: 256 bits
  • Mode of Operation: Electronic Codebook (ECB)
  • Padding Scheme: PKCS#7 (also known as PKCS5)
const express = require('express')
const app = express()
const { encrypt, decrypt } = require('./utils');
const PORT = 3000
const API_KEY = ''
app.use(express.text({ type: 'text/plain' }))
app.post('/endpoint_url', (req, res) => {
const plainText = req.body
const decryptedData = decrypt(plainText, API_KEY)
// Process the webhook here...
// Encrypt the raw data...
const encryptedData = encrypt(rawResponse, API_KEY)
// The response status must be HTTP 200 OK
return res.status(200).json(encryptedData)
})
app.listen(PORT, () => {
console.log(`Server running on http://localhost:${PORT}`)
})

Different types of events will be sent to your endpoint when triggered. Refer to the next page for details on each event type.