---
title: "Create a new worker"
method: POST
path: "/api/workers"
tags: ["Workers"]
---

# Create a new worker

`POST /api/workers`

## Request body

- CreateWorkerRequest
  - `name` string, required — Name of the worker
  - `description` string — Description of the worker

## Response `201`

Worker created

- Workers
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `description` string, nullable
  - `status` string, nullable
  - `lastRefreshedAt` string, date-time, nullable
  - `teamId` string, required
  - `flowsIds` string[]
  - `deploymentsIds` string[]
  - `resourcesIds` string[]
  - `integrationsIds` string[]

## Other responses

- `400` — Invalid request body
- `401` — Unauthorized

---

[API](https://skmtc.net/brainbasehq/apis/brainbase-api.md) · [All operations](https://skmtc.net/brainbasehq/apis/brainbase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brainbasehq/brainbase-api/revisions/ab4ce60666d2/schema)
