# Error trying to send lead via api

**URL:** <https://community.hubspot.com/t/error-trying-to-send-lead-via-api/48429>\
**Category:** APIs & Integrations\
**Tags:** crm\
**Created:** [December 13, 2021, 10:00am UTC](https://community.hubspot.com/t/error-trying-to-send-lead-via-api/48429 "2021-12-13T10:00:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOrlov](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MOrlov](https://community.hubspot.com/u/MOrlov)\
**Post date:** [December 13, 2021, 10:00am UTC](https://community.hubspot.com/t/error-trying-to-send-lead-via-api/48429/1 "2021-12-13T10:00:42Z")

</div>

hi guys i tried to send a client via hubspot API but i get this error message

{  
“properties”: [  
{  
“property”: “email”,  
“value”: “[madden@yahoo.com](mailto:madden@yahoo.com)”  
},  
{  
“property”: “firstname”,  
“value”: “Bailey”  
},  
{  
“property”: “lastname”,  
“value”: “Madden”  
},  
{  
“property”: “website”,  
“value”: “soTest”  
},  
{  
“property”: “phone”,  
“value”: “441212345678”  
},  
{  
“property”: “sourceid”,  
“value”: “1”  
},  
{  
“property”: “clickid”,  
“value”: “09f131c6a2dde937b1f43974e4f79c46”  
},  
{  
“property”: “so”,  
“value”: “soTest”  
},  
{  
“property”: “Country”,  
“value”: “United Kingdom”  
},  
{  
“property”: “affid”,  
“value”: “wp”  
}  
]  
}

response:

{  
“validationResults”: [  
{  
“isValid”: false,  
“message”: “Property \“sourceid\” does not exist”,  
“error”: “PROPERTY\_DOESNT\_EXIST”,  
“name”: “sourceid”  
},  
{  
“isValid”: false,  
“message”: “Property \“clickid\” does not exist”,  
“error”: “PROPERTY\_DOESNT\_EXIST”,  
“name”: “clickid”  
},  
{  
“isValid”: false,  
“message”: “Property \“so\” does not exist”,  
“error”: “PROPERTY\_DOESNT\_EXIST”,  
“name”: “so”  
},  
{  
“isValid”: false,  
“message”: “Property \“affid\” does not exist”,  
“error”: “PROPERTY\_DOESNT\_EXIST”,  
“name”: “affid”  
}  
],  
“status”: “error”,  
“message”: “Property values were not valid”,  
“correlationId”: “cb9b80a6-8eb5-4945-8fdb-492063114f28”  
}

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [December 15, 2021, 3:24pm UTC](https://community.hubspot.com/t/error-trying-to-send-lead-via-api/48429/2 "2021-12-15T15:24:09Z")

</div>

Hi @MOrlov

Thank you for reaching out.

I want to tag some of our experts on this - @himanshurauthan @tjoyce @miljkovicmisa do you know what could be the issue here?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [December 17, 2021, 5:13am UTC](https://community.hubspot.com/t/error-trying-to-send-lead-via-api/48429/3 "2021-12-17T05:13:52Z")

</div>

Hi, [@TitiCuisset](https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150) thank you for tagging me in. 🙂

So @MOrlov, the issue is properties, in which you are trying to send values on HubSpot are not present there. First, you have to create them then after you can send values in those properties, you need to create the following properties:

- sourceid
- clicked
- so
- affid

I hope this helps you. 🙂

Best Regards,
