---
title: "Create or start workspaces"
method: POST
path: "/v1/workspaces"
---

# Create or start workspaces

`POST /v1/workspaces`

## Request

- Base URL: `https://api.plori.ai`
- URL: `https://api.plori.ai/v1/workspaces`
- Auth: HTTP bearer

Candidate Workspace API. Access depends on the owner cohort and, for Files routes, the Files gate. Check operation state and retained data before assuming a write is durable.

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `name` string, required
  - `backend` string
  - `model` string
  - `config` object
  - `default_manager_agent_id` string, uuid

## Response `201`

Request accepted or completed.

- Workspace
  - `id` string, uuid, required
  - `owner_user_id` string, uuid, required
  - `name` string, required
  - `state` 'adopting' | 'active' | 'deleting' | 'deleted', required
  - `legacy_agent_id` string, uuid, nullable
  - `canonical_storage_agent_id` string, uuid, required
  - `default_manager_agent_id` string, uuid, nullable
  - `main_thread_id` string, uuid, nullable
  - `current_revision` string, uuid, nullable
  - `root_working_copy_id` string, uuid, nullable
  - `retention_policy` object
  - `storage_readiness` object
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Malformed request.
- `401`: Missing or invalid credential.
- `404`: No such resource.
- `409`: Conflict, such as the account Workspace limit. Code `idempotency_key_workspace_deleted`: the Workspace created with this Idempotency-Key was deleted; send a new key to create another Workspace.

---

[API](https://skmtc.dev/plori/apis/plori-rest-api.md) · [All operations](https://skmtc.dev/plori/apis/plori-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/plori/apis/plori-rest-api/revisions/15c4f9260dff?raw)
