POST request doesn't seem to activate the workflow

Hi, guys,

I’m a bit stuck and don’t really understand why.
I have my endpoint activated in Bubble and use Make. The idea is that Stripe triggers a request to my Make endpoint which makes its way to the HTTP request module. Pretty simple and so far so good.
:point_down:

This request is a POST and the elements are in the body type. I checked the Bubble address and the /initialize works fine. I’ve deleted the /initialize once, well, it’s initialized…
:point_down:

I want to modify the User data (Product / Payment status) but it doesn’t work. I can’t figure out what the problem is, or why my workflow API isn’t firing. I have others, without endpoints, and they work fine, just not this one.
:point_down:

I’ve tried with conditions like Only when email = Current User's email or Do Search for Users / Email = Request Data's email or Querystring options but nothing works and I run out of ideas :frowning:

I’d greatly appreciate your help! :slight_smile:

What logs in make tell you fo the last step?

You mean this part?

Yes… Look at the bottom (output)… 401 unauthorized. You need to send the api key OR set “this workflow can be run without authentication” in Bubble

You must be a wizard or something! I swear I’ve tried ticking the “without authentication” box and it wasn’t working! Seems to work now but maybe I should try with the API key somewhere for more security?!

Thank a lot, once again :slight_smile:

1 Like

This depend what the endpoint do, but using api key could be a good idea

The endpoint triggers the workflow to change the membership of the user so I guess I’d play it safe. Will check how to do that now :slight_smile: Unless having specific conditions when the endpoint receives the POST request could also do the job?

In make, add header. Key is Authorization and value is Bearer yourapikey. Go in Bubble settings/api to create your key

1 Like