curl --request POST \
--url https://uk.api.aiosmedical.com/external/v1/leads \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"data": {
"surname": "Doe",
"forename": "John",
"phone": "+44 7700 900123",
"gender": "Male",
"ethnicity": "White British",
"dateOfBirth": "1990-01-01",
"billingAddress": {
"addressLine1": "123 High Street",
"addressLine2": "Flat 2B",
"city": "London",
"state": "England",
"region": "Greater London",
"zipCode": "SW1A 1AA"
},
"shippingAddress": {
"addressLine1": "123 High Street",
"addressLine2": "Flat 2B",
"city": "London",
"state": "England",
"region": "Greater London",
"zipCode": "SW1A 1AA"
},
"height": {
"unit": "metric",
"feet": "5",
"inches": "10",
"cm": "178"
},
"weight": {
"unit": "metric",
"kg": "75",
"stones": "11",
"pounds": "165"
},
"goalWeight": {
"unit": "metric",
"kg": "75",
"stones": "11",
"pounds": "165"
},
"prescriptionMedication": [
{
"medication": "Metformin",
"reason": "Type 2 Diabetes"
}
],
"surgeries": [
{
"value": "Appendectomy",
"intervalTime": "2 years ago",
"details": "Laparoscopic appendectomy, no complications"
}
],
"weightLossInjections": {
"drugName": "Ozempic",
"strength": "1mg",
"weightPriorToTreatment": "85kg"
},
"allergicReactionToWeightLossInjections": {
"description": "Nausea and dizziness after injection"
},
"medicalConditions": [
{
"condition": "Diabetes",
"desc": "Type 2 diabetes diagnosed in 2020",
"kidneyDiseaseType": "Chronic kidney disease stage 3"
}
],
"healthConditions": [
{
"condition": "Diabetes",
"desc": "Type 2 diabetes diagnosed in 2020",
"kidneyDiseaseType": "Chronic kidney disease stage 3"
}
],
"familyHistoryOfMedicalConditions": {
"value": "Heart disease",
"relation": "Father"
},
"allergyToMedicationOrSupplement": "Penicillin"
}
}
'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "[email protected]",
"data": {
"name": "John Doe",
"email": "[email protected]",
"phone": "1234567890",
"address": "123 Main St, Anytown, USA"
},
"createdAt": "2025-06-04T12:00:00.000Z"
}Creates a new lead
curl --request POST \
--url https://uk.api.aiosmedical.com/external/v1/leads \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"data": {
"surname": "Doe",
"forename": "John",
"phone": "+44 7700 900123",
"gender": "Male",
"ethnicity": "White British",
"dateOfBirth": "1990-01-01",
"billingAddress": {
"addressLine1": "123 High Street",
"addressLine2": "Flat 2B",
"city": "London",
"state": "England",
"region": "Greater London",
"zipCode": "SW1A 1AA"
},
"shippingAddress": {
"addressLine1": "123 High Street",
"addressLine2": "Flat 2B",
"city": "London",
"state": "England",
"region": "Greater London",
"zipCode": "SW1A 1AA"
},
"height": {
"unit": "metric",
"feet": "5",
"inches": "10",
"cm": "178"
},
"weight": {
"unit": "metric",
"kg": "75",
"stones": "11",
"pounds": "165"
},
"goalWeight": {
"unit": "metric",
"kg": "75",
"stones": "11",
"pounds": "165"
},
"prescriptionMedication": [
{
"medication": "Metformin",
"reason": "Type 2 Diabetes"
}
],
"surgeries": [
{
"value": "Appendectomy",
"intervalTime": "2 years ago",
"details": "Laparoscopic appendectomy, no complications"
}
],
"weightLossInjections": {
"drugName": "Ozempic",
"strength": "1mg",
"weightPriorToTreatment": "85kg"
},
"allergicReactionToWeightLossInjections": {
"description": "Nausea and dizziness after injection"
},
"medicalConditions": [
{
"condition": "Diabetes",
"desc": "Type 2 diabetes diagnosed in 2020",
"kidneyDiseaseType": "Chronic kidney disease stage 3"
}
],
"healthConditions": [
{
"condition": "Diabetes",
"desc": "Type 2 diabetes diagnosed in 2020",
"kidneyDiseaseType": "Chronic kidney disease stage 3"
}
],
"familyHistoryOfMedicalConditions": {
"value": "Heart disease",
"relation": "Father"
},
"allergyToMedicationOrSupplement": "Penicillin"
}
}
'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "[email protected]",
"data": {
"name": "John Doe",
"email": "[email protected]",
"phone": "1234567890",
"address": "123 Main St, Anytown, USA"
},
"createdAt": "2025-06-04T12:00:00.000Z"
}Show child attributes
"Doe"
"John"
"+44 7700 900123"
"Male"
"White British"
"1990-01-01"
Show child attributes
"123 High Street"
"Flat 2B"
"London"
"England"
"Greater London"
"SW1A 1AA"
Show child attributes
"123 High Street"
"Flat 2B"
"London"
"England"
"Greater London"
"SW1A 1AA"
"Penicillin"
Lead created successfully
"123e4567-e89b-12d3-a456-426614174000"
{
"name": "John Doe",
"email": "[email protected]",
"phone": "1234567890",
"address": "123 Main St, Anytown, USA"
}"2025-06-04T12:00:00.000Z"