Initiate multiple leads in a single request
POST /api/v1/leads/bulk/initiate
{ "leadIds": ["string"], // Optional: array of existing lead IDs "leads": [ // Optional: array of new lead objects { "firstName": "string", "lastName": "string", "name": "string", "email": "string", "phone": "string", "projectId": "string", "processId": "string", "referenceId": "string", "metadata": {} } ] }
{ "success": [ { "_id": "string", "firstName": "string" // ... other lead fields } ], "errors": [ { "leadId": "string", // or full lead object for new leads "error": "error message" } ] }
leadIds
leads
curl -X POST "https://crm.uservox.ai/api/v1/leads/bulk/initiate" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "leads": [ { "firstName": "John", "lastName": "Doe", "email": "[email protected]", "projectId": "<Your Project Id>", "processId": "<Lead Process Id>" }, { "firstName": "Jane", "lastName": "Smith", "email": "[email protected]", "projectId": "<Your Project Id>", "processId": "<Lead Process Id>" } ] }'
curl -X POST "https://crm.uservox.ai/api/v1/leads/bulk/initiate" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "leadIds": [ "507f1f77bcf86cd799439013", "507f1f77bcf86cd799439014" ] }'