This step should be completed by the client looking to receive the AMP Actions Webhook
The first step in onboarding to AMP Actions Webhook is for the client to stand up a server that can accept the AMP Actions Webhook requests from Wunderkind.
This server may be implemented in your programming of choice. The only requirements are that it can accept a POST request from Wunderkind with a JSON body matching Wunderkind's schema for a AMP Actions Webhook and that it is served over HTTPS 🔒.
The server should implement one of more authentication or security processes listed here.
Example Boilerplate
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
// Parse request body as JSON
app.use(bodyParser.json())
app.get('/', (req, res) => {
const signalsWebhookBody = req.body;
// TODO validate any headers as required in your implementation
// Translate the received data into data that your downstream ESP expects and send it to the ESP's API
// Refer to your ESP's documentation to
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})The deliverable from this step will be a URL that the client can provide to Wunderkind along with any decisions about authentication for the endpoint.