The Apps API is in beta. Its endpoints and responses may change.
Rebuild main from CI
The main sandbox is the preview that runs the branch the app was imported from, usually your repository’s default branch. When that branch moves, Base44 builds the new commit, checks that its services come up healthy, and then switches the preview to it. The app editor asks for updates while the app is open in it, so a CI pipeline has to ask for them itself. To rebuild main after a merge:- Call Check for main sandbox updates. The request returns before the update runs.
- Poll Get main sandbox update status. The preview serves your merge once the commit in
active_generationis the one you merged. Aphaseofidlealone doesn’t mean the update finished. - If the commit isn’t live after a minute, call check again. A check within a minute of the last time Base44 read your branch does nothing, and reads made while the app is open in the app editor count.
- If
phaseisfailed, the update didn’t finish. Readfailurefor the step that failed and why.
Endpoints
Main sandbox updates
- Check for main sandbox updates: Ask Base44 to update the main sandbox if the imported branch moved.
- Get main sandbox update status: Read where an update is and which commit the preview serves.
Coding sessions
- Launch coding session: Start a coding task on a branch of the imported repository.
- List coding sessions: List the app’s coding sessions, newest first.
- Get coding session: Read a session’s progress and its pull request.
- Get coding session by launch key: Recover a session with the
Idempotency-Keyyou launched it with. - Get latest coding sessions by reference: Read the latest session for each client reference you pass.
- Get a coding session’s open question: Read the question or approval a session is waiting on.
- Send a message to a coding session: Answer a question, approve a request, or send a follow-up.
- Get a message sent to a coding session: Check whether a message was delivered.
- Cancel coding session: Ask a session to stop.