createLead
Lead erstellen (strict)
Strict-Schema. Für tolerante Marketing-Webhooks → intakeLead oder processIntake nutzen.
HTTP Request
POST
https://dev.vitabyte.ch/v1/sales/createLead
Auth
basicAuth
apiKey
Request Parameters
| Parameter | Pflicht | Typ | Beispiel / Default |
|---|---|---|---|
firstname
|
optional | string | |
lastname
|
optional | string | |
mail
|
optional | string | |
phone
|
optional | string | |
mobile
|
optional | string | |
dob
|
optional | string | |
gender
|
optional |
string enum: w | m | d
|
|
source
|
optional | string | |
folderId
|
optional | integer | |
assignee
|
optional | integer | |
what
|
optional | string | |
nextStep
|
optional | string | |
address
{street, zip, city, country, countryCode} |
optional | object | |
insurance
{kvg, kvgPoliceNr, vvg, payerType} |
optional | object |
Response Parameters
Demo
POST
https://dev.vitabyte.ch/v1/sales/createLead
Payload
{
"firstname": "Anna",
"lastname": "Beispiel",
"mail": "anna.beispiel@example.ch",
"mobile": "+41 79 123 45 67",
"dob": "1985-04-12",
"gender": "w",
"source": "Webformular",
"folderId": 3,
"what": "Erstanmeldung Psychotherapie",
"address": {
"street": "Bahnhofstrasse 1",
"zip": "8001",
"city": "Zürich",
"countryCode": "CH"
},
"insurance": {
"kvg": "CSS Versicherung",
"payerType": "insurance"
}
}
Response