Learn how to connect Bubble to an external database with a simple, clear guide that improves performance and expands your app’s capabilities.

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.
The simplest and most reliable way to connect Bubble to an external database is to treat that external database as an API and use Bubble’s API Connector plugin. Bubble cannot connect directly to a SQL database the way backend languages do, so the external database must expose an API endpoint (REST) that Bubble can call to read or write data.
You cannot plug Bubble directly into MySQL/PostgreSQL. Instead, the external system must provide an API layer (for example: Supabase REST API, Xano, Hasura, custom Node/Express API, or any service that exposes HTTPS endpoints). Bubble then uses API Connector to send or receive data through those endpoints.
This example shows how Bubble retrieves rows from an external table via REST.
// GET rows from Supabase table
GET https://your-project.supabase.co/rest/v1/users?select=*
// Headers
apikey: YOUR_PUBLIC_ANON_KEY
Authorization: Bearer YOUR_PUBLIC_ANON_KEY
You paste this into the API Connector exactly as shown: method GET, URL above, and the headers section filled in. After clicking “Initialize call”, Bubble parses the JSON and you can use the response as dynamic data.
To insert data, you use POST instead of GET.
POST https://your-project.supabase.co/rest/v1/users
// Headers
apikey: YOUR_PUBLIC_ANON_KEY
Authorization: Bearer YOUR_PUBLIC_ANON_KEY
Content-Type: application/json
// Body
{
"email": "[email protected]",
"name": "John"
}
You run this call inside a workflow action like “Plugins → Call API…”.
This is the standard and only stable way to connect Bubble to an external database.
Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.
Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!
Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.
Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.
Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.
Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.
Fix broken workflows | Optimize logic | Boost performance | Scale with confidence