---
title: "Execute lead import"
method: POST
path: "/api/v1/public/files/uploads/{upload_id}/lead-import"
tags: ["public"]
---

# Execute lead import

`POST /api/v1/public/files/uploads/{upload_id}/lead-import`

Create the accepted rows from a previously previewed CSV or XLSX upload after the caller confirms the mapping.

## Path parameters

- `upload_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- LeadImportExecuteRequest
  - `agentId` string, required
  - `useCaseId` string, nullable
  - `items` LeadCreateRequest[], required
    - `name` string, required
    - `email` string, required
    - `phone` string, required
    - `description` string, required

## Response `200`

Successful Response

- LeadResponse[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.net/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/2a1adc380310/schema)
