freshdesk · Capability

Freshdesk REST API — Products

Freshdesk REST API — Products. 4 operations. Lead operation: List all products. Self-contained Naftiko capability covering one Freshdesk business surface.

Run with Naftiko FreshdeskProducts

What You Can Do

GET
Listproducts — List all products
/v1/products
GET
Getproduct — View a product
/v1/products/{product-id}
PUT
Updateproduct — Update a product
/v1/products/{product-id}
POST
Createproduct — Create a product
/v1/products/{product-id}

MCP Tools

list-all-products

List all products

read-only idempotent
view-product

View a product

read-only idempotent
update-product

Update a product

idempotent
create-product

Create a product

Capability Spec

rest-products.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Freshdesk REST API — Products
  description: 'Freshdesk REST API — Products. 4 operations. Lead operation: List all products. Self-contained Naftiko capability
    covering one Freshdesk business surface.'
  tags:
  - Freshdesk
  - Products
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FRESHDESK_API_KEY: FRESHDESK_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-products
    baseUri: https://{domain}.freshdesk.com/api/v2
    description: Freshdesk REST API — Products business capability. Self-contained, no shared references.
    resources:
    - name: products
      path: /products
      operations:
      - name: listproducts
        method: GET
        description: List all products
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: products-product_id
      path: /products/{product_id}
      operations:
      - name: getproduct
        method: GET
        description: View a product
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateproduct
        method: PUT
        description: Update a product
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: createproduct
        method: POST
        description: Create a product
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.FRESHDESK_USER}}'
      password: '{{env.FRESHDESK_PASS}}'
  exposes:
  - type: rest
    namespace: rest-products-rest
    port: 8080
    description: REST adapter for Freshdesk REST API — Products. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/products
      name: products
      description: REST surface for products.
      operations:
      - method: GET
        name: listproducts
        description: List all products
        call: rest-products.listproducts
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/products/{product-id}
      name: products-product-id
      description: REST surface for products-product_id.
      operations:
      - method: GET
        name: getproduct
        description: View a product
        call: rest-products.getproduct
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateproduct
        description: Update a product
        call: rest-products.updateproduct
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createproduct
        description: Create a product
        call: rest-products.createproduct
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-products-mcp
    port: 9090
    transport: http
    description: MCP adapter for Freshdesk REST API — Products. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-products
      description: List all products
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-products.listproducts
      outputParameters:
      - type: object
        mapping: $.
    - name: view-product
      description: View a product
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-products.getproduct
      outputParameters:
      - type: object
        mapping: $.
    - name: update-product
      description: Update a product
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-products.updateproduct
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-product
      description: Create a product
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-products.createproduct
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.