Saltar al contenido principal
POST
Batch ingest clients into a pipeline

Autorizaciones

Authorization
string
header
requerido

API key created in the dashboard under Settings → API Keys. Send it as Authorization: Bearer pk_....

Parámetros de ruta

input_node_uuid
string
requerido

UUID of the pipeline's API input node. Copy it from the input node's settings in the Salesflow editor, or read it from List API input nodes of a pipeline.

Cuerpo

application/json

Request body for the batch ingest.

clients
SalesflowIngestBatchRowSchema · object[]
requerido

1 to 500 client rows

Required array length: 1 - 500 elements
on_duplicate
enum<string>
predeterminado:update

What to do when a row matches an existing client: update = merge the row into it (default; blank fields never clear values), skip = leave it untouched but still place it on the pipeline, fail = report the row as failed

Opciones disponibles:
update,
skip,
fail
shared_phone_different_document
enum<string>
predeterminado:secondary

A row with the same phone as an existing client (or an earlier row) but a different, real identity document: secondary = another person sharing the phone, created as that contact's secondary contact (default; a real document is never overwritten), update = the same person, the row updates that contact and corrects its document. Rows with the same document, or with no real document on either side (blank, all zeros, or the phone itself), always update. Rows may override it.

Opciones disponibles:
secondary,
update
all_or_none
boolean
predeterminado:false

If true, any failed row rolls back the whole batch (400 INGEST_ROLLED_BACK)

dry_run
boolean
predeterminado:false

Validate and match without writing anything

trigger_automations
boolean
predeterminado:true

Fire the target stage's on-arrival automations for each placed client

stage_id
integer | null

Override the input node's target stage; must belong to the same pipeline

defaults
SalesflowIngestDefaultsSchema · object

Batch-wide values applied wherever a row is silent.

Respuesta

OK

Success response for the batch ingest (rows may still have failed individually unless all_or_none was set).

dry_run
boolean
requerido

True when nothing was written

input_node_uuid
string
requerido

The input node the batch was ingested through

pipeline_id
integer
requerido

Pipeline the clients were placed on

stage_id
integer
requerido

Stage the clients were placed on

summary
SalesflowIngestBatchSummarySchema · object
requerido

Counts over all rows

results
SalesflowIngestBatchRowResultSchema · object[]
requerido

One result per request row, in request order

status
string
predeterminado:success

Response status

Allowed value: "success"