Skip to main content
POST
/
v1
/
deals
/
bulk
Bulk Create Deals
curl --request POST \
  --url https://api.example.com/v1/deals/bulk \
  --header 'Content-Type: application/json' \
  --data '
{
  "deals": [
    {}
  ]
}
'
{
  "data": [
    {}
  ]
}

Request

Body Parameters

deals
array
required
Array of deal objects (max 50). Each deal requires a name field. All other fields from the Create Deal endpoint are supported.

Headers

Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json

Response

data
array
Array of created deal objects with all fields
curl -X POST https://data.leadlex.com/functions/v1/api-gateway/v1/deals/bulk \
  -H "Authorization: Bearer wbk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "deals": [
      { "name": "Deal A", "stage": "Lead", "pipeline": "Sales" },
      { "name": "Deal B", "stage": "Proposal", "estimated_value": 10000 }
    ]
  }'

Errors

StatusCodeDescription
400validation_errorMissing deals array, empty array, or missing name on any deal
400validation_errorMore than 50 deals
403insufficient_permissionsMissing deals:write permission