freshdesk · Capability

Freshdesk REST API — Tickets

Freshdesk REST API — Tickets. 14 operations. Lead operation: List all ticket fields. Self-contained Naftiko capability covering one Freshdesk business surface.

Run with Naftiko FreshdeskTickets

What You Can Do

GET
Listticketfields — List all ticket fields
/v1/ticket-fields
GET
Listtickets — List all tickets
/v1/tickets
POST
Createticket — Create a ticket
/v1/tickets
POST
Bulkdeletetickets — Bulk delete tickets
/v1/tickets/bulk-delete
POST
Bulkupdatetickets — Bulk update tickets
/v1/tickets/bulk-update
PUT
Mergetickets — Merge tickets
/v1/tickets/merge
POST
Createoutboundemail — Create an outbound email ticket
/v1/tickets/outbound-email
GET
Getticket — View a ticket
/v1/tickets/{ticket-id}
PUT
Updateticket — Update a ticket
/v1/tickets/{ticket-id}
DELETE
Deleteticket — Delete a ticket
/v1/tickets/{ticket-id}
GET
Listassociatedtickets — List associated tickets
/v1/tickets/{ticket-id}/associated-tickets
PUT
Restoreticket — Restore a deleted ticket
/v1/tickets/{ticket-id}/restore
POST
Watchticket — Watch a ticket
/v1/tickets/{ticket-id}/watch
GET
Listticketwatchers — List watchers on a ticket
/v1/tickets/{ticket-id}/watchers

MCP Tools

list-all-ticket-fields

List all ticket fields

read-only idempotent
list-all-tickets

List all tickets

read-only idempotent
create-ticket

Create a ticket

bulk-delete-tickets

Bulk delete tickets

bulk-update-tickets

Bulk update tickets

merge-tickets

Merge tickets

idempotent
create-outbound-email-ticket

Create an outbound email ticket

view-ticket

View a ticket

read-only idempotent
update-ticket

Update a ticket

idempotent
delete-ticket

Delete a ticket

idempotent
list-associated-tickets

List associated tickets

read-only idempotent
restore-deleted-ticket

Restore a deleted ticket

idempotent
watch-ticket

Watch a ticket

list-watchers-ticket

List watchers on a ticket

read-only idempotent

Capability Spec

rest-tickets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Freshdesk REST API — Tickets
  description: 'Freshdesk REST API — Tickets. 14 operations. Lead operation: List all ticket fields. Self-contained Naftiko
    capability covering one Freshdesk business surface.'
  tags:
  - Freshdesk
  - Tickets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FRESHDESK_API_KEY: FRESHDESK_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-tickets
    baseUri: https://{domain}.freshdesk.com/api/v2
    description: Freshdesk REST API — Tickets business capability. Self-contained, no shared references.
    resources:
    - name: ticket_fields
      path: /ticket_fields
      operations:
      - name: listticketfields
        method: GET
        description: List all ticket fields
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tickets
      path: /tickets
      operations:
      - name: listtickets
        method: GET
        description: List all tickets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Pre-defined filter to apply. Options include new_and_my_open, watching, spam, deleted.
        - name: requester_id
          in: query
          type: integer
          description: Filter tickets by requester ID.
        - name: email
          in: query
          type: string
          description: Filter tickets by requester email address.
        - name: updated_since
          in: query
          type: string
          description: Return tickets updated since the given date-time in UTC format.
        - name: order_by
          in: query
          type: string
          description: Field to order results by.
        - name: order_type
          in: query
          type: string
          description: Sort direction for results.
        - name: include
          in: query
          type: string
          description: Include additional information such as requester, stats, or description.
      - name: createticket
        method: POST
        description: Create a ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: tickets-bulk_delete
      path: /tickets/bulk_delete
      operations:
      - name: bulkdeletetickets
        method: POST
        description: Bulk delete tickets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: tickets-bulk_update
      path: /tickets/bulk_update
      operations:
      - name: bulkupdatetickets
        method: POST
        description: Bulk update tickets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: tickets-merge
      path: /tickets/merge
      operations:
      - name: mergetickets
        method: PUT
        description: Merge tickets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: tickets-outbound_email
      path: /tickets/outbound_email
      operations:
      - name: createoutboundemail
        method: POST
        description: Create an outbound email ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: tickets-ticket_id
      path: /tickets/{ticket_id}
      operations:
      - name: getticket
        method: GET
        description: View a ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: include
          in: query
          type: string
          description: Include additional information in the response.
      - name: updateticket
        method: PUT
        description: Update a ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteticket
        method: DELETE
        description: Delete a ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tickets-ticket_id-associated_tickets
      path: /tickets/{ticket_id}/associated_tickets
      operations:
      - name: listassociatedtickets
        method: GET
        description: List associated tickets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tickets-ticket_id-restore
      path: /tickets/{ticket_id}/restore
      operations:
      - name: restoreticket
        method: PUT
        description: Restore a deleted ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tickets-ticket_id-watch
      path: /tickets/{ticket_id}/watch
      operations:
      - name: watchticket
        method: POST
        description: Watch a ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tickets-ticket_id-watchers
      path: /tickets/{ticket_id}/watchers
      operations:
      - name: listticketwatchers
        method: GET
        description: List watchers on a ticket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.FRESHDESK_USER}}'
      password: '{{env.FRESHDESK_PASS}}'
  exposes:
  - type: rest
    namespace: rest-tickets-rest
    port: 8080
    description: REST adapter for Freshdesk REST API — Tickets. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/ticket-fields
      name: ticket-fields
      description: REST surface for ticket_fields.
      operations:
      - method: GET
        name: listticketfields
        description: List all ticket fields
        call: rest-tickets.listticketfields
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets
      name: tickets
      description: REST surface for tickets.
      operations:
      - method: GET
        name: listtickets
        description: List all tickets
        call: rest-tickets.listtickets
        with:
          filter: rest.filter
          requester_id: rest.requester_id
          email: rest.email
          updated_since: rest.updated_since
          order_by: rest.order_by
          order_type: rest.order_type
          include: rest.include
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createticket
        description: Create a ticket
        call: rest-tickets.createticket
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/bulk-delete
      name: tickets-bulk-delete
      description: REST surface for tickets-bulk_delete.
      operations:
      - method: POST
        name: bulkdeletetickets
        description: Bulk delete tickets
        call: rest-tickets.bulkdeletetickets
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/bulk-update
      name: tickets-bulk-update
      description: REST surface for tickets-bulk_update.
      operations:
      - method: POST
        name: bulkupdatetickets
        description: Bulk update tickets
        call: rest-tickets.bulkupdatetickets
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/merge
      name: tickets-merge
      description: REST surface for tickets-merge.
      operations:
      - method: PUT
        name: mergetickets
        description: Merge tickets
        call: rest-tickets.mergetickets
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/outbound-email
      name: tickets-outbound-email
      description: REST surface for tickets-outbound_email.
      operations:
      - method: POST
        name: createoutboundemail
        description: Create an outbound email ticket
        call: rest-tickets.createoutboundemail
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/{ticket-id}
      name: tickets-ticket-id
      description: REST surface for tickets-ticket_id.
      operations:
      - method: GET
        name: getticket
        description: View a ticket
        call: rest-tickets.getticket
        with:
          include: rest.include
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateticket
        description: Update a ticket
        call: rest-tickets.updateticket
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteticket
        description: Delete a ticket
        call: rest-tickets.deleteticket
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/{ticket-id}/associated-tickets
      name: tickets-ticket-id-associated-tickets
      description: REST surface for tickets-ticket_id-associated_tickets.
      operations:
      - method: GET
        name: listassociatedtickets
        description: List associated tickets
        call: rest-tickets.listassociatedtickets
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/{ticket-id}/restore
      name: tickets-ticket-id-restore
      description: REST surface for tickets-ticket_id-restore.
      operations:
      - method: PUT
        name: restoreticket
        description: Restore a deleted ticket
        call: rest-tickets.restoreticket
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/{ticket-id}/watch
      name: tickets-ticket-id-watch
      description: REST surface for tickets-ticket_id-watch.
      operations:
      - method: POST
        name: watchticket
        description: Watch a ticket
        call: rest-tickets.watchticket
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tickets/{ticket-id}/watchers
      name: tickets-ticket-id-watchers
      description: REST surface for tickets-ticket_id-watchers.
      operations:
      - method: GET
        name: listticketwatchers
        description: List watchers on a ticket
        call: rest-tickets.listticketwatchers
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-tickets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Freshdesk REST API — Tickets. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-ticket-fields
      description: List all ticket fields
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-tickets.listticketfields
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-tickets
      description: List all tickets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-tickets.listtickets
      with:
        filter: tools.filter
        requester_id: tools.requester_id
        email: tools.email
        updated_since: tools.updated_since
        order_by: tools.order_by
        order_type: tools.order_type
        include: tools.include
      outputParameters:
      - type: object
        mapping: $.
    - name: create-ticket
      description: Create a ticket
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-tickets.createticket
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: bulk-delete-tickets
      description: Bulk delete tickets
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-tickets.bulkdeletetickets
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: bulk-update-tickets
      description: Bulk update tickets
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-tickets.bulkupdatetickets
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: merge-tickets
      description: Merge tickets
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-tickets.mergetickets
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-outbound-email-ticket
      description: Create an outbound email ticket
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-tickets.createoutboundemail
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: view-ticket
      description: View a ticket
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-tickets.getticket
      with:
        include: tools.include
      outputParameters:
      - type: object
        mapping: $.
    - name: update-ticket
      description: Update a ticket
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-tickets.updateticket
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-ticket
      description: Delete a ticket
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-tickets.deleteticket
      outputParameters:
      - type: object
        mapping: $.
    - name: list-associated-tickets
      description: List associated tickets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-tickets.listassociatedtickets
      outputParameters:
      - type: object
        mapping: $.
    - name: restore-deleted-ticket
      description: Restore a deleted ticket
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-tickets.restoreticket
      outputParameters:
      - type: object
        mapping: $.
    - name: watch-ticket
      description: Watch a ticket
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-tickets.watchticket
      outputParameters:
      - type: object
        mapping: $.
    - name: list-watchers-ticket
      description: List watchers on a ticket
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-tickets.listticketwatchers
      outputParameters:
      - type: object
        mapping: $.