Customise Webhook response

Following on from this I would like to be able to customise the response a webhook returns. The main reason for this is for authorisation as some systems require a certain response to be returned before thy will send data to the address and at the moment I can’t think of a way of making it work.

As specific example Slack will send data to a webhook using its Events API however it requires a handshake so when you first add the Tape Webhook address it will send:

{
    "token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
    "challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P",
    "type": "url_verification"
}

and it expects the challenge to be returned with the 200 response.

You can still send data from Slack into Tape by building a / command app however it is not as nice/useful as an Event one.

There is a number of systems that require specific responses not just Slack.

I would like to bump this particular request and go a step further. Basically, it would be great if we could have another automation type called “API endpoint”. The first of it works exactly like the webhook flow, you get a URL that you can send a payload too. However, this particular automation type would allow you to run a workflow, collect data, and then (identical to Make’s webhook automation), you can return a response, and customize the response body, headers and status code.

This way, we could use this API endpoint type for SYNCHRONOUS tasks while utilizing the existing webhook type for ASYNCHRONOUS tasks.

For our purposes, we could then build an API on top of Tape for our front ends to read from rather than having to fuss around with another backend.

1 Like