I have an API endpoint that would trigger a cache clear of my project, but I am looking to include 2 extra headers as well as a payload body specifying what environment / paths need to be cleared. Something like this:
headers: {
'content-type': 'application/json',
'x-api-key': deployToken,
},
body: JSON.stringify({
environment,
paths,
}),
Is there / will there be support for including a payload body and authorization headers for our webhooks?