freshworks · Capability

Freshworks Freshteam API — Time Off

Freshworks Freshteam API — Time Off. 3 operations. Lead operation: List all time-off types. Self-contained Naftiko capability covering one Freshworks business surface.

Run with Naftiko FreshworksTime Off

What You Can Do

GET
Listtimeofftypes — List all time-off types
/v1/time-off-types
GET
Listtimeoffrequests — List all time-off requests
/v1/time-offs
POST
Createtimeoffrequest — Create a time-off request
/v1/time-offs

MCP Tools

list-all-time-off-types

List all time-off types

read-only idempotent
list-all-time-off-requests

List all time-off requests

read-only idempotent
create-time-off-request

Create a time-off request

Capability Spec

freshteam-time-off.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Freshworks Freshteam API — Time Off
  description: 'Freshworks Freshteam API — Time Off. 3 operations. Lead operation: List all time-off types. Self-contained
    Naftiko capability covering one Freshworks business surface.'
  tags:
  - Freshworks
  - Time Off
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FRESHWORKS_API_KEY: FRESHWORKS_API_KEY
capability:
  consumes:
  - type: http
    namespace: freshteam-time-off
    baseUri: https://{domain}.freshteam.com/api
    description: Freshworks Freshteam API — Time Off business capability. Self-contained, no shared references.
    resources:
    - name: time_off_types
      path: /time_off_types
      operations:
      - name: listtimeofftypes
        method: GET
        description: List all time-off types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: time_offs
      path: /time_offs
      operations:
      - name: listtimeoffrequests
        method: GET
        description: List all time-off requests
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_id
          in: query
          type: integer
          description: Filter by employee user ID.
        - name: status
          in: query
          type: string
          description: Filter by request status.
      - name: createtimeoffrequest
        method: POST
        description: Create a time-off request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FRESHWORKS_API_KEY}}'
  exposes:
  - type: rest
    namespace: freshteam-time-off-rest
    port: 8080
    description: REST adapter for Freshworks Freshteam API — Time Off. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/time-off-types
      name: time-off-types
      description: REST surface for time_off_types.
      operations:
      - method: GET
        name: listtimeofftypes
        description: List all time-off types
        call: freshteam-time-off.listtimeofftypes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/time-offs
      name: time-offs
      description: REST surface for time_offs.
      operations:
      - method: GET
        name: listtimeoffrequests
        description: List all time-off requests
        call: freshteam-time-off.listtimeoffrequests
        with:
          user_id: rest.user_id
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtimeoffrequest
        description: Create a time-off request
        call: freshteam-time-off.createtimeoffrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: freshteam-time-off-mcp
    port: 9090
    transport: http
    description: MCP adapter for Freshworks Freshteam API — Time Off. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-time-off-types
      description: List all time-off types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: freshteam-time-off.listtimeofftypes
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-time-off-requests
      description: List all time-off requests
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: freshteam-time-off.listtimeoffrequests
      with:
        user_id: tools.user_id
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: create-time-off-request
      description: Create a time-off request
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: freshteam-time-off.createtimeoffrequest
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.