cURL
curl --request POST \ --url https://api.attent.app/v1/leads/create \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "firstName": "John", "lastName": "Doe", "phone": "+15555555555", "customerProfile": "My Customer Profile", "timeZone": "America/New_York", "email": "example@gmail.com", "additionalInfo": { "key1": "value1", "key2": "value2" } }'
{ "message": "Lead created successfully." }
Creates a new lead
Lead to create. Phone number must be unique.
The body is of type object.
object
A lead has been successfully created.
The response is of type object.