GET
/
automation
/
v4
/
actions
/
{appId}
/
{definitionId}
/
functions
/
{functionType}
/
{functionId}
Retrieve a function from a given definition
curl --request GET \
  --url https://api.hubapi.com/automation/v4/actions/{appId}/{definitionId}/functions/{functionType}/{functionId}
{
  "functionSource": "<string>",
  "functionType": "PRE_ACTION_EXECUTION",
  "id": "<string>"
}
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubProfessional
Sales HubSales HubProfessional
Service HubService HubProfessional
Content HubContent HubFree

Authorizations

hapikey
string
query
required

Path Parameters

definitionId
string
required

The ID of the definition.

functionType
enum<string>
required

The type of function. Can be PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS, POST_FETCH_OPTIONS, POST_ACTION_EXECUTION.

Available options:
PRE_ACTION_EXECUTION,
PRE_FETCH_OPTIONS,
POST_FETCH_OPTIONS,
POST_ACTION_EXECUTION
functionId
string
required

The ID of the function.

appId
integer
required

The ID of the app.

Response

200
application/json

successful operation

The response is of type object.