naftiko: 1.0.0-alpha2 info: label: Knit Unified API — Departments description: 'Knit Unified API — Departments. 1 operations. Lead operation: List Departments. Self-contained Naftiko capability covering one Knit business surface.' tags: - Knit - Departments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: KNIT_API_KEY: KNIT_API_KEY capability: consumes: - type: http namespace: unified-departments baseUri: https://api.getknit.dev/v1 description: Knit Unified API — Departments business capability. Self-contained, no shared references. resources: - name: departments path: /departments operations: - name: listdepartments method: GET description: List Departments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: integration_id in: query type: string authentication: type: apikey key: Authorization value: '{{env.KNIT_API_KEY}}' placement: header exposes: - type: rest namespace: unified-departments-rest port: 8080 description: REST adapter for Knit Unified API — Departments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/departments name: departments description: REST surface for departments. operations: - method: GET name: listdepartments description: List Departments call: unified-departments.listdepartments with: integration_id: rest.integration_id outputParameters: - type: object mapping: $. - type: mcp namespace: unified-departments-mcp port: 9090 transport: http description: MCP adapter for Knit Unified API — Departments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-departments description: List Departments hints: readOnly: true destructive: false idempotent: true call: unified-departments.listdepartments with: integration_id: tools.integration_id outputParameters: - type: object mapping: $.