Best way to webhook data in to n8n.io

Hi All, I am really happy with knack and currently use integromat to parse data into other software I use: for example Mautic.

I also like using n8n.io but there is not yet a trigger node to collect data from knack.

I have this code to achieve this but I wanted to check with the community that it is the best solutions.

What do you think please?

// Change view_1 to the form view you want to listen to
$(document).on('knack-form-submit.view_1', async function(event, view, data) {


await $.ajax(
{
url:"https://yourwebhook-end-point",
type:'POST',
data: {json: JSON.stringify(data)},
dataType: 'json'

}
)

});