---
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`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/v1/public/files/uploads/{upload_id}/lead-import`
- Auth: none declared. Required headers: `Idempotency-Key`

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

## Changes

- **2026-08-21** `2a1adc380310`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/v1/public/files/uploads/:upload_id/lead-import/post.md)

---

[API](https://skmtc.dev/outcallerai/apis/outcallerai-api.md) - [All operations](https://skmtc.dev/outcallerai/apis/outcallerai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outcallerai/apis/outcallerai-api/revisions/40736cf433b4?raw)
