---
title: "Create workspace"
method: POST
path: "/workspaces"
tags: ["Workspaces"]
---

# Create workspace

`POST /workspaces`

## Request

- Base URL: `https://api.salesforge.ai/public/v2`
- URL: `https://api.salesforge.ai/public/v2/workspaces`
- Auth: API key in header `Authorization`

Create a new workspace for the account.

## Request body

- union
  - object
  - ApiCreateWorkspaceRequest
    - `name` string, required

## Response `201`

Created workspace

- ApiWorkspaceResponse
  - `accountId` string
  - `id` string
  - `name` string
  - `slug` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/salesforge/apis/salesforge-api.md) - [All operations](https://skmtc.dev/salesforge/apis/salesforge-api/llms.txt) - [OpenAPI document](https://skmtc.dev/salesforge/apis/salesforge-api/revisions/3f946278b378?raw)
