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: $.