API workflows

Using API workflows can be ideal and/or necessary in the following situations:

  1. When you have long and complex workflows with a lot of actions

  2. When you need to reuse the same workflow from different parts (pages/reusables) of the application

  3. When you need to run a workflow on a list of things, e.i., loop through a list

  4. When you need to schedule a workflow in the future (with the ability to cancel the workflow)

  5. If you want your workflow to run asynchronously. API workflows run on the server side of the application, so any workflow on a standard Bubble page which schedules an API workflow won't need to wait for the entire (API) workflow to finish before moving on to the next step

  6. If you want to create a webhook - or endpoint - into your Bubble application. This allows other applications to send and receive data from your Bubble app

For more information on API workflows, read our Bubble Development Guide and Bubble's Manual.

Our template comes with 6 API workflows:

  • get_canvas_version - When you add [email protected] to your app as a collaborator, this API workflow will run to register your app with Canvas and save its template version ID.

  • push - AirDev can "wrap" your Bubble web application into a native mobile using a service called GoNative. This workflow is used in these applications to facilitate push notifications. This workflow creates a push token for the current user's account and device. It then links the push token to the user. This enables this user to receive push notifications to their current device.

  • send_email - As noted in the emails section, your app will not use Bubble’s native “send email” functionality, but instead use our own sendGrid API workflow that generates a nicely-formatted HTML email from the system. This API workflow is used throughout the app for all email workflows.

  • send_push_notifications - For wrapped Bubble apps, this workflow is used to send push notifications to a given user's device. Schedule this workflow anywhere you want to trigger a push notification.

  • update_ios_badge - For wrapped Bubble apps, we use this workflow to update the user's iOS badge.

  • update_usersnap - When you start a project with AirDev, we'll use this workflow to enable usersnap testing on your app so you can submit feedback in our client management portal.

Last updated