---
title: "Add Task Route"
method: POST
path: "/api/crm/conversations/{conversation_id}/tasks"
tags: ["CRM"]
---

# Add Task Route

`POST /api/crm/conversations/{conversation_id}/tasks`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/crm/conversations/{conversation_id}/tasks`
- Auth: HTTP bearer

## Path parameters

- `conversation_id` string, required

## Headers

- `x-kolens-user-id` string, nullable
- `x-kolens-workspace-id` string, nullable

## Request body

- CreateTaskRequest
  - `title` string, required
  - `due_at` string, date-time, nullable
  - `assignee_user_id` string, nullable
  - `recurring_rule_text` string, nullable
  - `action_kind` 'reminder' | 'send_template' | 'next_action_recompute'
  - `action_payload` object, nullable
  - `next_run_at` string, date-time, nullable

## Response `201`

Successful Response

- TaskOut
  - `id` string, required
  - `conversation_id` string, required
  - `title` string, required
  - `due_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `assignee_user_id` string, nullable
  - `recurring_rule_text` string, nullable
  - `created_at` string, date-time, required
  - `status` 'pending' | 'done' | 'cancelled' | 'failed'
  - `next_run_at` string, date-time, nullable
  - `action_kind` 'reminder' | 'send_template' | 'next_action_recompute'
  - `action_payload` object, nullable
  - `attempt_count` integer
  - `error_message` string, nullable

## Other responses

- `422`: Validation Error

---

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