Walk-Through: Simplify API Call Set-Up With a cURL Command

Learn how to connect OpenAI’s chat completion model to Bubble’s API Connector with the click of a button.

Abhinav Narain
March 19, 2024 • % minute read
Walk-Through: Simplify API Call Set-Up With a cURL Command

Bubble’s API Connector plugin is an essential tool for setting up outgoing RESTful API connections with external apps. In other words, this means you can hook up your Bubble app to external data sources or trigger certain actions based on events.

But sometimes, manually setting up your API connections and calls can be clunky and time-consuming. Good news: Many services provide a call response in cURL format in their documentation that you can copy and paste as a shortcut. In this walk-through, we’ll show you what those look like so you can be on the lookout for it next time you use the API connector. This example demonstrates how to use a cURL command to connect your API Connector with OpenAI and begin building AI into your app.

Follow along with these step-by-step instructions:

  1. Install the API Connector plugin to your Bubble project.
  2. Head to OpenAI’s developer reference on chat completion. You’ll need an OpenAI account and an authorization token for this exercise.
  3. Look in the upper-right of the demo editor to copy the example call response in cURL.
  4. Switch back to your Bubble API Connector tab and click on Import another call from cURL.
  5. Paste your example call and click Import.
  6. Ta-da — you now have the framework for a customizable OpenAI API call!
Start building with a free account

Build your app on Bubble's Free plan. No need to upgrade until you're ready to launch your app.

Join Bubble

LATEST STORIES

blog-thumbnail

27+ SaaS Stats on Market Growth, Usage, Launching a SaaS Startup, and More

SaaS spend and growth is up in 2024, even though growth rates have cooled slightly from previous years. Get the details on why, the state of the SaaS market, and more in this roundup of stats you should know.

Bubble
December 11, 2024 • 11 minute read
blog-thumbnail

Bubble vs. Glide: Comparing the Top No-Code Platforms

Glide is great for a quick, out-of-the-box, no-code solution when you need less customization. However, Bubble offers much stronger customization, community, and versatility. Here’s our comparison of both platforms.

Bubble
December 11, 2024 • 24 minute read
blog-thumbnail

Top 25 Brand and Customer Loyalty Stats for 2025 — What You Need to Know

Customer and brand loyalty are crucial to business success. Learn the top customer loyalty strategies and statistics, what impacts customer retention, and more.

Bubble
December 09, 2024 • 7 minute read
blog-thumbnail

Bubble vs. FlutterFlow: Comparing the Top No-Code Platforms

FlutterFlow is a no-code development platform built on Google’s open source software development kit, Flutter. Bubble’s no-code platform has been used to build and scale nearly 5 million apps over the last 10+ years. Here’s how they compare.

Bubble
December 06, 2024 • 21 minute read

What Can You Build on Bubble? 25 Examples to Inspire You

November 18, 2024 • 19 minute read

The Future of Bubble’s Editor: Introducing the New Workflow Tab

October 11, 2024 • 3 minute read

Efficient App Building 101: Improving Your Workload Usage

July 01, 2024 • 3 minute read

How to Craft Effective Prompts for Bubble’s New AI Page Designer

June 17, 2024 • 4 minute read

Build the next big thing with Bubble

Start building for free