---
title: "Batch create plan tasks for leads"
method: POST
path: "/v2.0/plan-tasks/create"
tags: ["Sales Agents V2"]
---

# Batch create plan tasks for leads

`POST /v2.0/plan-tasks/create`

Creates AI plan tasks for multiple leads. Each lead must already be in the Sales Agent working pool. Returns succeeded and failed lead IDs. Max 100 leads per request.

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Request body

- BatchCreatePlanTaskRequestV2 — Batch create plan task request
  - `leadIds` integer[], required — Lead IDs to create plan tasks for (max 100)

## Response `200`

Batch operation completed (may include partial failures)

- ApiCommonResponse — Common API response wrapper
  - `code` integer — Response code, 0 means success
  - `message` string — Response message
  - `data` object — Response data payload

## Other responses

- `400` — Invalid parameters (e.g., empty leadIds, more than 100 leads).
- `401` — Missing or invalid authentication token.
- `500` — Internal server error.

---

[API](https://skmtc.net/lofty/apis/lofty-service-open-apis.md) · [All operations](https://skmtc.net/lofty/apis/lofty-service-open-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lofty/lofty-service-open-apis/versions/23e640467118/schema)
