Get branch sync status
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Returns how far an active branch is behind main, whether updating it from main is expected to conflict, and whether an update is running. Check it before you call Update branch from main, and poll it while an update runs.
An update that has been running for more than 15 minutes with nothing working on the branch counts as stuck. This endpoint rolls a stuck update back and returns the branch to idle, so it can be updated again.
This endpoint is limited to 120 requests per minute.
<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused, and workspace API keys are not accepted.</Note>
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/apps/{app_id}/branches/{branch_id}/sync-status
- Auth: HTTP bearer
Path parameters
ID of the branch, as returned by List branches.
ID of the app the branch belongs to.
Response
How the branch stands against main.
Example response
{
"new_main_message_count": 2,
"main_code_changed": true,
"conflict_state": "unavailable",
"sync_state": "idle",
"blocked_reason": "app_processing"
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
endpoint added
- info