SWIFT · Capability

SWIFT SwiftRef API — LEIs

SWIFT SwiftRef API — LEIs. 3 operations. Lead operation: Get LEI Details. Self-contained Naftiko capability covering one Swift business surface.

Run with Naftiko SwiftLEIs

What You Can Do

GET
Getlei — Get LEI Details
/v1/v2/leis/{lei}
GET
Getbicforlei — Get BIC for LEI
/v1/v2/leis/{lei}/bic
GET
Validatelei — Validate LEI
/v1/v2/leis/{lei}/validity

MCP Tools

get-lei-details

Get LEI Details

read-only idempotent
get-bic-lei

Get BIC for LEI

read-only idempotent
validate-lei

Validate LEI

read-only idempotent

Capability Spec

swiftref-leis.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SWIFT SwiftRef API — LEIs
  description: 'SWIFT SwiftRef API — LEIs. 3 operations. Lead operation: Get LEI Details. Self-contained Naftiko capability
    covering one Swift business surface.'
  tags:
  - Swift
  - LEIs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SWIFT_API_KEY: SWIFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: swiftref-leis
    baseUri: https://api.swift.com/swiftrefdata
    description: SWIFT SwiftRef API — LEIs business capability. Self-contained, no shared references.
    resources:
    - name: v2-leis-lei
      path: /v2/leis/{lei}
      operations:
      - name: getlei
        method: GET
        description: Get LEI Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v2-leis-lei-bic
      path: /v2/leis/{lei}/bic
      operations:
      - name: getbicforlei
        method: GET
        description: Get BIC for LEI
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v2-leis-lei-validity
      path: /v2/leis/{lei}/validity
      operations:
      - name: validatelei
        method: GET
        description: Validate LEI
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.SWIFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: swiftref-leis-rest
    port: 8080
    description: REST adapter for SWIFT SwiftRef API — LEIs. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/leis/{lei}
      name: v2-leis-lei
      description: REST surface for v2-leis-lei.
      operations:
      - method: GET
        name: getlei
        description: Get LEI Details
        call: swiftref-leis.getlei
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/leis/{lei}/bic
      name: v2-leis-lei-bic
      description: REST surface for v2-leis-lei-bic.
      operations:
      - method: GET
        name: getbicforlei
        description: Get BIC for LEI
        call: swiftref-leis.getbicforlei
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/leis/{lei}/validity
      name: v2-leis-lei-validity
      description: REST surface for v2-leis-lei-validity.
      operations:
      - method: GET
        name: validatelei
        description: Validate LEI
        call: swiftref-leis.validatelei
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: swiftref-leis-mcp
    port: 9090
    transport: http
    description: MCP adapter for SWIFT SwiftRef API — LEIs. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-lei-details
      description: Get LEI Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: swiftref-leis.getlei
      outputParameters:
      - type: object
        mapping: $.
    - name: get-bic-lei
      description: Get BIC for LEI
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: swiftref-leis.getbicforlei
      outputParameters:
      - type: object
        mapping: $.
    - name: validate-lei
      description: Validate LEI
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: swiftref-leis.validatelei
      outputParameters:
      - type: object
        mapping: $.