Creating legacy public apps and project-based apps is temporary unavailable for new HubSpot accounts.
Learn more in our Trust Center.
curl --request GET \
--url 'https://api.hubapi.com/automation/v4/actions/{appId}/{definitionId}/functions/{functionType}?hapikey='{
"functionSource": "<string>",
"functionType": "POST_ACTION_EXECUTION",
"id": "<string>"
}Retrieve functions of a specific type for a given definition.
curl --request GET \
--url 'https://api.hubapi.com/automation/v4/actions/{appId}/{definitionId}/functions/{functionType}?hapikey='{
"functionSource": "<string>",
"functionType": "POST_ACTION_EXECUTION",
"id": "<string>"
}Supported products
The ID of the app associated with the function.
The ID of the definition associated with the function.
The type of function to retrieve, with accepted values: POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS.
POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS successful operation
The source code or script that defines the function's behavior.
The type of function, with accepted values: POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS.
POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS The unique identifier for the action function.
Was this page helpful?