Lead
Create a new lead
Creates a new lead. Either contactableByEmail or contactableByMobile need to be provided.
post/api/business/{businessId}/branch/{branchId}/leads
Path parameters
businessIdstring required
branchIdstring required
Request body
Example request
{
"businessId": "Xf7saoBpuqy2t0RRIkBpXg",
"branchId": "hPfzdyamWjxp9GzYVUETRg",
"firstName": "John",
"lastName": "Doe",
"mobile": "123456789",
"email": "john.doe@example.com",
"source": "website signup",
"contactableByEmail": true,
"contactableByMobile": true,
"marketingOptIn": true,
"metaAdId": "123",
"note": "Some note up to 255 characters"
}Response
Lead created successfully
Example response
{
"success": true,
"message": "Lead created successfully"
}