---
title: "Provision a workspace for a client"
description: "Requires a verified user session; the existing operator gate (configured operator emails or a platform admin role) then runs once on that verified identity. No prior workspace selection or membership is required to provision a workspace."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Workspaces

`POST /api/admin/workspaces`

Requires a verified user session; the existing operator gate (configured operator emails or a platform admin role) then runs once on that verified identity. No prior workspace selection or membership is required to provision a workspace.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Request body

_Required._

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/admin/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/admin/workspaces';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/admin/workspaces"

payload = {}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Operation completed

### 201

Workspace provisioned

### 400

Invalid input

### 401

Verified session required

### 403

Current authority denied

### 500

Platform authority or workspace provisioning failed

### 503

Authority verification unavailable


Source: https://developer.channelautomations.com/api/post-api-admin-workspaces/index.md
