naftiko: 1.0.0-alpha2 info: label: SWIFT SwiftRef API — IBANs description: 'SWIFT SwiftRef API — IBANs. 4 operations. Lead operation: Get BIC for IBAN National ID. Self-contained Naftiko capability covering one Swift business surface.' tags: - Swift - IBANs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SWIFT_API_KEY: SWIFT_API_KEY capability: consumes: - type: http namespace: swiftref-ibans baseUri: https://api.swift.com/swiftrefdata description: SWIFT SwiftRef API — IBANs business capability. Self-contained, no shared references. resources: - name: v2-iban_national_ids-iban_national_id-bic path: /v2/iban_national_ids/{iban_national_id}/bic operations: - name: getbicforibannationalid method: GET description: Get BIC for IBAN National ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: iban_national_id in: path type: string description: IBAN national ID component required: true - name: v2-ibans-iban path: /v2/ibans/{iban} operations: - name: getiban method: GET description: Get IBAN Details outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v2-ibans-iban-bic path: /v2/ibans/{iban}/bic operations: - name: getbicforiban method: GET description: Get BIC for IBAN outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v2-ibans-iban-validity path: /v2/ibans/{iban}/validity operations: - name: validateiban method: GET description: Validate IBAN outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SWIFT_API_KEY}}' exposes: - type: rest namespace: swiftref-ibans-rest port: 8080 description: REST adapter for SWIFT SwiftRef API — IBANs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/iban-national-ids/{iban-national-id}/bic name: v2-iban-national-ids-iban-national-id-bic description: REST surface for v2-iban_national_ids-iban_national_id-bic. operations: - method: GET name: getbicforibannationalid description: Get BIC for IBAN National ID call: swiftref-ibans.getbicforibannationalid with: iban_national_id: rest.iban_national_id outputParameters: - type: object mapping: $. - path: /v1/v2/ibans/{iban} name: v2-ibans-iban description: REST surface for v2-ibans-iban. operations: - method: GET name: getiban description: Get IBAN Details call: swiftref-ibans.getiban outputParameters: - type: object mapping: $. - path: /v1/v2/ibans/{iban}/bic name: v2-ibans-iban-bic description: REST surface for v2-ibans-iban-bic. operations: - method: GET name: getbicforiban description: Get BIC for IBAN call: swiftref-ibans.getbicforiban outputParameters: - type: object mapping: $. - path: /v1/v2/ibans/{iban}/validity name: v2-ibans-iban-validity description: REST surface for v2-ibans-iban-validity. operations: - method: GET name: validateiban description: Validate IBAN call: swiftref-ibans.validateiban outputParameters: - type: object mapping: $. - type: mcp namespace: swiftref-ibans-mcp port: 9090 transport: http description: MCP adapter for SWIFT SwiftRef API — IBANs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-bic-iban-national-id description: Get BIC for IBAN National ID hints: readOnly: true destructive: false idempotent: true call: swiftref-ibans.getbicforibannationalid with: iban_national_id: tools.iban_national_id outputParameters: - type: object mapping: $. - name: get-iban-details description: Get IBAN Details hints: readOnly: true destructive: false idempotent: true call: swiftref-ibans.getiban outputParameters: - type: object mapping: $. - name: get-bic-iban description: Get BIC for IBAN hints: readOnly: true destructive: false idempotent: true call: swiftref-ibans.getbicforiban outputParameters: - type: object mapping: $. - name: validate-iban description: Validate IBAN hints: readOnly: true destructive: false idempotent: true call: swiftref-ibans.validateiban outputParameters: - type: object mapping: $.