How to implement webhooks on an existing application
Apr 30, 2018 2:55 AM
I have an existing application that we use for company, contact, and engagement api access and it is working beautifully.
I am trying to add webhook functionality and having some difficulty. The accounts we are using are all Marketing Enterprise accounts and should have sufficient permission.
From the documentation, I cannot figure out what additional scopes I need to use. I authenticate with Oauth2 and complete the handshake correctly. I can then use all the necessary contacts, companies, engagements urls. I cannot use the webhooks urls because it returns it returns a "does not have proper permissions"
Can you please let me know what shortcoming I have? Is it permission scopes, application scopes, some other nuance? If you could kindly show me some documentation that helps and exiting application add webhooks, that would be great.
URL that fails: https://api.hubapi.com/webhooks/v1/37682/subscriptions (with the necessary, correct Header Authorization: Bearer...)
I even used this in a REST tester and the header works when performing a call like: https://api.hubapi.com/contacts/v1/contact/vid/15801/profile
Response body when trying to retrieve webhooks:
"message": "This oauth-token (C...partially...removed...WkuazUJ1_) does not have proper permissions! (requires all of [developers-access])",