I'll create a webhook that can test the HTTP API request shown in your screenshot. This will be a Next.js application with an API route that can receive webhook events and forward them to your target API.
I've created a Next.js application that provides a webhook endpoint for testing the API request shown in your screenshot. Here's what it does:
/api/webhook
that accepts POST requests 1.x-www-form-urlencoded
format required by your target API.https://customer-beta.mlc.sa/api/store-truck-notification
with the parameters tag
and tag2
as shown in your screenshot./test
where you can manually test the API with different parameters.To deploy this webhook:
https://your-project-name.vercel.app/api/webhook
.You can test it by sending a POST request with JSON body:
{
"tag": "test tag",
"tag2": "test b"
}
https://your-project-name.vercel.app/test
.For a production webhook, you might want to consider:
Please make sure to add the following environment variable to your project: