---
title: "Create Workforce"
method: POST
path: "/api/workforces"
tags: ["workforces"]
---

# Create Workforce

`POST /api/workforces`

## Request body

- WorkforceCreateRequest
  - `name` string, required
  - `description` string, nullable
  - `manager_agent_id` integer, required
  - `manager_instructions` string, nullable
  - `canvas_layout` object, nullable
  - `workers` WorkforceWorkerInput[]
    - `source_type` string
    - `agent_id` integer, nullable
    - `alias` string, nullable
    - `assignment_instructions` string, required
    - `enabled` boolean
    - `sort_order` integer, nullable
    - `canvas_position` object, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
