Skip to main content
POST
Import leads

Authorizations

Authorization
string
header
required

A ManyPI API key (mpi_...) from the profile menu → API Access in the dashboard, or an OAuth 2.1 access token obtained through the MCP consent flow.

Body

application/json
rows
object[]
required
Required array length: 1 - 100 elements
duplicates
enum<string>
default:merge

merge fills blanks on the existing lead; overwrite lets incoming values win; skip leaves it untouched.

Available options:
merge,
overwrite,
skip
declare_fields
object[]
Maximum array length: 60
import_id
string<uuid>

Omit on the first chunk; the response carries the id to send with every chunk after it, so all chunks land in one batch.

source
enum<string>
default:api

How the batch arrived, shown on it in the leads grid. First chunk only. extension is the ManyPI Chrome extension.

Available options:
wizard,
paste,
manual,
api,
extension
label
string

The batch name in the leads grid. First chunk only.

Maximum string length: 200
meta
object

Small facts about the batch only the sender knows, for example { "client": "chrome-extension", "version": "0.3.0", "scan": "site" }. First chunk only, at most 4 KB.

Response

Per-row outcome for the chunk.

created
integer
updated
integer
skippedDuplicate
integer
skippedNoIdentity
integer

No email and no domain-plus-name, so there is nothing to file the row under.

skippedOverLimit
integer
skippedOtherWorkspace
integer
failed
object[]
remaining
integer | null

Lead slots left after this batch.

declared
string[]
code
string

lead_limit when the workspace ran out of room, import_limit when the import passed 10,000 rows. The response is still 200.

import_id
string<uuid>

The import these rows were filed under. Use it as import on GET /api/leads, or send it back to add more rows to the same import.

leadIds
string<uuid>[]

The leads created or updated. Not in input order.

rowLeadIds
(string<uuid> | null)[]

One entry per input row, in input order: the lead it became, or null when it was skipped.

skippedConflict
integer
skippedOverImport
integer

Rows past the 10,000-row limit for one import.

importLimit
integer

Present when rows were skipped for the import limit.

leadLimit
integer

Present with code: "lead_limit".