diff --git a/server/endpoints/api/workspace/index.js b/server/endpoints/api/workspace/index.js
index dca21e49f6b2d86ba60024ad1b14561656020b0b..090d5c7afa05147e56928fb918037b62f03317af 100644
--- a/server/endpoints/api/workspace/index.js
+++ b/server/endpoints/api/workspace/index.js
@@ -150,18 +150,20 @@ function apiWorkspaceEndpoints(app) {
           schema: {
             type: 'object',
             example: {
-              workspace: {
-                "id": 79,
-                "name": "My workspace",
-                "slug": "my-workspace-123",
-                "createdAt": "2023-08-17 00:45:03",
-                "openAiTemp": null,
-                "lastUpdatedAt": "2023-08-17 00:45:03",
-                "openAiHistory": 20,
-                "openAiPrompt": null,
-                "documents": [],
-                "threads": []
-              }
+              workspace: [
+                {
+                  "id": 79,
+                  "name": "My workspace",
+                  "slug": "my-workspace-123",
+                  "createdAt": "2023-08-17 00:45:03",
+                  "openAiTemp": null,
+                  "lastUpdatedAt": "2023-08-17 00:45:03",
+                  "openAiHistory": 20,
+                  "openAiPrompt": null,
+                  "documents": [],
+                  "threads": []
+                }
+              ]
             }
           }
         }
diff --git a/server/swagger/openapi.json b/server/swagger/openapi.json
index 1222b78b247e40b791c2d32bc9eca24afc4b8b31..d478e1b2640bc00eca5df2093e9b63390ccc6a5a 100644
--- a/server/swagger/openapi.json
+++ b/server/swagger/openapi.json
@@ -1473,18 +1473,20 @@
                 "schema": {
                   "type": "object",
                   "example": {
-                    "workspace": {
-                      "id": 79,
-                      "name": "My workspace",
-                      "slug": "my-workspace-123",
-                      "createdAt": "2023-08-17 00:45:03",
-                      "openAiTemp": null,
-                      "lastUpdatedAt": "2023-08-17 00:45:03",
-                      "openAiHistory": 20,
-                      "openAiPrompt": null,
-                      "documents": [],
-                      "threads": []
-                    }
+                    "workspace": [
+                      {
+                        "id": 79,
+                        "name": "My workspace",
+                        "slug": "my-workspace-123",
+                        "createdAt": "2023-08-17 00:45:03",
+                        "openAiTemp": null,
+                        "lastUpdatedAt": "2023-08-17 00:45:03",
+                        "openAiHistory": 20,
+                        "openAiPrompt": null,
+                        "documents": [],
+                        "threads": []
+                      }
+                    ]
                   }
                 }
               }