Single Database

https://{your-workspace-slug}.{region}.xata.sh/dbs/db_name

Given a parameter db_name, this path allows interacting with a specific database on Xata. Below are a number of operations that can be performed on a given database.

Expected parameters

NameDescriptionInRequiredSchema
db_name

The Database Name

path✅string

List Branches

GET
https://{your-workspace-slug}.{region}.xata.sh/dbs/db_name

List all available Branches

Responses

type GetBranchList = {
    databaseName: string;
    branches: Branch[];
};
 
type Branch = {
    name: string;
    createdAt: DateTime;
};
 
/**
 * @format date-time
 */
type DateTime = string;