Authentication and actionDefinitionVersion lookup for project-based custom workflow actions

Hello HubSpot developers,

We are testing a project-based private app with static authentication on developer platform version 2026.03. The app requests only crm.objects.deals.read. We used HubSpot CLI 8.16.0 with a personal access key limited to developer.projects.write; project upload and deployment succeeded.

Before running a custom workflow action, we need to verify the exact numeric actionDefinitionVersion expected in its callback. A read-only GET to /automation/v4/actions/{appId}/{definitionId}, authenticated through the CLI’s PAK-backed HTTP client, returned HTTP 401 with category INVALID_AUTHENTICATION. We have not established the cause. We have not executed the workflow or added credentials or scopes to resolve this.

Could you clarify:

  1. Which supported endpoint and authentication method should a project-based private/static app use to read its deployed custom workflow action definition, and what are the minimum permissions? Is a personal access key supported, or is a developer API key required?
  2. Which returned field maps to the numeric actionDefinitionVersion sent in callbacks? How does it relate to the definition revision, project build number, and project subbuild revision UUID?
  3. Can we verify that value before executing the workflow using supported CLI or app-management functionality without adding account-wide credentials?

The temporary test workflow is off, and the test app installation and tunnel have been removed. I have also submitted this question through official support and am looking for a documented approach before another controlled test.

Thank you.

This post was prepared with AI assistance; the reported test observations were checked against our execution records.

Hi @LeonKingsley and Happy Wednesday!

Great questions, thanks for asking the HubSpot Community!

Let’s consult our Top Experts: Hi @Anton, @evaldas and @nickdeckerdevs1 do you have any insights to share with @LeonKingsley, please?

In the meantime, here are some resources that can help:

Have a wonderful day and thanks so much!

Bérangère, HubSpot Community Manager

Hi @LeonKingsley, getting back to you on this, thanks for your patience!

I’ve looked into the documentation, and here’s what I found that might help clarify things.

1. Endpoint and authentication

For the custom action definition read endpoints:

  • GET /automation/v4/actions/{appId}/{definitionId} (legacy)

  • GET /automation/actions/2026-03/{appId}/{definitionId} (date-versioned)

The published API specifications list developer_hapikey (developer API key) as the supported authentication method.

Personal access keys (PAKs) aren’t listed as a supported authentication option for these endpoints, which could explain the 401 INVALID_AUTHENTICATION response you’re seeing.

One other thing worth checking is the app’s scopes. The documentation also references OAuth and private app access tokens for custom workflow actions, with the automation scope required for these paths. Since your app currently only requests crm.objects.deals.read, its token wouldn’t have the necessary permissions for these requests.

Based on the published endpoint specifications, the documented authentication method for these specific reads is a developer API key.

2. Understanding actionDefinitionVersion

According to the custom workflow actions documentation, actionDefinitionVersion represents your custom action definition version and is included in the origin block of execution and options-fetch payloads.

The definition GET response also includes a revisionId, while the revisions endpoints let you retrieve the definition’s version history.

What I couldn’t find in the documentation is a clear mapping between:

  • revisionId and the numeric actionDefinitionVersion

  • Your project build number

  • The subbuild revision UUID

So this is one area where if would be great if you could share here what our Support team detailed to help other Community Members facing the same.

3. Verifying the version before execution

The documented approach for reviewing definition versions is through the revisions endpoint, using developer API key authentication.

I wasn’t able to find a documented CLI command, app-management command, or PAK-authenticated alternative that would provide the same information.

Given your requirement to avoid account-wide credentials, there doesn’t appear to be a documented option that meets those constraints at the moment.

It’s great that you already have a Support ticket open! I’d recommend sharing your sanitized reproduction steps with the team and asking specifically how actionDefinitionVersion maps to revisionId and your deployed project version.

Hope this helps and please let us know if you have additional questions.

Thanks,

Bérangère, HubSpot Community Manager

This post was created with the assistance of AI tools