- My goal: an internal admin panel in Retool on top of the data of an app we built on Base44.
- Issue: Base44 doesn't seem to give a database connection string, only its SDK/API, so I can't find a resource type that points at it.
- Steps I've taken to troubleshoot: looked through Base44's settings and docs for a database URL; tried a REST API resource, but auth and pagination get messy fast.
- Additional info: Retool Cloud. We're also considering moving the app off Base44 entirely.
Summary
On Retool Cloud, there's a goal to build an internal admin panel on top of data from an app built on Base44, but Base44 exposes only an SDK/REST API (no database connection string), and the REST API resource approach became messy around authentication and pagination.
AI Response
Since Base44 doesn't publish a direct database connection string, the supported path is to connect via a REST API resource pointed at Base44's API rather than a native database resource. Configure the resource's base URL and authentication once (e.g., a Bearer token or API key in the resource headers) so individual queries stay clean, then handle multi-record endpoints using Retool's query pagination settings or a cursor/offset parameter driven by the previous response. Community members have worked through this exact pattern of connecting an app's own backend data over an API and of setting up REST pagination, and their solved threads walk through practical configurations. If a move off Base44 is on the table, exporting the underlying data into a directly connectable database (including Retool Database or any Postgres/MySQL instance) would let you use a native resource and avoid the API auth/pagination overhead entirely.
Sources
I want Help Understanding How to Connect My App Data with Retool
A solved thread covering how to connect an application's own backend data to Retool via an API when there's no direct database connection string.
Best way to setup this rest api with paging
A solved thread detailing the recommended way to configure a REST API resource with pagination, addressing the messy pagination pain point.
The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a
,
, or
. Or by marking this post as the "Solution"! Let us know if you have any feedback here. ![]()
To connect Retool to Base44 data cleanly, set up a generic REST API resource in Retool Resources instead of writing raw fetch calls in app components.
Two key setup steps that save headaches with pagination and auth:
- Base URL and Headers:
- Base URL:
https://api.base44.io(or your dedicated API domain) - Headers:
Authorization: Bearer {{ current_user.privateMetadata.base44_token || environment.BASE44_API_KEY }}
- Base URL:
- Handling Cursor/Offset Pagination in Table components:
Under the query settings in your Retool app:- Mode:
Pagination -> Limit / OffsetorCursor baseddepending on which endpoint you're hitting. - For cursor pagination, pass
cursor: {{ table1.pagination.nextPageToken }}in URL query parameters, and in the table component's data property set{{ query1.data.items }}withTotal rows: {{ query1.data.total_count }}. - Make sure to check Run query when inputs change so changing table pages fetches the next slice automatically.
- Mode:
Base44 doesn't give you a database connection. A Base44 app's data lives in Base44's own database and is reachable only through the Base44 SDK and API, so there's nothing to point Retool at while the app is on Base44.
Once the app is moved off Base44 that changes. When EscapeBase44 migrates a Base44 app, every Base44 entity becomes a collection in a MongoDB you own (MongoDB Atlas, or a MongoDB container on your own server), with Base44's built-in fields (created_date, updated_date, created_by) kept as they were. Retool's MongoDB resource connects to it like any other database.
Two things worth knowing if you build the panel this way:
- For anything the app's security rules should check, write through the app's backend rather than straight into Mongo. Reads straight from Mongo are fine for an internal panel.
- If the MongoDB runs on your own server it isn't open to the internet, so connect Retool through an SSH tunnel to the server, or put the database on MongoDB Atlas.
Worth separating the two paths. While the app stays on Base44, willsun’s REST resource is really the only clean option: park the API key in the resource’s shared headers rather than passing it per query, and set pagination on the resource so each table page fires a single request. On Daniel’s migration route, note that writing to Mongo directly means Base44’s entity-level access rules no longer apply, so any permission logic has to be rebuilt in Retool or in your own backend. Fine for read-only admin views, less so for edits.