Available regions

https://api.xata.io/workspaces/workspace_id/regions

This path allows to access the list of available database regions

Expected Parameters
NameDescriptionInRequiredSchema
workspace_idWorkspace IDpathstring

List Available Regions

GET  https://api.xata.io/workspaces/workspace_id/regions

List regions available to create a database on

Possible Responses
Status CodeDescriptionExample Response/Type Definition
200OK
type ListRegions = {
    /*
     * A list of regions where databases can be created
     */
    regions: Region[];
};

type Region = {
    id: string;
};
400Bad Request
type ListRegions = {
    id?: string;
    message: string;
};
401Authentication Error
{
  "message": "invalid API key"
}
5XXUnexpected Error