Connect to Firebase
Learn how to connect your Firebase data to Retool.
You can connect to Firebase and make it available as a resource. Once complete, you can write queries to interact with Firebase APIs.
Requirements
All users for Retool organizations on Free or Team plans have global Edit permissions and can add, edit, and remove resources. If your organization manages user permissions for resources, you must be a member of a group with Edit all permissions.
To create your Firebase resource, you need:
- Your Firebase Service Account Key. You generate this from the Firebase console.
- Your Firebase Database URL. This is only required to query Firebase Realtime Database.
1. Create a Firebase resource
Retool can connect to almost any API or database, and has built-in integrations for popular data sources. Sign in to your Retool organization and create a new Firebase resource from the Resources tab.
2. Configure the resource
Provide the necessary details to configure the resource so Retool can connect to Front. Not all settings are required, but refer to the Firebase documentation to learn what you need.
General
These settings configure the name and location of the resource within Retool.
Name
The name to use for the resource (e.g., Firebase).
Folder
The folder in which to save the resource.
Description
A brief description of the resource (e.g., Customer data).
Credentials
These settings configure how Retool connects to Firebase.
Service account key
See the Firebase documentation to learn how to obtain a service account key.
Firebase database URL
This is only necessary to query the Firebase Realtime Resource. Find the database URL from your Firebase console under Realtime Database.
3. Save the resource
Click Create resource to complete the setup. You can then click either Create an app to immediately start building a Retool app or Back to resources to return to the list of resources.
Wrap up
Your Firebase resource is now ready to use. You write queries to make API requests by specifying the request method and endpoint, additional parameters to include, and the request body. See the guide to querying Firebase to learn how to construct Firebase queries in Retool.