create lead event
POST
/api/v1/lead_events
const url = 'https://dashboard.dealerstudio.com.au/api/v1/lead_events?leadClusterId=123456&messageDetail=%7B%22contactType%22%3A%22SMS%22%2C%22description%22%3A%22Hello%2C%20my%20name%20is%20.........%22%2C%22sentDate%22%3A%222023-08-18T10%3A39%3A00.000%22%2C%22sentBy%22%3A%22Client%22%7D&service=impel';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://dashboard.dealerstudio.com.au/api/v1/lead_events?leadClusterId=123456&messageDetail=%7B%22contactType%22%3A%22SMS%22%2C%22description%22%3A%22Hello%2C%20my%20name%20is%20.........%22%2C%22sentDate%22%3A%222023-08-18T10%3A39%3A00.000%22%2C%22sentBy%22%3A%22Client%22%7D&service=impel' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”data
object
leadClusterId
required
integer
messageDetail
required
object
contactType
string
description
string
sentDate
string
sentBy
string
service
required
string
Example
{ "leadClusterId": 123456, "messageDetail": { "contactType": "SMS", "description": "Hello, my name is .........", "sentDate": "2023-08-18T10:39:00.000", "sentBy": "Client" }, "service": "impel"}Responses
Section titled “Responses”Successful lead event creation
Wrong apikey for the dealership
Lead Cluster not found