# pydo.genai.create\_workspace() Generated on 16 Mar 2026 from `pydo` version [`v0.28.0`](https://github.com/digitalocean/pydo/releases/tag/v0.28.0) ## Description To create a new workspace, send a POST request to `/v2/gen-ai/workspaces`. The response body contains a JSON object with the newly created workspace object. ## More Information See [the API spec for this endpoint](https://docs.digitalocean.com/reference/api/digitalocean/index.html.md#operation/genai_create_workspace) to view additional detail on responses, headers, parameters, and more.