Hapikey without permission


#1

Hi,

I'm trying to fetch data from HubSpot API but I'm getting always a deny response:
GET https://api.hubapi.com/contacts/v1/lists?hapikey={{hapikey}}
Response:
{
"status": "error",
"message": "This hapikey (xxx) does not have proper permissions! (requires any of [contacts-lists-access, contacts-lists-read])",
"correlationId": "b70016c7-4f26-470e-b8a9-ab53ee5b86c6",
"requestId": "d39810da0b2e2626fed7527a74ddb8f2"
}

What's wrong with my request?

Thanks


#2

Hi @GuidoNebiolo,

It sounds like you're using the wrong hapikey. You need to use the hapikey from the portal you're trying to access, not your developer hapikey.


#3

No, I'm already using the hapikey obtained from the portal. I used correctly some months ago, now the same key doesn't work anymore and I tried also to recreate the key but it doesn't work with the same error.


#4

Hi @GuidoNebiolo,

Can you give me your Hub ID?


#5

EpiCura: 3947376

do you need anything else?


#6

Hi,

I have the same error. When I try to access lists (https://api.hubapi.com/contacts/v1/lists) with my API key I get an error

"This hapikey (XXXX) does not have proper permissions! (requires any of [contacts-lists-access, contacts-lists-read])"

At the same time I can access other endpoints. My API key was working on this endpoint earlier couple months ago with no permission errors.

Please, help.


#7

@kinoman104 same here


#8

Hi @GuidoNebiolo,

That portal is a Marketing/CRM Free portal, which does not have access to the Lists tool or the corresponding Contact Lists API.

@vnguyener and @kinoman104 if you both have Marketing/CRM Free portals, this is likely the explanation for your errors as well.


#9

Hi @Derek_Gervais,

I do have Marketing/CRM Free portals with the Hub id: 3388670. I have always had them from the beginning, and Contact Lists API was working fine. What would be the solution to get this feature working?


#10

Hi @kinoman104,

Did you downgrade at some point in the past? Marketing/CRM Free portals should never have had access to the Contacts Lists API, since Lists are only a feature of Marketing Pro/Enterprise portals. Going forward, if you need access to the Contacts Lists API or the Lists tool, you'll need to upgrade your portal to a product tier with Lists access (Marketing Pro/Enterprise).


#11

Hi @Derek_Gervais,

I didn't downgrade, it just worked. Maybe I had a trial or some promotion....
Thank you for explaining that.