Hello everyone,
I am trying to create a webhook that triggers everytime a call has been made, using the v4 API.
I have succesfully used the Hubspot CLI to create a project and add the webhook.
The problem is that when I try to add a subscription like this:
“subscriptions”: {
“crmObjects”: [
{
“subscriptionType”: “object.creation”,
“objectType”: “CALL”,
“active”: true
}
]
Then the deployment gives me this error:
" - This app does not have the required scopes to subscribe to `call.creation`. Please update your app scopes to include one of `crm.objects.calls.read, crm.schemas.calls.read` and try again."
If I add any of those, like this: (in app-hsmeta.json)
“requiredScopes”: [
“crm.objects.contacts.read”,
“crm.objects.contacts.write”,
“crm.schemas.calls.read”
]
Then I get the error:
Error: The scope crm.schemas.calls.read could not be recognized. Check your scope and try again.
Can anyone please explain the logic of this? Or how to create a (private) app that fires a message when a call has been made?