---
title: "Import Leads"
method: POST
path: "/api/agents/{agent_id}/leads/import"
---

# Import Leads

`POST /api/agents/{agent_id}/leads/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/agents/{agent_id}/leads/import`
- Auth: none declared

## Path parameters

- `agent_id` string, required

## Request body `multipart/form-data`

- BodyImportLeadsApiAgentsAgentIdLeadsImportPost
  - `file` string, binary, required
  - `countryCode` string, required
  - `useCaseId` string, nullable
  - `campaignId` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-07-31** `7c9aff2501f3`: 1 info
  - added the new optional request property `useCaseId`

[Operation history](https://skmtc.dev/outcallerai/apis/outcallerai-api/changes/api/agents/:agent_id/leads/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)
