What Is Available for Secured POST Requests with Conditions for Triggering in Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

I am new to this Pipedream , I have simple question

Can I get an Secured Endpoint for POST Request with some json data parsable ? & Based on the Request can I trigger a POST Request to a Predefined destination along with some Json Data ?

Till now I have acheived to Schedule a POST Request with all necessary things .

But I can only Find a Unique Link with GET request only as a Trigger . I need a Secured POST Request as a Trigger with some conditions to Process the Request further .

Is anything like this already available ?

have you tried to use a webhook trigger? it will generate a URL so you can send a request to it with whatever you want… and it will trigger your workflow

Yes, Thanks a lot I found HTTP Body Only & this seems to be working

But the problem is it doesn’t look secure enough, It is not providing any Bearer Token for authentication. Anyone can Trigger the request with the URL

You can use a filter to end the workflow if it doesn’t contain some secret along with it.

Good call

The example is a V1 workflow but can be easily adapted to V2

Here’s an updated v2 example using an environment variable in your account called YOUR_WEBHOOK_API_KEY to verify incoming HTTP requests:

Thanks a lot , It was easy to add the filter , But yes I will definately try with the Environment Variable .

Thanks

Okay both worked nicely, Thanks a lot to all for helping me to achieve the first milestone .

I just want to know if there is any limitations on how many steps I can add to my workflow? Or anyway it will consume more Credits or quota?