Dear Community Members,
My usecase is to create a contact by using the POST /crm/v3/objects/contacts API
Addendum : We have a website and have a Newsletter Subscription section in our website. So i would like to employee POST /crm/v3/objects/contacts API to be invoked whenever a user enters his/her email Id in our form present in the Website.
So far i have an hapikey
Performed a test call using the following
POST https://api.hubapi.com/crm/v3/objects/contacts?hapikey={{hapikey}}
{
“properties”: [
{
"property": "firstname",
"value": "Alice"
},
{
"property": "lastname",
"value": "Test"
},
{
"property": "email",
"value": "alice-test@hubspot.com"
}
]
}
Resposne that i am getting is as follows
{
"status": "error",
"message": "Invalid input JSON on line 2, column 17: Cannot deserialize instance of \`java.util.LinkedHashMap\` out of START\_ARRAY token",
"correlationId": "cdd965ea-51ca-4c4a-b9e6-5c598e72b564"
}
Could someone assist me by letting me know , what am i doing wrong here ?
Thanks
Titus


