Xata Branches API

Operations for managing database branches within projects, including creation, configuration, and deletion

GitHub OpenAPI

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /organizations/{organizationID}/projects/{projectID}/branches List a project's branches · List all branches #
Ask an LLM
“Which branches exist in my Xata project?”
“Can I see the status and connection string of every branch?”
Tell an agent
List all branches in project {projectID} of org {organizationID}.
Show every branch of project {projectID} in org {organizationID}.
POST /organizations/{organizationID}/projects/{projectID}/branches Create a branch · Create a new branch #
Ask an LLM
“How do I create a new branch from an existing parent?”
“Can I scale a new branch to zero when idle?”
Tell an agent
Create a branch named {name} in project {projectID} of org {organizationID} in {mode} mode.
Create branch {name} in {mode} mode with description {description}.
GET /organizations/{organizationID}/projects/{projectID}/branches/{branchID} Get details of a branch · Get branch details #
Ask an LLM
“What is the status of a particular branch?”
“How do I get the connection string for a branch?”
Tell an agent
Show details for branch {branchID} in project {projectID}, org {organizationID}.
Get the status and connection string of branch {branchID}.
PATCH /organizations/{organizationID}/projects/{projectID}/branches/{branchID} Update a branch's configuration · Update branch details #
Ask an LLM
“How do I scale replicas or change the instance type of a branch?”
“Can I hibernate a branch or change its storage size?”
Tell an agent
Set the instance type of branch {branchID} in project {projectID} of org {organizationID} to {instanceType}.
Scale branch {branchID} to {replicas} replicas.
DELETE /organizations/{organizationID}/projects/{projectID}/branches/{branchID} Delete a branch · Delete a branch #
Ask an LLM
“How do I permanently delete a branch and its data?”
“Is deleting a branch reversible?”
Tell an agent destructive · confirm first
Delete branch {branchID} from project {projectID} in org {organizationID}.
Permanently remove branch {branchID}.
GET /organizations/{organizationID}/projects/{projectID}/branches/{branchID}/credentials Get a branch's database credentials · Retrieve branch credentials #
Ask an LLM
“Where do I find the database credentials for a branch?”
“Can I fetch branch credentials for a specific username?”
Tell an agent
Get the database credentials for branch {branchID} in project {projectID} of org {organizationID}.
Fetch branch {branchID} credentials for username {username}.
POST /organizations/{organizationID}/projects/{projectID}/branches/{branchID}/credentials/rotate Rotate a branch's database credentials · Rotate branch credentials #
Ask an LLM
“How do I rotate the database user credentials for a branch?”
“Can I rotate credentials for a specific username?”
Tell an agent
Rotate the credentials for username {username} on branch {branchID} in project {projectID} of org {organizationID}.
Rotate branch {branchID} database credentials for {username}.
POST /organizations/{organizationID}/projects/{projectID}/branches/{branchID}/metrics Get time-series metrics for a branch · Retrieve branch metrics #
Ask an LLM
“What does CPU and memory usage look like for a branch over time?”
“Can I get aggregated metrics for specific instances?”
Tell an agent
Get {metrics} for branch {branchID} in project {projectID} of org {organizationID} from {start} to {end} with aggregations {aggregations}.
Show {metrics} for instances {instances} of branch {branchID}.
POST /organizations/{organizationID}/projects/{projectID}/branches/{branchID}/restore Create a branch from a backup · Create a new branch from a backup of another branch #
Ask an LLM
“How do I spin up a new branch from an existing backup?”
“Can I restore a backup into a new branch with its own configuration?”
Tell an agent
Create a backup branch named {name} from branch {branchID} in project {projectID} of org {organizationID}.
Restore backup of branch {branchID} into a new branch {name} with description {description}.
POST /organizations/{organizationID}/projects/{projectID}/branches/{branchID}/logs Read a branch's logs · Retrieve branch logs #
Ask an LLM
“How do I debug a branch by reading its logs?”
“Can I filter a branch's logs by time and type?”
Tell an agent
Show logs for branch {branchID} in project {projectID} of org {organizationID} from {start} to {end}.
Get branch {branchID} logs matching {filters}.
GET /organizations/{organizationID}/projects/{projectID}/branches/{branchID}/postgres-config Get a branch's PostgreSQL configuration · Get PostgreSQL configuration details #
Ask an LLM
“What PostgreSQL configuration parameters are set on a branch?”
“Can I see the current values of branch configuration parameters?”
Tell an agent
Show the PostgreSQL configuration for branch {branchID} in project {projectID} of org {organizationID}.
Get the current values of branch {branchID} configuration parameters.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xata:xata-branches-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xata-branches-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Xata Branches API
  description: Xata API
  version: '1.0'
  contact:
    name: help@xata.io
servers:
- url: https://api.xata.tech
  description: Xata API
tags:


# --- truncated at 32 KB (43 KB total) ---
# Full source: https://artifacts.apis.io/xata/openapi/xata-branches-api-openapi.yml