This hapikey xxxx does not have proper permissions! (requires all of [developers-read])

SOLVE
Highlighted
Regular Contributor

Hi Team,

I have created a dev/testing account(7947600) based on my company's CRM account. My work involves creating custom actions and custom triggers in workflows.

 

When I am trying to access Workflow Extensions API (https://api.hubapi.com/automationextensions/v1/definitions?hapikey=<<hapikey>>&applicationId=<<app ID>>)

I got this error :

{
    "status""error",
    "message""This hapikey (XXXXXX) does not have proper permissions! (requires all of [developers-read])",
    "correlationId""70069045-0493-4019-b2ce-c1c71c144a72"
}

 

Please help me with this as this is a blocker for my deadline.

 

Thanks

Reply
0 Upvotes
2 Accepted solutions

Accepted Solutions
Highlighted
HubSpot Moderator

Hey @krishna7 ,

 

That error generally means that you're using the wrong hapikey for a particular call. Workflow Extension definitions live in your developer portal, which means that any request needs to include the hapikey from your developer portal. It sounds like instead you're using the hapikey from your test account. Can you try it again using your developer hapikey? You can find that by following the instructions here: https://legacydocs.hubspot.com/docs/faq/developer-api-keys

Reply
0 Upvotes
Highlighted
Regular Contributor

Hi Derek, 

 

I have resolved the error by folowing the below document and now I can see my new workflow extension definitions in the actions section.

https://legacydocs.hubspot.com/docs/faq/installing-an-app

 

Thanks,

Krishna

3 Replies 3
Highlighted
HubSpot Moderator

Hey @krishna7 ,

 

That error generally means that you're using the wrong hapikey for a particular call. Workflow Extension definitions live in your developer portal, which means that any request needs to include the hapikey from your developer portal. It sounds like instead you're using the hapikey from your test account. Can you try it again using your developer hapikey? You can find that by following the instructions here: https://legacydocs.hubspot.com/docs/faq/developer-api-keys

Reply
0 Upvotes
Highlighted
Regular Contributor

Hi Derek,

 

Thanks for the info. When I am using the API key, I got the following error.

{
    "errors": [
        {
            "errorType""EXTENSION_NAME_ALREADY_EXISTS",
            "metadata": {
                "duplicateId": [
                    "1615"
                ]
            }
        }
    ],
    "success"false
}
So, I was checking my new extension name: Create New Appointment under actions while creating workflows. I cannot see any section for workflows in my dev account but I could see workflows section in test account (didn't find new extension in test acnt too)
 
Please let me know, where can I find new Workflow Extension Definition under actions, so that it will be helpfull for me to create new custom actions that I need.
 
Thanks,
Krishna
Reply
0 Upvotes
Highlighted
Regular Contributor

Hi Derek, 

 

I have resolved the error by folowing the below document and now I can see my new workflow extension definitions in the actions section.

https://legacydocs.hubspot.com/docs/faq/installing-an-app

 

Thanks,

Krishna