---
title: "Enable the agent seat"
method: POST
path: "/workspaces/{workspaceId}/agent"
tags: ["Workspaces"]
---

# Enable the agent seat

`POST /workspaces/{workspaceId}/agent`

## Request

- Base URL: `https://tasg.app/api/v1`
- URL: `https://tasg.app/api/v1/workspaces/{workspaceId}/agent`
- Auth: HTTP bearer

Workspace owner only. Creates (or reactivates) the workspace agent: a bot-flagged service account seated as editor in every project of the workspace, including future ones. The embedded assistant's writes are then attributed to the agent (with the delegating human recorded), tasks can be assigned to it, and tokens minted for it through the service-accounts API let an external runner act as the same identity. It never counts against the plan's people limit.

## Path parameters

- `workspaceId` string, uuid, required

## Request body

- object
  - `name` string: Display name. Defaults to "<app name> Agent".

## Response `201`

Enabled.

- object
  - `agent` WorkspaceAgent, required: The workspace agent seat: a bot identity assistant writes are attributed to and tasks can be assigned to.
    - `id` string, uuid, required
    - `name` string, required
    - `avatar_url` string, nullable, required
    - `project_count` integer, required: Projects the agent is seated in.
    - `token_count` integer, required: API tokens minted for the agent.
    - `created_at` string, date-time, required

## Other responses

- `400`: Validation failed: the body or query did not match the schema, or a business rule was violated. `error` says which.
- `401`: Missing, invalid, expired or revoked credentials.
- `403`: Authenticated, but not allowed: not a member, insufficient project role or the API token lacks the required scope.
- `404`: Not found, or not visible to the caller (tenancy is enforced: foreign resources look identical to missing ones).
- `409`: This workspace already has an active agent.
- `429`: Rate limited. Back off and retry after the window in the `RateLimit-*` headers.

---

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