API Automation V4 API KEY

Hi,
I managed to build a public App using the Project with extension and webhook under my developer account. It has not been published yet.
I tried to add a custom workflow action to it using the API.
https://api.hubapi.com/automation/v4/actions/••••••?hapikey=••••••
The problem is, I can not authorise the API call. I use the developer key and the app ID from the developer account that has the APP.
What have I missed in creating a custom workflow action for app?
The link in the error response HubSpot Login and Sign in redirects to the page “That page is nowhere to be found” with URL https://app.hubspot.com/api-key/**** where the end of the URL is the ID of my main HubSpot account that is not a developer account, even if I am on my developer account at that time in the browser.
I have 3 accounts in total. Main account I use HubSpot with, and one developer account and one test account.

{
 "status": "error",
 "message": "The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/",
 "correlationId": "eb57d7ac-d002-4b00-9630-22f71eaddf49",
 "category": "INVALID_AUTHENTICATION",
 "links": {
 "api key": "https://app.hubspot.com/l/api-key/"
 }
}

Hi @Piksha and welcome, we are so glad to have you here!
Thanks for asking the HubSpot Community!
Let’s check what our Top Experts have to say: Hi @sylvain_tirreau, @Anton and @zach_threadint do you have suggestions to help @Piksha, please?
Have a great day and thanks so much in advance for your help!
Bérangère

Hi @Piksha, I hope that you are well and thanks for your patience.
When looking at the error message you shared, it seems that it is because the API key you are using for HubSpot is either incorrect, expired, or has been deactivated.
Have you tried going to the link provided in the error message (HubSpot Login and Sign in), logging in to your HubSpot account, view your existing API keys or generate a new API key.
Then, you’ll need to update your application or integration to use the new API key.
Also, double-check that the API key has the necessary permissions for the endpoints you’re accessing.
Which HubSpot documentation are you following, please?
Let us know if this works.
Bérangère