Skip to main content
POST
Create workspace (API token)
Create a new workspace under your API token’s company. This delegates to the same internal controller used by the company-side /api/company/create-workspace endpoint, so both entry points always stay in sync.

API Endpoint

POST /api/v1/global/create-workspace Base URL: https://www.tryunleashx.com Authentication: Required (Token header: token or api_access_token)

Request Body

Success Response

Status Code: 200 OK

Response Fields

Access Control

The token resolves to a user and a company; the workspace is always created under that company. Creating a workspace also seeds its default settings, adds the creator (and the company owner, if different) as a workspace admin, seeds the creator’s domain whitelist entry, and triggers the same workspace_created notification email as the company-side endpoint.

Errors

Example cURL

Headers

token
string
required

API token for authentication

Body

application/json
workspace_name
string
required

Name for the new workspace. Must be unique within the token's company.

Response

Workspace created successfully

message
string
Example:

"WORKSPACE_CREATED_SUCCESSFULLY"

data
object