Skip to main content
POST
Link an existing GitHub repository

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Path Parameters

app_id
string
required

ID of the app to connect to a GitHub repository.

Body

application/json

Request to link the app to a repository that already holds its code.

repo_full_name
string
required

Repository to link, as owner/repo. Its base44/config.jsonc project name must equal the app's name.

Required string length: 3 - 200
Pattern: ^[A-Za-z0-9-]+/[A-Za-z0-9._-]+$
Example:

"acme/lead-tracker"

Response

The connection Base44 stored for the app.

Result of linking an app to the repository that already holds its code.

connection_id
string
required

ID of the connection Base44 stored for this app.

Example:

"6890b1c4f2a7e3105d8a4472"

repo_full_name
string
required

Full repository name, as owner/repo.

Example:

"acme/lead-tracker"

repo_url
string
required

URL of the repository on GitHub.

Example:

"https://github.com/acme/lead-tracker"

default_branch
string
required

Branch Base44 syncs with. Always main.

Example:

"main"

last_synced_commit
string
required

Head commit of main the app was linked at.

Example:

"3f5d19c8cfc920e65313a0c5174e7e052d13bb2c"