curl --request POST \
--url https://api.example.com/v1/contacts/bulk \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"full_name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"company": "<string>",
"linkedin_url": "<string>",
"tags": [
{}
],
"custom_fields": {}
}
]
}
'{
"data": {
"created": 123,
"contacts": [
{}
]
}
}Create multiple contacts in a single request (max 500)
curl --request POST \
--url https://api.example.com/v1/contacts/bulk \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"full_name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"company": "<string>",
"linkedin_url": "<string>",
"tags": [
{}
],
"custom_fields": {}
}
]
}
'{
"data": {
"created": 123,
"contacts": [
{}
]
}
}Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
curl -X POST https://data.leadlex.com/functions/v1/api-gateway/v1/contacts/bulk \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"contacts": [
{ "full_name": "Jane Doe", "email": "jane@example.com", "job_title": "CEO" },
{ "full_name": "John Smith", "email": "john@example.com", "company": "Acme Inc" }
]
}'
{
"data": {
"created": 2,
"contacts": [
{ "id": "abc-123", "full_name": "Jane Doe", "email": "jane@example.com" },
{ "id": "def-456", "full_name": "John Smith", "email": "john@example.com" }
]
}
}
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing or invalid contacts array |
| 400 | validation_error | More than 500 contacts |
| 403 | insufficient_permissions | Missing contacts:write permission |
| 429 | rate_limited | Rate limit exceeded |