Workspaces
https://api.xata.io/workspaces
This endpoint enables interacting with specific workspaces within Xata. For more information about workspaces, see the docs.
Get List of Workspaces
GEThttps://api.xata.io/workspaces
Retrieve the list of workspaces the user belongs to
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |
Create a New Workspace
POSThttps://api.xata.io/workspaces
Creates a new workspace with the user requesting it as its single owner.
Request Body Type Definition
1 2 3 4 5 6
type CreateWorkspace = WorkspaceMeta; type WorkspaceMeta = { name: string; slug?: string; };
Status Code | Description | Example Response/Type Definition |
---|---|---|
201 | Created |
|
400 | Bad Request |
|
401 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |