---
title: "Create Task"
method: POST
path: "/api/admin/tasks"
tags: ["admin-tasks"]
---

# Create Task

`POST /api/admin/tasks`

Create a task from the admin portal (e.g. a manual follow-up task logged
alongside a follow-up entry). Inserts a pending row into the shared `tasks`
table — the existing hourly follow-up cron then surfaces it in Slack on its
due date, and it shows on the Tasks page immediately.

## Request body

- CreateTaskInput
  - `title` string, required
  - `follow_up_date` string, required
  - `lead_id` string, nullable
  - `comments` string, nullable
  - `priority` string, nullable
  - `category` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/riskcube/apis/slack-lead-manager.md) · [All operations](https://skmtc.dev/riskcube/apis/slack-lead-manager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/riskcube/slack-lead-manager/revisions/4442bbae8296/schema)
