curl --request POST \
--url https://api.example.com/v1/deals/bulk \
--header 'Content-Type: application/json' \
--data '
{
"deals": [
{}
]
}
'{
"data": [
{}
]
}Create multiple deals in a single request (max 50)
curl --request POST \
--url https://api.example.com/v1/deals/bulk \
--header 'Content-Type: application/json' \
--data '
{
"deals": [
{}
]
}
'{
"data": [
{}
]
}name field. All other fields from the Create Deal endpoint are supported.Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
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 }
]
}'
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing deals array, empty array, or missing name on any deal |
| 400 | validation_error | More than 50 deals |
| 403 | insufficient_permissions | Missing deals:write permission |