---
title: "POST /to-do/generate-subtasks"
method: POST
path: "/to-do/generate-subtasks"
tags: ["to-do"]
---

# POST /to-do/generate-subtasks

`POST /to-do/generate-subtasks`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/to-do/generate-subtasks`
- Auth: HTTP bearer

## Request body

- GenerateSubtasksDto
  - `task` string, required
  - `language` string, required
  - `existing_subtasks` SubtaskDto[]
    - `id` string
    - `name` string, required
    - `is_completed` boolean, required
    - `trello_check_item_id` string

## Response `201`

- SubtasksDto
  - `task` string, required
  - `subtasks` object[], required
    - `name` string, required
    - `is_completed` boolean, required
    - `estimated_minutes` number

---

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