---
title: "Create Task"
method: POST
path: "/companies/{company_id}/tasks"
tags: ["tasks"]
---

# Create Task

`POST /companies/{company_id}/tasks`

## Request

- Base URL: `https://api.nanocorp.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nanocorp.so/companies/{company_id}/tasks`
- Auth: HTTP bearer

Create a new task for a company.

## Path parameters

- `company_id` string, uuid, required

## Request body

- CreateTaskRequest
  - `title` string, required
  - `description` string, nullable
  - `priority` string
  - `runner` string

## Response `201`

Successful Response

- TaskResponse
  - `id` string, required
  - `company_id` string, required
  - `title` string, required
  - `description` string, nullable
  - `status` 'pending' | 'dispatched' | 'in_progress' | 'completed' | 'failed' | 'moderated', required
  - `priority` 'critical' | 'high' | 'normal' | 'low', required
  - `created_by` 'user' | 'ceo_agent' | 'worker_agent' | 'agent' | 'platform', required
  - `runner` string
  - `assigned_to` string, nullable
  - `result_summary` string, nullable
  - `error_message` string, nullable
  - `retry_count` integer, required
  - `max_retries` integer, required
  - `parent_task_id` string, nullable
  - `cycle_id` string, nullable
  - `due_at` string, date-time, nullable
  - `recurrence` string, nullable
  - `effective_status` string, nullable
  - `due_annotation` string, nullable
  - `last_run_at` string, date-time, nullable
  - `last_run_missed` boolean
  - `created_at` string, date-time, required
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-11** `97b262b63810`: 2 info
  - added the optional property `last_run_at` to the response with the `201` status
  - added the optional property `last_run_missed` to the response with the `201` status
- **2026-09-05** `1b57049b8ad5`: 1 warning
  - added the new `platform` enum value to the `created_by` response property for the response status `201`

[Operation history](https://skmtc.dev/nanocorp/apis/nanocorp-api/changes/companies/:company_id/tasks/post.md)

---

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