naftiko: 1.0.0-alpha2 info: label: API Reference — subpackage_routines description: 'API Reference — subpackage_routines. 5 operations. Lead operation: List routines. Self-contained Naftiko capability covering one Flatfile business surface.' tags: - Flatfile - subpackage_routines created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FLATFILE_API_KEY: FLATFILE_API_KEY capability: consumes: - type: http namespace: flatfile-subpackage-routines baseUri: https://api.x.flatfile.com/v1 description: API Reference — subpackage_routines business capability. Self-contained, no shared references. resources: - name: routines path: /routines operations: - name: list method: GET description: List routines outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: runbookId in: query type: string required: true - name: Authorization in: header type: string description: Bearer authentication required: true - name: X-Disable-Hooks in: header type: string required: true - name: create method: POST description: Create a routine outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Bearer authentication required: true - name: X-Disable-Hooks in: header type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: routines-routineId path: /routines/{routineId} operations: - name: get method: GET description: Get a routine outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: routineId in: path type: string required: true - name: Authorization in: header type: string description: Bearer authentication required: true - name: X-Disable-Hooks in: header type: string required: true - name: update method: PATCH description: Update a routine outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: routineId in: path type: string required: true - name: Authorization in: header type: string description: Bearer authentication required: true - name: X-Disable-Hooks in: header type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete a routine outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: routineId in: path type: string required: true - name: Authorization in: header type: string description: Bearer authentication required: true - name: X-Disable-Hooks in: header type: string required: true authentication: type: bearer token: '{{env.FLATFILE_API_KEY}}' exposes: - type: rest namespace: flatfile-subpackage-routines-rest port: 8080 description: REST adapter for API Reference — subpackage_routines. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/routines name: routines description: REST surface for routines. operations: - method: GET name: list description: List routines call: flatfile-subpackage-routines.list with: runbookId: rest.runbookId Authorization: rest.Authorization X-Disable-Hooks: rest.X-Disable-Hooks outputParameters: - type: object mapping: $. - method: POST name: create description: Create a routine call: flatfile-subpackage-routines.create with: Authorization: rest.Authorization X-Disable-Hooks: rest.X-Disable-Hooks body: rest.body outputParameters: - type: object mapping: $. - path: /v1/routines/{routineid} name: routines-routineid description: REST surface for routines-routineId. operations: - method: GET name: get description: Get a routine call: flatfile-subpackage-routines.get with: routineId: rest.routineId Authorization: rest.Authorization X-Disable-Hooks: rest.X-Disable-Hooks outputParameters: - type: object mapping: $. - method: PATCH name: update description: Update a routine call: flatfile-subpackage-routines.update with: routineId: rest.routineId Authorization: rest.Authorization X-Disable-Hooks: rest.X-Disable-Hooks body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete a routine call: flatfile-subpackage-routines.delete with: routineId: rest.routineId Authorization: rest.Authorization X-Disable-Hooks: rest.X-Disable-Hooks outputParameters: - type: object mapping: $. - type: mcp namespace: flatfile-subpackage-routines-mcp port: 9090 transport: http description: MCP adapter for API Reference — subpackage_routines. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-routines description: List routines hints: readOnly: true destructive: false idempotent: true call: flatfile-subpackage-routines.list with: runbookId: tools.runbookId Authorization: tools.Authorization X-Disable-Hooks: tools.X-Disable-Hooks outputParameters: - type: object mapping: $. - name: create-routine description: Create a routine hints: readOnly: false destructive: false idempotent: false call: flatfile-subpackage-routines.create with: Authorization: tools.Authorization X-Disable-Hooks: tools.X-Disable-Hooks body: tools.body outputParameters: - type: object mapping: $. - name: get-routine description: Get a routine hints: readOnly: true destructive: false idempotent: true call: flatfile-subpackage-routines.get with: routineId: tools.routineId Authorization: tools.Authorization X-Disable-Hooks: tools.X-Disable-Hooks outputParameters: - type: object mapping: $. - name: update-routine description: Update a routine hints: readOnly: false destructive: false idempotent: true call: flatfile-subpackage-routines.update with: routineId: tools.routineId Authorization: tools.Authorization X-Disable-Hooks: tools.X-Disable-Hooks body: tools.body outputParameters: - type: object mapping: $. - name: delete-routine description: Delete a routine hints: readOnly: false destructive: true idempotent: true call: flatfile-subpackage-routines.delete with: routineId: tools.routineId Authorization: tools.Authorization X-Disable-Hooks: tools.X-Disable-Hooks outputParameters: - type: object mapping: $.