Elementary Access

Hello!

We intend to exchange data about customers and contacts from Hubspot CRM with an other CRM by using the API. At final this effort should grow into a windows system service, written in c#, polling both systems to exchange data.
For testing purpose, at first, i created a Hubspot CRM account with myself as Superadmin and put some companies in it.
In this account i have the <mynumberMEMBER>. At second, i created a developer account and got a developer API key <mydevkey>
and a number <mynumberDEV>.
As next step i tried to execute the following URL:

https://api.hubapi.com/companies/v2/companies/paged?hapikey=<mydevkey>&userId=<mynumberDEV>

As result, i got the message:

“This hapikey (<mydevkey>) does not have proper permissions! (requires any of [contacts-read])”

I tried again with <mynumberMEMBER> and got the same response.

My hapikey seems to exist, but has wrong permissions. How can this request be formulated, that it aimes or points to
my earlier created test account, where i am the Superadmin? What is going wrong here?
Any tips and hints are welcome. Thanks in advance.

Ok, i found it by myself. The developer’s APi key is not the right one for this task. I had to create an API Key from inside my CRM account. The developers key is for …

anything else.

Welcome, @ppit.

I’m glad you resolved the issue!

For posterity, developer API keys are only used to manage settings on HubSpot apps. Examples include the Webhooks API, the Timeline API, and the Ecommerce Bridge.

“Production” API keys, on the other hand, are used for all other APIs, including the Contacts API and Deals API.