---
title: "Get plan tasks by lead ID"
method: GET
path: "/v2.0/plan-tasks/lead/{leadId}"
tags: ["Sales Agents V2"]
---

# Get plan tasks by lead ID

`GET /v2.0/plan-tasks/lead/{leadId}`

Retrieves AI tasks associated with a lead. Tasks are returned in V2 format with human-friendly status and type names.

## Path parameters

- `leadId` integer, required

## Headers

- `Authorization` string, required

## Response `200`

Plan tasks retrieved successfully

- PlanTaskResponseV2[]
  - `id` integer — Task ID
  - `content` string — Task content/description
  - `taskType` string — Task type: CALL, EMAIL, TEXT, etc.
  - `status` string — Task status: PENDING, FINISHED, OVERDUE
  - `dueAt` string — Due date in ISO8601 format
  - `createdAt` string — Created time in ISO8601 format
  - `assignedTo` integer — Assigned to user ID
  - `creatorId` integer — Creator user ID

## Other responses

- `400` — Invalid lead ID parameter.
- `401` — Missing or invalid authentication token.
- `403` — Caller does not have access to this lead.
- `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/revisions/23e640467118/schema)
