Canvas Documentation
Bubble Best Practices
v2
v2
  • Welcome
  • Introduction
  • Contents
  • Using Bubble
    • Bubble basics
    • Bubble best practices
      • Principles
      • Database
      • Design
      • Security
      • SEO
      • Speed
      • Modularity
        • Data triggers
  • Using the template
    • Getting the template
    • Setup
      • Quickstart
      • Features and configuration
        • Customizable landing page
        • Header menu
        • Menu focus group
        • Styles and colors
        • Extending the admin portal
        • Set a password policy
        • Enable cookies
        • Alerts
        • Emails
        • Hidden variables popup
        • Set up index page redirects
        • Set up payments on account page
        • Set up social media links
        • Search engine optimization (SEO)
        • Setting up domains
        • Legal docs
    • Extending the template using Canvas Pages
      • How it works
      • Get started
      • Setting up added modules
      • Updating Canvas styles
    • Extending the template manually
      • Padding
      • Pages, groups, and popups
      • Hiding groups
      • Styles
    • Reference
      • Pages
        • index
        • admin
        • home
        • account
        • verify
        • login and loginsimple
        • termsofservice
        • privacypolicy
        • reset_pw
        • standardpage
        • 404
      • Reusable elements
        • header
        • footer
        • signup/login
        • popupsreusable
        • menufocusgroup_template (︙)
        • menufocusgroup_user
        • menufocusgroupfeature_b
        • menufocusgroup_email
        • menufocusgroup_notifications
        • menufocusgroup_shoppingcart
        • menufocusgroup_search
        • cookiespermission
        • homepageblocks
        • admin portal reusables
          • admindashboard
          • admingeneralsettings
          • adminemail
          • adminseosettings
          • adminsocialmediasettings
          • adminsocialmediainfo
          • adminlegalpages
          • adminhomepagesetup
          • adminstyles
          • adminfeaturebacklog
      • Data and workflows
        • Data structure
        • Option sets
        • API workflows
      • Canvas Pages: lists of modules & page templates
  • Demos
    • Yelp for Books
  • Other Canvas templates
Powered by GitBook
On this page

Was this helpful?

  1. Using the template
  2. Reference
  3. Data and workflows

API workflows

PreviousOption setsNextCanvas Pages: lists of modules & page templates

Last updated 5 years ago

Was this helpful?

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 AirDev's and .

Our template comes with 15 API workflows:

  • push - AirDev can "wrap" your Bubble web application into a native mobile using a service called GoNative. This workflow is used in the app 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 his current device.

  • 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_user_push_tokens - For wrapped Bubble apps, this workflow updates the user's push token.

  • 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.

  • delete_email_verification - This API workflow is used to delete a user's email verification in the database. This workflow is used to delete the email verification 24 hours after its creation (to ensure that the email verification token expires after a day).

  • send_verification_email - This API workflow is used to send an email verification link to the user. Users will need to click on the confirmation link in the email in order to verify their email. This workflow will only fire if the App Owner requires email verification during sign up.

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

send_email - As noted in the , 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. As of April 6, 2020, this must be run with an email that is verified with Sendgrid due to .

create_email_verification_request - This is API workflow is used when the App Owner has turned on email verification during sign up (where website object Email verification required? = yes). This workflow creates an email verification object that includes the User and Email fields. It is used in both the user sign up flow and when a user requests to change his email address from the page.

verify_email - This API workflow is used to verify a user's email and to update a user's email address (if they requested for an email change) on the page. Once a user's email is verified, this workflow will also mark that the user has completed the sign up process.

The API Workflows for are stored elsewhere.

Canvas
account
verify
Bubble Development Guide
Bubble's Manual
updates to the SendGrid API
quickstart guide
Email Templates
Push notification example