APIs & Integrations

Srinivas3
Member

Unable to add contacts

when I try to Create a contact API
POST/crm/v3/objects/contacts

curl --request POST \
--url 'https://api.hubapi.com/crm/v3/objects/contacts?hapikey=xxxx' \
--header 'content-type: application/json' \
--data '{
"properties": {
"company": "Biglytics",
"email": "bcooper@biglytics.net",
"firstname": "Bryan",
"lastname": "Cooper",
"phone": "(877) 929-0687",
"website": "biglytics.net"
}
}'

response

HTTP 403

{
"status": "error",
"message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
"correlationId": "c01bf069-3e77-4058-b7ce-347a82e224c0",
"errors": [
{
"message": "One or more of the following scopes are required.",
"context": {
"requiredScopes": [
"e-commerce",
"contacts",
"crm.objects.custom.read",
"crm.objects.custom.write",
"tickets"
]
}
}
],
"links": {
"scopes": "https://developers.hubspot.com/scopes"
},
"category": "MISSING_SCOPES"
}

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Unable to add contacts

Hi @Srinivas3 

Are you still having issues with this?  Was the API key that you used from your developer account or from the production portal?

0 Upvotes