Contacts API creates empty contact object

Hello
I’ve connected Tray.io to my account with the following scopes:
Crm.objects.contacts.read
Crm.objects.contacts.write
(among others)
I use Postman to trigger the webhook, and I send the following payload:

{

“properties”: {

“email”: “example@hubspot.com”,

“firstname”: “Jane”,

“lastname”: “Doe”,

“phone”: “(555) 555-5555”,

“company”: “HubSpot”,

“website”: “hubspot.com”,

“lifecyclestage”: “marketingqualifiedlead”

}

}

The contact gets created, but all the fields are empty:

What could be the issue here?

Hey @VPeychev what endpoint are you using? Can you see a response body?

Hey @TomM2 ,
I am using Tray.io’s built-in connector for Hubspot.
Here is an example of a request and response (in this case for a ticket, which is also created with empty fields)
request:
{
“ticket_pipeline_id”: “0”,
“ticket_pipeline_stage”: “1”,
“properties”: {
“hs_pipeline”: “0”,
“hs_pipeline_stage”: “1”,
“subject”: “Ticket subject example”,
“content”: “Description of the issue or request”,
“hs_ticket_priority”: “HIGH”,
“hubspot_owner_id”: “12345678”,
“source_type”: “EMAIL”
}
}
response:
{
“id”: “15631755939”,
“properties”: {
“createdate”: “2024-10-22T11:48:45.974Z”,
“hs_helpdesk_sort_timestamp”: “2024-10-22T11:48:45.974Z”,
“hs_last_message_from_visitor”: “false”,
“hs_lastmodifieddate”: “2024-10-22T11:48:45.974Z”,
“hs_object_id”: “15631755939”,
“hs_object_source”: “INTEGRATION”,
“hs_object_source_id”: “4215999”,
“hs_object_source_label”: “INTEGRATION”,
“hs_pipeline”: “0”,
“hs_pipeline_stage”: “1”,
“hs_ticket_id”: “15631755939”
},
“createdAt”: “2024-10-22T11:48:45.974Z”,
“updatedAt”: “2024-10-22T11:48:45.974Z”,
“archived”: false
}

I found the issue, it was the signature of the payload.
The correct formatting is

{

“properties”: [

{

“name”: “subject”,

“value”: “Static Subject for the Ticket”

},

{

“name”: “content”,

“value”: “This is a static description of the issue.”

}

]

}

Apprently the API accepts anything without complaining, but requires this format to populate the fields.