Webhooks and Workflow API

@emmanuel,

My app is receiving webhooks and running further actions/workflows based on the data received in the webhook. Does Bubble send the 200 OK code as soon as the webhook is received or after all action steps in the workflow are executed?

After the workflow is executed.

1 Like

Is it possible to create an option to send a 200 code before any workflows begin?

You could probably make it work this way by doing the following:

  1. When you receive the data from the webhook, run 1 workflow and have it pass data to another bubble endpoint.
  2. For the 2nd endpoint, have all of the workflows that you do now.

As such, you send the 200 code almost immediately, and then the workflows run a split second after that.

1 Like

Thank you for this very good suggestion. I believe that requires the ‘Scheduled Workflow’ feature. For my purposes, I need to run these workflows daily, which would bump me up to a costlier monthly plan, not including additional server units. I am not griping about Bubble’s pricing, I’m just trying to be economical with the initial stages of my app.

So, I’m wondering if sending a 200 code immediately is even possible. If so, is it a feature that’s coming soon or is it a feature that needs to be sponsored?

Economical is smart.

I’m pretty sure you can send the data to another endpoint on Bubble without scheduling it for future (i.e., so not using “Schedule Workflow” feature).

@sridharan.s, you are right. Thanks for clearing that up.

1 Like