Skip to main content
POST
Import a GitHub branch

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app to import the branch into.

Body

application/json

Request to import a branch that already exists in the connected repo.

branch_name
string
required

Name of the branch to import, as it exists in the connected repository. Can't be the repository's default branch.

Required string length: 1 - 255
Example:

"feature/reporting"

Response

The imported branch.

The Base44 branch created from an existing GitHub branch.

id
string
required

ID of the new Base44 branch.

Example:

"68b1c0d4e7b91d003c45a1f7"

branch_name
string
required

The GitHub branch name, stored exactly as you sent it. Base44's own commits go to this same branch.

Example:

"feature/reporting"

conversation_id
string
required

ID of the branch's own builder conversation. The branch's chat history is separate from the app's main chat.

Example:

"68b1c0d4e7b91d003c45a1f8"

base_git_commit_hash
string
required

Commit where the branch forked off the repository's default branch.

Example:

"9f2c1ab7d4e58036bb1f4c0a7de92b41c0d5e8a3"

last_git_commit_hash
string
required

Head commit of the GitHub branch at the moment it was imported.

Example:

"4c7e1f90ab3d5628e1a0f7b24c9d8e6350a1b2c4"

created_date
string
required

When the branch was created, in ISO 8601 with a UTC offset.

Example:

"2026-08-15T09:10:00.123456+00:00"