Skip to main content
GET
Get branch sync status

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

branch_id
string
required

ID of the branch, as returned by List branches.

app_id
string
required

ID of the app the branch belongs to.

Response

How the branch stands against main.

How the branch stands against main.

new_main_message_count
integer
required

How many chat messages people sent on main since the branch was created or last updated from main.

Example:

2

main_code_changed
boolean
required

true when main's code changed since the branch was created or last updated from main.

Example:

true

conflict_state
enum<string>
required

Whether updating the branch from main is expected to conflict. clear when main's code hasn't changed, so an update can't conflict. overlap when the update is expected to conflict, or while conflicts from an update are being resolved. unavailable when Base44 can't tell, including while an update runs. Once main's code has changed, it's never clear, even when the update would apply cleanly.

Available options:
clear,
overlap,
unavailable
Example:

"unavailable"

sync_state
enum<string>
required

idle when no update is running. updating while main's changes are being applied, resolving while the AI resolves conflicts, and needs_input when the AI needs an answer to finish resolving them. Answer it in the Base44 editor. Until the state is back to idle, the branch can't be merged or deleted.

Available options:
idle,
updating,
resolving,
needs_input
Example:

"idle"

blocked_reason
enum<string> | null
required

Why Update branch from main would be refused right now: app_processing while the AI is working on main, and branch_processing while it's working on the branch. null when neither applies. An update is also refused while sync_state is resolving or needs_input.

Available options:
app_processing,
branch_processing
Example:

"app_processing"