---
title: "Create or start workspaces workspaceID task-groups"
method: POST
path: "/v1/workspaces/{workspaceID}/task-groups"
---

# Create or start workspaces workspaceID task-groups

`POST /v1/workspaces/{workspaceID}/task-groups`

## Request

- Base URL: `https://api.plori.ai`
- URL: `https://api.plori.ai/v1/workspaces/{workspaceID}/task-groups`
- 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.

## Path parameters

- `workspaceID` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `name` string
  - `limit_cache_weighted_tokens` integer, required: A token figure recorded on the group. It does not limit model calls; the account credit balance is the only spend limit.
  - `idempotency_key` string: Required if Idempotency-Key header is absent. Nonempty header takes precedence.

## Response `201`

Request accepted or completed.

- WorkspaceTaskGroup
  - `id` string, uuid, required
  - `workspace_id` string, uuid, required
  - `state` string, required
  - `limit_cache_weighted_tokens` integer, required: The token figure recorded when the group was created. It does not limit model calls.
  - `reserved_cache_weighted_tokens` integer
  - `settled_cache_weighted_tokens` integer
  - `budget_state` string: open while the group accepts model calls; closed after the group is stopped or completed, when it refuses new calls. Token use above limit_cache_weighted_tokens does not close a group, and the former exhausted state no longer occurs.

## Other responses

- `400`: Malformed request.
- `401`: Missing or invalid credential.
- `404`: No such resource.
- `409`: Conflict, active operation, or current-revision mismatch.

---

[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)
