Skip to main content
GET
/
organizations
/
{organizationID}
/
projects
/
{projectID}
/
branches
List all branches
curl --request GET \
  --url https://api.xata.tech/organizations/{organizationID}/projects/{projectID}/branches \
  --header 'Authorization: Bearer <token>'
{
  "branches": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "parentID": "<string>",
      "region": "<string>",
      "publicAccess": true,
      "backupsEnabled": true
    }
  ]
}

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 containing the project

projectID
string
required

Unique identifier of the project to list branches from

Response

List of branches within the project

branches
object[]
required

Array of branch objects with their metadata