Cannot Locate Created Contact

Hi,

A partner is attempting to create a contact in hubspot, we are seeing a succesful response, but we’re not able to locate the created contact in the CRM. Removed key and sensitive data for purpose of example, but this is the post request snippet the partner used:

*************************

Posting Request:

URL: https://api.hubspot.com/crm/v3/objects/contacts

Headers:

“Content-Type: application/json”,

“Content-Length: 320”,

“authorization: Bearer pat-na1-1d7498f1-xxxxxxxxxxxx-80244f5a1ef6”

Payload:

{

“campid” : “170”,

“email” : “73249999999414@gmail.com”,

“phone” : “7324000000”,

“firstname” : “Phil”,

“dtc_first_name” : “Phil”,

“lastname” : “Rammairone”,

“dtc_last_name” : “Rammairone”,

“xxtrustedformcerturl” : “https://cert.trustedform.com/ae28b97daba4353256d8ee9fc5028409fa852786”,

“xxjornayatokenxx” : “EEE3284D-5878-827B-CE40-233133BDC110”

}

Response:

{“id”:“36282152”,“properties”:{“createdate”:“2023-08-14T18:29:18.917Z”,“hs_all_contact_vids”:“36282152”,“hs_is_contact”:“true”,“hs_is_unworked”:“true”,“hs_lifecyclestage_lead_date”:“2023-08-14T18:29:18.917Z”,“hs_marketable_status”:“false”,“hs_marketable_until_renewal”:“false”,“hs_object_id”:“36282152”,“hs_object_source”:“INTEGRATION”,

“hs_object_source_id”:“1989837”,“hs_pipeline”:“contacts-lifecycle-pipeline”,“lastmodifieddate”:“2023-08-14T18:29:18.917Z”,“lifecyclestage”:“lead”},“createdAt”:“2023-08-14T18:29:18.917Z”,“updatedAt”:“2023-08-14T18:29:18.917Z”,“archived”:false}

Hey @CTenberg,

The issue is with your payload. It should look like this:

{
 "properties": {
 "campid": "170",
 "email": "73249999999414@gmail.com",
 "phone": "7324000000",
 "firstname": "Phil",
 "dtc_first_name": "Phil",
 "lastname": "Rammairone",
 "dtc_last_name": "Rammairone",
 "xxtrustedformcerturl": "https://cert.trustedform.com/ae28b97daba4353256d8ee9fc5028409fa852786",
 "xxjornayatokenxx": "EEE3284D-5878-827B-CE40-233133BDC110"
 }
}

Notice that I’ve wrapped the key value pairs in a “properties” object. With your current payload it will still create a record but nothing will be populated. If you navigate to this URL below you should at least see a blank contact record: (which is why HubSpot returns a 200 as a contact technically is created)

https://app-na1.hubspot.com/contacts/XXXXXXX/record/0-1/36282152

(make sure to replace XXXXXXX with your portal ID).

I hope this helps!