HubSpot · Capability

HubSpot Custom Workflow Actions API — Action Functions

HubSpot Custom Workflow Actions API — Action Functions. 6 operations. Lead operation: Hubspot List Action Functions. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotAction Functions

What You Can Do

GET
Listactionfunctions — Hubspot List Action Functions
/v1/automation/v4/actions/{appid}/{definitionid}/functions
GET
Getactionfunctionbytype — Hubspot Retrieve Function by Type
/v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}
PUT
Upsertactionfunction — Hubspot Create or Update a Function
/v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}
DELETE
Deleteactionfunctionbytype — Hubspot Delete a Function by Type
/v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}
GET
Getactionfunctionbyid — Hubspot Retrieve a Specific Function
/v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}/{functionid}
DELETE
Deleteactionfunctionbyid — Hubspot Delete a Specific Function
/v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}/{functionid}

MCP Tools

hubspot-list-action-functions

Hubspot List Action Functions

read-only idempotent
hubspot-retrieve-function-type

Hubspot Retrieve Function by Type

read-only idempotent
hubspot-create-update-function

Hubspot Create or Update a Function

idempotent
hubspot-delete-function-type

Hubspot Delete a Function by Type

idempotent
hubspot-retrieve-specific-function

Hubspot Retrieve a Specific Function

read-only idempotent
hubspot-delete-specific-function

Hubspot Delete a Specific Function

idempotent

Capability Spec

custom-workflow-actions-action-functions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot Custom Workflow Actions API — Action Functions
  description: 'HubSpot Custom Workflow Actions API — Action Functions. 6 operations. Lead operation: Hubspot List Action
    Functions. Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - Action Functions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUBSPOT_API_KEY: HUBSPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: custom-workflow-actions-action-functions
    baseUri: https://api.hubapi.com
    description: HubSpot Custom Workflow Actions API — Action Functions business capability. Self-contained, no shared references.
    resources:
    - name: automation-v4-actions-appId-definitionId-functions
      path: /automation/v4/actions/{appId}/{definitionId}/functions
      operations:
      - name: listactionfunctions
        method: GET
        description: Hubspot List Action Functions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: automation-v4-actions-appId-definitionId-functions-functionType
      path: /automation/v4/actions/{appId}/{definitionId}/functions/{functionType}
      operations:
      - name: getactionfunctionbytype
        method: GET
        description: Hubspot Retrieve Function by Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertactionfunction
        method: PUT
        description: Hubspot Create or Update a Function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteactionfunctionbytype
        method: DELETE
        description: Hubspot Delete a Function by Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: automation-v4-actions-appId-definitionId-functions-functionType-functionId
      path: /automation/v4/actions/{appId}/{definitionId}/functions/{functionType}/{functionId}
      operations:
      - name: getactionfunctionbyid
        method: GET
        description: Hubspot Retrieve a Specific Function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteactionfunctionbyid
        method: DELETE
        description: Hubspot Delete a Specific Function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: custom-workflow-actions-action-functions-rest
    port: 8080
    description: REST adapter for HubSpot Custom Workflow Actions API — Action Functions. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/automation/v4/actions/{appid}/{definitionid}/functions
      name: automation-v4-actions-appid-definitionid-functions
      description: REST surface for automation-v4-actions-appId-definitionId-functions.
      operations:
      - method: GET
        name: listactionfunctions
        description: Hubspot List Action Functions
        call: custom-workflow-actions-action-functions.listactionfunctions
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}
      name: automation-v4-actions-appid-definitionid-functions-functiontype
      description: REST surface for automation-v4-actions-appId-definitionId-functions-functionType.
      operations:
      - method: GET
        name: getactionfunctionbytype
        description: Hubspot Retrieve Function by Type
        call: custom-workflow-actions-action-functions.getactionfunctionbytype
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertactionfunction
        description: Hubspot Create or Update a Function
        call: custom-workflow-actions-action-functions.upsertactionfunction
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteactionfunctionbytype
        description: Hubspot Delete a Function by Type
        call: custom-workflow-actions-action-functions.deleteactionfunctionbytype
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/automation/v4/actions/{appid}/{definitionid}/functions/{functiontype}/{functionid}
      name: automation-v4-actions-appid-definitionid-functions-functiontype-functionid
      description: REST surface for automation-v4-actions-appId-definitionId-functions-functionType-functionId.
      operations:
      - method: GET
        name: getactionfunctionbyid
        description: Hubspot Retrieve a Specific Function
        call: custom-workflow-actions-action-functions.getactionfunctionbyid
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteactionfunctionbyid
        description: Hubspot Delete a Specific Function
        call: custom-workflow-actions-action-functions.deleteactionfunctionbyid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: custom-workflow-actions-action-functions-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot Custom Workflow Actions API — Action Functions. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: hubspot-list-action-functions
      description: Hubspot List Action Functions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: custom-workflow-actions-action-functions.listactionfunctions
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-retrieve-function-type
      description: Hubspot Retrieve Function by Type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: custom-workflow-actions-action-functions.getactionfunctionbytype
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-create-update-function
      description: Hubspot Create or Update a Function
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: custom-workflow-actions-action-functions.upsertactionfunction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-delete-function-type
      description: Hubspot Delete a Function by Type
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: custom-workflow-actions-action-functions.deleteactionfunctionbytype
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-retrieve-specific-function
      description: Hubspot Retrieve a Specific Function
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: custom-workflow-actions-action-functions.getactionfunctionbyid
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-delete-specific-function
      description: Hubspot Delete a Specific Function
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: custom-workflow-actions-action-functions.deleteactionfunctionbyid
      outputParameters:
      - type: object
        mapping: $.