HubSpot · Capability

HubSpot CMS Source Code API — File Extraction

HubSpot CMS Source Code API — File Extraction. 2 operations. Lead operation: Hubspot Extract a Zip Archive. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotFile Extraction

What You Can Do

POST
Extractzipfileasync — Hubspot Extract a Zip Archive
/v1/cms/v3/source-code/extract/async
GET
Getextractiontaskstatus — Hubspot Get Extraction Task Status
/v1/cms/v3/source-code/extract/async/tasks/{taskid}/status

MCP Tools

hubspot-extract-zip-archive

Hubspot Extract a Zip Archive

hubspot-get-extraction-task-status

Hubspot Get Extraction Task Status

read-only idempotent

Capability Spec

source-code-file-extraction.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot CMS Source Code API — File Extraction
  description: 'HubSpot CMS Source Code API — File Extraction. 2 operations. Lead operation: Hubspot Extract a Zip Archive.
    Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - File Extraction
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUBSPOT_API_KEY: HUBSPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: source-code-file-extraction
    baseUri: https://api.hubapi.com
    description: HubSpot CMS Source Code API — File Extraction business capability. Self-contained, no shared references.
    resources:
    - name: cms-v3-source-code-extract-async
      path: /cms/v3/source-code/extract/async
      operations:
      - name: extractzipfileasync
        method: POST
        description: Hubspot Extract a Zip Archive
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cms-v3-source-code-extract-async-tasks-taskId-status
      path: /cms/v3/source-code/extract/async/tasks/{taskId}/status
      operations:
      - name: getextractiontaskstatus
        method: GET
        description: Hubspot Get Extraction Task Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: source-code-file-extraction-rest
    port: 8080
    description: REST adapter for HubSpot CMS Source Code API — File Extraction. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/cms/v3/source-code/extract/async
      name: cms-v3-source-code-extract-async
      description: REST surface for cms-v3-source-code-extract-async.
      operations:
      - method: POST
        name: extractzipfileasync
        description: Hubspot Extract a Zip Archive
        call: source-code-file-extraction.extractzipfileasync
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cms/v3/source-code/extract/async/tasks/{taskid}/status
      name: cms-v3-source-code-extract-async-tasks-taskid-status
      description: REST surface for cms-v3-source-code-extract-async-tasks-taskId-status.
      operations:
      - method: GET
        name: getextractiontaskstatus
        description: Hubspot Get Extraction Task Status
        call: source-code-file-extraction.getextractiontaskstatus
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: source-code-file-extraction-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot CMS Source Code API — File Extraction. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: hubspot-extract-zip-archive
      description: Hubspot Extract a Zip Archive
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: source-code-file-extraction.extractzipfileasync
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-get-extraction-task-status
      description: Hubspot Get Extraction Task Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: source-code-file-extraction.getextractiontaskstatus
      outputParameters:
      - type: object
        mapping: $.