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 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 building

LATEST STORIES

An abstract mockup of an app prototype, with sections for reminders, notifications, profile, and payments.

Do Mobile App Prototypes Still Matter in 2026? Here's What We Found

Prototypes are essential for mobile apps — but creating an effective prototype isn’t always easy. Here’s a step-by-step guide to making mobile apps that help you build a successful product.

Bubble
November 23, 2026 • 17 minute read
An abstract visual of a mobile drag and drop app builder and a mouse icon over a blank media card.

What Is an AI Drag and Drop App Builder?

Learn how an AI drag and drop app builder combines AI generation with direct visual control, so you can go from idea to a real production app without code.

Bubble
November 23, 2026 • 16 minute read
A Bubble AI chat window open with a mobile app mockup next to it with several placeholder cards and icons.

The Beginner's Guide to AI + Bubble

Everything you need to know about Bubble’s AI app builder — from how it works to how to get started for free.

Bubble
November 23, 2026 • 16 minute read
Abstract visual of a mobile app with three cards and navigation, and a zoomed-in view of a desktop website with several cards.

The 10 Best Mobile Website Builders in 2026 for Every Goal

Compare the top mobile website builders — from design-first tools to e-commerce platforms — and find the one that fits your goal without requiring a rebuild later.

Bubble
November 20, 2026 • 18 minute read

Root Cause Analysis (RCA): October 2026 Security Incident

November 20, 2026 • 5 minute read

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

September 08, 2026 • 14 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 • 12 minute read

See How We Redesigned the Property Editor for Better Building

December 11, 2025 • 4 minute read

Build the next big thing with Bubble

Start building for free