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
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_name | The Database Name | path | ✅ | string |
List Branches
GEThttps://{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;
type GetBranchList = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
type GetBranchList = {
id?: string;
message: string;
};
type GetBranchList = void;
type GetBranchList = void;