Skip to main content
GET
/
organizations
/
{organizationID}
/
projects
/
{projectID}
/
branches
/
{branchID}
/
githubapp
/
repository
Get GitHub repository for branch
curl --request GET \
  --url https://api.xata.tech/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/githubapp/repository \
  --header 'Authorization: Bearer <token>'
{
  "mapping": {
    "id": "<string>",
    "githubRepositoryID": 123,
    "project": "<string>",
    "rootBranchId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://xata.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organizationID
string
required

Unique identifier of the organization

Pattern: [a-zA-Z0-9_-~:]+
projectID
string
required

Unique identifier of the project

branchID
string
required

Unique identifier of the branch

Response

GitHub repository mapping details

mapping
object
required

Repository mapping details, null if no mapping exists