Leads
Create a lead
Create a new lead.
post/leads
Request
- Base URLhttps://api.surense.com/api/v1
- URLhttps://api.surense.com/api/v1/leads
- AuthOAuth 2Client credentialsToken URL: https://api.surense.com/oauth/token scopes: leads:create
Request body
Example request
{
"agencyId": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "EXT123456",
"templateId": "123e4567-e89b-12d3-a456-426614174000",
"typeId": "123e4567-e89b-12d3-a456-426614174000",
"sourceId": "123e4567-e89b-12d3-a456-426614174000",
"statusId": "123e4567-e89b-12d3-a456-426614174000",
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"assignedUserId": "123e4567-e89b-12d3-a456-426614174000",
"leadDate": "2024-01-15T10:00:00Z",
"dueAt": "2024-01-15T10:00:00Z",
"dueAtTimeSet": true,
"notes": "Important lead information",
"funnel": "Facebook - summer campaign",
"customerId": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"idType": 1,
"idNumber": "123456789",
"idCardIssueDate": "2020-01-15",
"email": "john.doe@example.com",
"phoneNumber1": "+972501234567",
"phoneNumber2": "+972507654321",
"street": "Main Street",
"streetNumber": "123",
"apartmentNumber": "5A",
"mailBox": 1234,
"zipCode": 12345,
"city": "Tel Aviv",
"gender": 1,
"birthDate": "1990-01-15",
"age": 34,
"maritalStatus": 2,
"childCount": 2,
"employerName": "ABC Company",
"monthlyIncome": 15000,
"employmentStatus": 1,
"mailingStatus": 1,
"customFields": [
{
"fieldId": "123e4567-e89b-12d3-a456-426614174000"
}
],
"utmId": "utm123",
"utmSource": "google",
"utmMedium": "cpc",
"utmCampaign": "summer2024",
"utmTerm": "insurance",
"utmContent": "banner"
}Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.