---
title: "Create leads"
method: POST
path: "/api/v1/public/agents/{agent_id}/leads"
tags: ["public"]
---

# Create leads

`POST /api/v1/public/agents/{agent_id}/leads`

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

Create one or more leads and assign them to a voice agent.

## Path parameters

- `agent_id` string, required

## Headers

- `Idempotency-Key` string, nullable

## Request body

- union
  - LeadCreateRequest
    - `name` string, required
    - `email` string, required
    - `phone` string, required
    - `description` string, required
  - LeadCreateRequest[]
    - `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-04** `f7903dc1bdbb`: 1 info
  - added the new optional `header` request parameter `Idempotency-Key`
- **2026-07-31** `7c9aff2501f3`: 4 breaking, 10 warning
  - removed the required property `items/createdAt` from the response with the `200` status
  - removed the required property `items/id` from the response with the `200` status
  - removed the required property `items/name` from the response with the `200` status
  - removed the required property `items/updatedAt` from the response with the `200` status
  - …10 more
- **2026-07-26** `e7248cb2f50b`: 1 breaking
  - the response's body type changed from no type to `array` for status `200`

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