Add Lead using REST APIs
Use Chakra Rest APIs to create leads
Overview
Create leads using REST APIs. Refer to the Chakra API Documentation API Docs
Create Leads
Create a single Lead
Refer to the Create Process API
curl --location --request POST 'https://api.chakrahq.com/v1/ext/procedure/lead/process' \--header 'Authorization: Bearer <token>' \--header 'Content-Type: application/json' \--data-raw '{"data": {"firstname": "Ted","lastname": "Mosby","score": 5},"record": {"data": {"phone_number": "7701214822","email": "ted.mosby@yahoo.com"}},"status": "COMPLETED","state": "CONVERTED","nextActionAt": 1618558867539,"assignedTo": "john@paisapay.com"}'
Create Leads in Bulk
Refer to the Bulk Create Process API
curl --location --request POST 'https://api.chakrahq.com/v1/ext/procedure/lead/process/bulk-create' \--header 'Authorization: Bearer <token>' \--header 'Content-Type: application/json' \--data-raw '[
{
"lead_id": "EXT-TEST-143",
"data": {
"score": "105"
}
},
{
"lead_id": "EXT-TEST-164",
"data": {
"city": "Goa"
},
"state": "IN_PROGRESS"
}]'
Note: Use lead as the procedureShortId mentioned in all of the APIs above.