# This hapikey API does not have proper permissions

**URL:** <https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [October 24, 2017, 9:45am UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023 "2017-10-24T09:45:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrAzure](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrazure/32/22307_2.png) [@MrAzure](https://community.hubspot.com/u/MrAzure)\
**Post date:** [October 24, 2017, 9:45am UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/1 "2017-10-24T09:45:08Z")

</div>

Hi ,  
i have a Free CRM / Marketing account and I would to access through API to my Contacts & Deals ( loaded through web interface ) but we try to invoke this API : [https://api.hubapi.com/deals/v1/deal/paged?hapikey=](https://api.hubapi.com/deals/v1/deal/paged?hapikey=){ my hapikey }  
I got this error :

{“status”:“error”,“message”:“This hapikey ( { my hapikey } ) does not have proper permissions! (requires any of [contacts-read])”,“correlationId”:“36f64cfb-c252-4ea3-b5f2-de894e34188d”,“requestId”:“243afa0c019d92680ecdf7c57d3d089e”}

Why ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [October 24, 2017, 3:50pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/2 "2017-10-24T15:50:11Z")

</div>

Hi @MrAzure,

Can you direct message me your hapikey?

---

<div class="post-metadata">

**Author:** ![MrAzure](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrazure/32/22307_2.png) [@MrAzure](https://community.hubspot.com/u/MrAzure)\
**Post date:** [October 25, 2017, 8:08am UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/3 "2017-10-25T08:08:15Z")

</div>

I can’t send you a direct message , here are : (redacted) .  
I will change it.

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [October 25, 2017, 6:47pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/4 "2017-10-25T18:47:00Z")

</div>

Hi @MrAzure,

That hapikey was the API key to your developer portal, which does not have access to any of the Marketing/CRM scopes. The developer hapikey can only be used to make requests to the developer tools settings. You’ll need to use the API key from your production Marketing/CRM account to make those calls.

---

<div class="post-metadata">

**Author:** ![MrAzure](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrazure/32/22307_2.png) [@MrAzure](https://community.hubspot.com/u/MrAzure)\
**Post date:** [October 26, 2017, 2:11pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/5 "2017-10-26T14:11:34Z")

</div>

Can i use it although i have a free CRM / Marketing Account ? And also where i find my API key  
in Marketing/CRM account of production ?

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [October 26, 2017, 7:13pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/6 "2017-10-26T19:13:20Z")

</div>

Hi @MrAzure,

To make requests to your Marketing/CRM portal, you’ll need the API key from that portal. Instructions on how to get that are below:

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/3/23ea0ff39f94745d32876853337d2fc1c4039be4.png) [knowledge.hubspot.com](https://knowledge.hubspot.com/articles/kcs_article/integrations/how-do-i-get-my-hubspot-api-key)

 ![Integrations_Menu_Item.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/f/9f9d1e82bb71c00073eab9b469f467ceca454e2d.png)

### [How do I get my HubSpot API key?](https://knowledge.hubspot.com/articles/kcs_article/integrations/how-do-i-get-my-hubspot-api-key)

Marketing Basic, Professional, and Enterprise customers and portals with a CRM can access the HubSpot API. Learn how to access your HubSpot API key here.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 5, 2018, 3:54pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/7 "2018-06-05T15:54:35Z")

</div>

Hi Derek.

I’ve been following this thread as I’m having the same issues as MrAzure.

Following the instructions on the site, I have found the “Integrations” option. However, when I do click that, there’s no option I can find to generate an API key. Can you help me with this by any chance please?

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [June 7, 2018, 8:01pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/8 "2018-06-07T20:01:51Z")

</div>

Hi [@DrProcter](https://community.hubspot.com/u/drprocter),

Can you give me your Hub ID?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 8, 2018, 5:58pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/9 "2018-06-08T17:58:05Z")

</div>

Hi Derek.

```auto
 Thanks for this.

 I'm not exactly certain what you're asking for, so I took a screen shot. Hopefully that has what you're needing:

 <img src="/uploads/default/original/2X/f/f45912e47f8ebcaa30cc97575f14d44daaa44f9d.png" alt="">

```

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [June 13, 2018, 8:16pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/10 "2018-06-13T20:16:54Z")

</div>

Hi [@DrProcter](https://community.hubspot.com/u/drprocter),

Sorry, I can’t get that image to load properly due to whatever strange formatting is happening. Can you post your screenshot again? You can also find your Hub ID by following the instructions below:

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/9/89483a8de9bdc55d982e59c9c8b6de05e4fd8ee4.png) [knowledge.hubspot.com](https://knowledge.hubspot.com/articles/kcs_article/account/where-can-i-find-my-hub-id)

 ![d1fe338a5a21670560408c6b103b7dca4806be74.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/1/d1fe338a5a21670560408c6b103b7dca4806be74.png)

### [Where can I find my Hub ID?](https://knowledge.hubspot.com/articles/kcs_article/account/where-can-i-find-my-hub-id)

Learn how to find your Hub ID, a unique number assigned to every account in HubSpot.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [July 9, 2018, 7:30pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/11 "2018-07-09T19:30:51Z")

</div>

Thanks Derek.

```auto
 Here is my HUBSpot ID I think: 4515582

 <img src="/uploads/default/original/2X/4/4a63446d33da32ab8dd0623abcdd9bf2c013490c.png" alt="">

```

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [July 17, 2018, 9:09pm UTC](https://community.hubspot.com/t/this-hapikey-api-does-not-have-proper-permissions/12023/12 "2018-07-17T21:09:29Z")

</div>

Hi [@DrProcter](https://community.hubspot.com/u/drprocter),

That’s helpful; thank you. Looking up that Hub ID, I can see that it’s a developer portal. Developer portals don’t have access to any of the regular HubSpot tools that Marketing/CRM portals do. In order to test out your integration, you’ll need to get the hapikey from a test Marketing/CRM portal; you can follow the steps in the following Knowledge Base article to create a test portal, and then when you log into that test portal you’ll be able to follow the steps in the previous Knowledge Base article to grab your API key.

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/a/aaffc8e0f5a6f71f0bd97ac65bceb9f82373af41.png) [developers.hubspot.com](https://developers.hubspot.com/docs/faq/how-do-i-create-a-test-portal)

### [How do I create a test portal?](https://developers.hubspot.com/docs/faq/how-do-i-create-a-test-portal)

Test portals can be used to test your integration without affecting your live HubSpot data.
