HubSpot · Capability

HubSpot Custom Workflow Actions API — Definition Revisions

HubSpot Custom Workflow Actions API — Definition Revisions. 2 operations. Lead operation: Hubspot List Definition Revisions. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotDefinition Revisions

What You Can Do

GET
Listactiondefinitionrevisions — Hubspot List Definition Revisions
/v1/automation/v4/actions/{appid}/{definitionid}/revisions
GET
Getactiondefinitionrevisionbyid — Hubspot Retrieve a Specific Revision
/v1/automation/v4/actions/{appid}/{definitionid}/revisions/{revisionid}

MCP Tools

hubspot-list-definition-revisions

Hubspot List Definition Revisions

read-only idempotent
hubspot-retrieve-specific-revision

Hubspot Retrieve a Specific Revision

read-only idempotent

Capability Spec

custom-workflow-actions-definition-revisions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot Custom Workflow Actions API — Definition Revisions
  description: 'HubSpot Custom Workflow Actions API — Definition Revisions. 2 operations. Lead operation: Hubspot List Definition
    Revisions. Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - Definition Revisions
  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-definition-revisions
    baseUri: https://api.hubapi.com
    description: HubSpot Custom Workflow Actions API — Definition Revisions business capability. Self-contained, no shared
      references.
    resources:
    - name: automation-v4-actions-appId-definitionId-revisions
      path: /automation/v4/actions/{appId}/{definitionId}/revisions
      operations:
      - name: listactiondefinitionrevisions
        method: GET
        description: Hubspot List Definition Revisions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: automation-v4-actions-appId-definitionId-revisions-revisionId
      path: /automation/v4/actions/{appId}/{definitionId}/revisions/{revisionId}
      operations:
      - name: getactiondefinitionrevisionbyid
        method: GET
        description: Hubspot Retrieve a Specific Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: custom-workflow-actions-definition-revisions-rest
    port: 8080
    description: REST adapter for HubSpot Custom Workflow Actions API — Definition Revisions. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/automation/v4/actions/{appid}/{definitionid}/revisions
      name: automation-v4-actions-appid-definitionid-revisions
      description: REST surface for automation-v4-actions-appId-definitionId-revisions.
      operations:
      - method: GET
        name: listactiondefinitionrevisions
        description: Hubspot List Definition Revisions
        call: custom-workflow-actions-definition-revisions.listactiondefinitionrevisions
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/automation/v4/actions/{appid}/{definitionid}/revisions/{revisionid}
      name: automation-v4-actions-appid-definitionid-revisions-revisionid
      description: REST surface for automation-v4-actions-appId-definitionId-revisions-revisionId.
      operations:
      - method: GET
        name: getactiondefinitionrevisionbyid
        description: Hubspot Retrieve a Specific Revision
        call: custom-workflow-actions-definition-revisions.getactiondefinitionrevisionbyid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: custom-workflow-actions-definition-revisions-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot Custom Workflow Actions API — Definition Revisions. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: hubspot-list-definition-revisions
      description: Hubspot List Definition Revisions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: custom-workflow-actions-definition-revisions.listactiondefinitionrevisions
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-retrieve-specific-revision
      description: Hubspot Retrieve a Specific Revision
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: custom-workflow-actions-definition-revisions.getactiondefinitionrevisionbyid
      outputParameters:
      - type: object
        mapping: $.