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>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "region": "<string>",
      "publicAccess": true,
      "backupsEnabled": true,
      "description": "<string>",
      "parentID": "<string>"
    }
  ]
}

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

Pattern: [a-zA-Z0-9_-~:]+
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