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

A mobile shopping app mockup, with pop-up notifications, on a blue and purple gradient background.

How to Increase Push Notification Opt-In Rates: A 2026 Guide

Learn push notification opt-in best practices for mobile apps, including when to ask for permission, how iOS and Android prompts differ, what to write on a custom prompt, and how to test and measure your results.

Bubble
November 24, 2026 • 11 minute read
An abstract visual of a no-code web app with data flowing through four pipelines, on a blue gradient background.

No-Code Platform Migration: A Complete Guide for 2026

Plan your no-code platform migration step by step, from mapping your data and logic to moving users, reconnecting APIs, testing the new app, and switching over safely.

Bubble
November 24, 2026 • 10 minute read
App Store icon with notification badge over a mobile app screen mockup, cursor hand clicking, illustrating iOS app publishing process.

How to Publish Your App to the App Store in 2026

Ship your iOS app with confidence — this guide walks you through Apple Developer setup, App Store Connect, screenshots, privacy, TestFlight, and review, including 2026 SDK and age‑rating updates.

Bubble
November 24, 2026 • 19 minute read
An abstract visual of hidden, encrypted data across three cards, each with a lock icon and four lines of hidden data.

What Is Field-Level Encryption and When Does Your App Need It?

Learn what field-level encryption protects, how it differs from other security layers, and how to protect sensitive data in a no-code app’s database.

Bubble
November 23, 2026 • 11 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 • 20 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