Skip Navigation or Skip to Content
Frame 2087327004
Not Sure Your HubSpot Is Working as Well as It Should?

Get a free 30-minute HubSpot review with honest insights and practical next steps.

overlay bg

EVERYTHING YOU NEED TO GET STARTED

Custom API Workflow Action 
Setup Docs

Below contains extensive documentation on all stages of installing, using and even uninstalling this app. This will detail how to install the app, add the action to a workflow, configure the request, use the response in later steps and how to cease using the app if you require.

1.

Install the app

The app is installed via HubSpot's standard OAuth flow. No developer credentials or API keys on your side are required — authentication to your external APIs is configured per workflow step, not at install time.

  1. Find the app on the  HubSpot App Marketplace.
  2. Click Install app on the listing page.
  3. You will be redirected to the King Henry authorisation page.
  4. Review the requested permissions and click Connect app.
  5. HubSpot will ask you to approve the scopes the app requires. Click Connect app on the HubSpot scope approval screen to grant access.
  6. After approving, you are redirected back to HubSpot. The app will appear in Settings → Integrations → Connected Apps
image (4)
image (2)
image (3)
2.

Connect your HubSpot account

The OAuth authorisation step above connects your HubSpot account. No additional connection steps are needed after install — the app is immediately ready for use in workflows.

The app requests the automation scope only. This scope allows the app to register and execute workflow actions on your behalf. It does not grant access to your contacts, deals, or any other HubSpot data objects.

One installation covers your whole portal. You only need to install and authorise the app once. All users in your HubSpot portal can immediately add Custom API Call actions to their workflows — no per-user setup is required.
3.

Add the action to a workflow

Once installed, the Custom API Call action is available in every workflow, regardless of enrolled object type (contacts, companies, deals, tickets, custom objects).

  1. Go to Automation → Workflows and open an existing workflow, or create a new one.
  2. Click the + button to add a new action at the desired position in the workflow.
  3. In the action panel that opens, type Custom API in the search box — or scroll down to the Connected apps section.
  4. Click Custom API Call to open the configuration panel.
image (1)
4.

Configure the action fields

Once installed, the Custom API Call action is available in every workflow, regardless of enrolled object type (contacts, companies, deals, tickets, custom objects).

Step name (required)

A label shown on the workflow canvas to identify this action. Use something descriptive, for example Notify Slack or Create lead in CRM. This name is displayed on the workflow card and in the enrolment history, making it easy to identify each step at a glance. It is not sent to the external API.

API URL (required)

The full HTTPS URL of the endpoint to call. The URL must begin with https://. You can embed HubSpot workflow tokens to build a dynamic URL at runtime:

https://api.example.com/contacts/
HTTP Method (required)

The HTTP method for the request. Choose one of:

  • GET: retrieve data; no request body is sent
  • POST: create a resource or trigger an action
  • PUT: replace an existing resource
  • PATCH: partially update an existing resource
  • DELETE: remove a resource
Authentication type (required)

Controls how the request is authenticated. Selecting a type reveals the relevant credential fields:

Option
What it does
Extra fields shown
None
No authentication header is added None
Bearer token
Adds Authorization: Bearer <token> Bearer token
API key (header)
Adds a custom header with your key Header name, Header value
Basic auth
Adds HTTP Basic authentication Username, Password
Query parameters (optional)

A JSON object of key-value pairs appended to the URL as query string parameters. Example:

{  
   "format": "json",
   "source": "hubspot"
}

Custom headers (optional)

A JSON object of additional HTTP headers to include in the request. Example:

{
   "X-Custom-Header": "my-value",
   "Content-Type": "application/json"
}

Request body (optional)

A JSON object sent as the request body. Used for POST, PUT, and PATCH requests. Embed HubSpot workflow tokens to include live record data at the time the workflow runs. Example:

{
   "email": "",
   "dealName": "{{deal.dealname}}",
   "stage": "{{deal.dealstage}}"
}

Timeout (optional)

The maximum number of seconds the action will wait for a response before failing. Defaults to 10 seconds. Maximum allowed value is 60 seconds. If the API does not respond within this time, the workflow step is marked as failed and the error_message output field will contain a timeout description.

image
5.

Use output fields in subsequent steps

After the Custom API Call action runs, four output fields are available to reference in downstream workflow steps, such as If/then branches, Set property value actions, or additional API calls.

Output field
Type
Description
status_code Number The HTTP status code returned by the API, for example 200, 201, 400, 404, 500.
response_body String The full response body as a string. If the API returns JSON, this is the raw JSON string.
success Boolean True if the status code was in the 2xx range; false otherwise.
error_message String A description of the error if the request failed. Empty on success.
Example: Branch on success or failure

Add an If/then branch immediately after the Custom API Call step. Set the condition to Custom API Call, success is equal to true to route enrolled records differently depending on whether the API call succeeded.

Example: Save the API response to a property

Add a Set property value action after the API call. Use the response_body output token as the value to store the API's response in a HubSpot contact or deal property for later reference or reporting.

6.

Disconnect the app

Disconnecting the app revokes the OAuth authorisation token between your HubSpot portal and King Henry. After disconnecting, any workflow that runs a Custom API Call step will fail because the action can no longer be executed.

Active workflows will stop working. Before disconnecting, pause or update any live workflows that contain a Custom API Call step. Disconnecting does not delete the workflow steps. They remain in your workflow editor and can be reactivated if you reinstall the app.

To disconnect:

  1. Go to Settings → Integrations → Connected Apps.
  2. Find Custom API Workflow Action in the list.
  3. Click Actions → Disconnect (or Uninstall, depending on your HubSpot version).
  4. Confirm the disconnection in the dialog that appears.

What happens to your data: Disconnecting does not delete any HubSpot properties, workflow configurations, or enrolment history. No data stored in HubSpot is removed. King Henry does not retain any of your HubSpot data after disconnection. The app proxies API requests in real time and stores nothing.

7.

Uninstall the app

Uninstalling fully removes the app from your HubSpot portal, including the OAuth connection and the registered workflow action type.

To uninstall:

  1. Go to Settings → Integrations → Connected Apps.
  2. Find Custom API Workflow Action in the list.
  3. Click Actions → Uninstall.
  4. Read the confirmation message and click Uninstall to confirm.

Workflows using this action will stop executing that step. Any workflow containing a Custom API Call step will continue to run, but the Custom API Call step will be skipped or marked as failed after uninstallation. To restore full functionality, reinstall the app and reconnect via OAuth.

What happens to your data: Disconnecting does not delete any HubSpot properties, workflow configurations, or enrolment history. No data stored in HubSpot is removed. King Henry does not retain any of your HubSpot data after disconnection. The app proxies API requests in real time and stores nothing.

What happens to your data after uninstall:
  • No HubSpot contacts, companies, deals, or other records are deleted.
  • No HubSpot properties are deleted.
  • Existing workflow steps that referenced the Custom API Call action remain in the workflow editor but are marked as inactive.
  • Workflow enrolment history is preserved and still visible in HubSpot.
  • King Henry does not store any of your HubSpot data, so there is nothing on King Henry’s side to delete.

You can reinstall the app at any time from the HubSpot App Marketplace. After reinstalling, existing workflow steps that referenced the action will become active again without reconfiguration.

Troubleshooting

Most issues come down to the endpoint URL, credentials, token syntax, or API response time.

The action shows an error in workflow history

  • Check the error_message output field.
  • Confirm the API URL is correct and uses https://.
  • Verify your token, API key, or username and password are still valid.
  • Make sure the endpoint is publicly accessible from the internet.

My request body tokens are not resolving

  • Use the correct HubSpot token format, such as.
  • Only properties on the workflow's enrolment object are available.

The request times out

  • The maximum timeout is 60 seconds.
  • Increase the timeout value if appropriate.
  • If the API consistently takes longer, it is not a good fit for this action.

I cannot find the action in the workflow editor

  • Check that the app is installed in Settings → Integrations → Connected Apps.
  • If it appears disconnected, reinstall it from the app listing.

Support

We're more than happy to lend a hand.

Need help?

Need help with the Custom API Workflow Action? Email support@kinghenry.au.

When contacting support, include:

  • Your HubSpot portal ID
  • The workflow name and step name of the failing action
  • The error message or status code from the workflow action history
  • A short description of what you expected to happen

Who this is for

This app is ideal for HubSpot users who want to connect workflows to external systems without building a full custom integration.
  • RevOps teams
  • Developers
  • Agencies
  • Operations teams

Stuck on a step? Reach out.

Email support@kinghenry.au with your portal ID, the workflow and step name, and the error message from the action history. We'll come back right away.

overlay bg

A HubSpot Studio.

We diagnose, build, and run HubSpot for businesses that need it done properly.

© King Henry. Crafted in Australia. All rights reserved.