APIs & Integrations

Ahmed_Kounasso
Member

Api call error Email

Hi i have a error when i call api for update or created

I don’t understand why this message appears
{“status”:“error”,“message”:“Email·address··is·invalid”,“correlationId”:“59a0aab8-8989-4a34-8176-e93e9ee3ce67”,“requestId”:“361db36eba386acc6f476ce6fd8f0bbd”}

examples of my json
{
“properties”:[
{
“property”:“Salutation”,
“Value”:“Madame”,
“property”:“firstname”,
“Value”:“Ahmed”,
“property”:“lastname”,
“Value”:“Kounasso”,
“property”:“email”,
“Value”:"Ahmedupsert@gmail.com"
}
]
}
regards

0 Upvotes
2 Replies 2
3PETE
HubSpot Employee
HubSpot Employee

Api call error Email

@Ahmed_Kounasso You need to have each property/value set enclosed in their own brackets. Please read our docs linked to below.

Here is an example excerpt
"properties": [ { "property": "email", "value": "test@hubspot.com" }, { "property": "firstname", "value": "Matt" },.........

0 Upvotes
Ahmed_Kounasso
Member

Api call error Email

Hi
issue solved, because my jsons didn’t respect the build json

0 Upvotes