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 • A quick read
A window in the Bubble editor to import a cURL command. The cursor is hovering over the "Import" button.

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 for free

Build for as long as you want on the Free plan. Only upgrade when you're ready to launch.

Join Bubble

LATEST STORIES

Bubble vs. Lovable Comparison: Which AI App Builder is Right for You?

Bubble vs. Lovable Comparison: Which AI App Builder is Right for You?

Find the right no-code AI app builder for your project with our in-depth comparison of Bubble vs. Lovable, including app output, iteration quality, customization tools, technical experience needed, and more.

Bubble
September 30, 2026 • 22 minute read
Bubble vs. Webflow: Comparing the Top No-Code Platforms

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

Bubble is a full-stack, visual programming tool for building web and mobile apps, while Webflow is built for designing and publishing websites. Here's how to decide which is right for your project.

Bubble
September 30, 2026 • 19 minute read
No-Code AI Agent Builder: What You Can Build on Bubble

No-Code AI Agent Builder: What You Can Build on Bubble

With no-code AI agent builders you can build AI-powered agents that take actions automatically and work across websites, web apps, and mobile apps.

Bubble
September 28, 2026 • 11 minute read
Bubble livestream promo: Demo Day + AMA with Emmanuel Straschnov, September 24, 2026, 11 AM ET, with headshot and Bubble logo

September Demos and AMA: MCP, Conversational Generation, and Launch Lab's Winners

September demos were all about flexibility and control. Emmanuel showed an early look at MCP and a more conversational way to build, then answered community questions and announced Launch Lab's winners.

Emmanuel Straschnov
September 25, 2026 • 9 minute read

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

September 08, 2026 • 13 minute read

The Easiest Way to Build a Custom CRM With AI

September 01, 2026 • 17 minute read

What Is Bubble AI and How Does It Build Apps?

August 19, 2026 • 8 minute read

See How We Redesigned the Property Editor for Better Building

December 11, 2025 • 4 minute read

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

October 11, 2024 • 3 minute read

Build the next big thing with Bubble

Start building for free