HubSpot · Capability

HubSpot CMS Source Code API — File Content

HubSpot CMS Source Code API — File Content. 4 operations. Lead operation: Hubspot Download a Source Code File. Self-contained Naftiko capability covering one Hubspot business surface.

Run with Naftiko HubspotFile Content

What You Can Do

GET
Downloadsourcecodefile — Hubspot Download a Source Code File
/v1/cms/v3/source-code/{environment}/content/{path}
PUT
Upsertsourcecodefile — Hubspot Create or Update a Source Code File
/v1/cms/v3/source-code/{environment}/content/{path}
POST
Createsourcecodefile — Hubspot Create a New Source Code File
/v1/cms/v3/source-code/{environment}/content/{path}
DELETE
Deletesourcecodefile — Hubspot Delete a Source Code File
/v1/cms/v3/source-code/{environment}/content/{path}

MCP Tools

hubspot-download-source-code-file

Hubspot Download a Source Code File

read-only idempotent
hubspot-create-update-source-code

Hubspot Create or Update a Source Code File

idempotent
hubspot-create-new-source-code

Hubspot Create a New Source Code File

hubspot-delete-source-code-file

Hubspot Delete a Source Code File

idempotent

Capability Spec

source-code-file-content.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HubSpot CMS Source Code API — File Content
  description: 'HubSpot CMS Source Code API — File Content. 4 operations. Lead operation: Hubspot Download a Source Code File.
    Self-contained Naftiko capability covering one Hubspot business surface.'
  tags:
  - Hubspot
  - File Content
  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-content
    baseUri: https://api.hubapi.com
    description: HubSpot CMS Source Code API — File Content business capability. Self-contained, no shared references.
    resources:
    - name: cms-v3-source-code-environment-content-path
      path: /cms/v3/source-code/{environment}/content/{path}
      operations:
      - name: downloadsourcecodefile
        method: GET
        description: Hubspot Download a Source Code File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: upsertsourcecodefile
        method: PUT
        description: Hubspot Create or Update a Source Code File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: createsourcecodefile
        method: POST
        description: Hubspot Create a New Source Code File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesourcecodefile
        method: DELETE
        description: Hubspot Delete a Source Code File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.HUBSPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: source-code-file-content-rest
    port: 8080
    description: REST adapter for HubSpot CMS Source Code API — File Content. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/cms/v3/source-code/{environment}/content/{path}
      name: cms-v3-source-code-environment-content-path
      description: REST surface for cms-v3-source-code-environment-content-path.
      operations:
      - method: GET
        name: downloadsourcecodefile
        description: Hubspot Download a Source Code File
        call: source-code-file-content.downloadsourcecodefile
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: upsertsourcecodefile
        description: Hubspot Create or Update a Source Code File
        call: source-code-file-content.upsertsourcecodefile
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsourcecodefile
        description: Hubspot Create a New Source Code File
        call: source-code-file-content.createsourcecodefile
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesourcecodefile
        description: Hubspot Delete a Source Code File
        call: source-code-file-content.deletesourcecodefile
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: source-code-file-content-mcp
    port: 9090
    transport: http
    description: MCP adapter for HubSpot CMS Source Code API — File Content. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: hubspot-download-source-code-file
      description: Hubspot Download a Source Code File
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: source-code-file-content.downloadsourcecodefile
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-create-update-source-code
      description: Hubspot Create or Update a Source Code File
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: source-code-file-content.upsertsourcecodefile
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-create-new-source-code
      description: Hubspot Create a New Source Code File
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: source-code-file-content.createsourcecodefile
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hubspot-delete-source-code-file
      description: Hubspot Delete a Source Code File
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: source-code-file-content.deletesourcecodefile
      outputParameters:
      - type: object
        mapping: $.