BNY Mellon · Capability

BNY Mellon Treasury Services API — Accounts

BNY Mellon Treasury Services API — Accounts. 2 operations. Lead operation: List Accounts. Self-contained Naftiko capability covering one Bank Of New York Mellon business surface.

Run with Naftiko Bank Of New York MellonAccounts

What You Can Do

GET
Listaccounts — List Accounts
/v1/accounts
GET
Getaccount — Get Account
/v1/accounts/{accountid}

MCP Tools

list-accounts

List Accounts

read-only idempotent
get-account

Get Account

read-only idempotent

Capability Spec

bny-mellon-treasury-services-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: BNY Mellon Treasury Services API — Accounts
  description: 'BNY Mellon Treasury Services API — Accounts. 2 operations. Lead operation: List Accounts. Self-contained Naftiko
    capability covering one Bank Of New York Mellon business surface.'
  tags:
  - Bank Of New York Mellon
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BANK_OF_NEW_YORK_MELLON_API_KEY: BANK_OF_NEW_YORK_MELLON_API_KEY
capability:
  consumes:
  - type: http
    namespace: bny-mellon-treasury-services-accounts
    baseUri: https://api.bnymellon.com/treasury/v4
    description: BNY Mellon Treasury Services API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: listaccounts
        method: GET
        description: List Accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: currency
          in: query
          type: string
          description: Filter accounts by currency (ISO 4217)
        - name: accountType
          in: query
          type: string
          description: Filter by account type
    - name: accounts-accountId
      path: /accounts/{accountId}
      operations:
      - name: getaccount
        method: GET
        description: Get Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: Account identifier
          required: true
    authentication:
      type: bearer
      token: '{{env.BANK_OF_NEW_YORK_MELLON_API_KEY}}'
  exposes:
  - type: rest
    namespace: bny-mellon-treasury-services-accounts-rest
    port: 8080
    description: REST adapter for BNY Mellon Treasury Services API — Accounts. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/accounts
      name: accounts
      description: REST surface for accounts.
      operations:
      - method: GET
        name: listaccounts
        description: List Accounts
        call: bny-mellon-treasury-services-accounts.listaccounts
        with:
          currency: rest.currency
          accountType: rest.accountType
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{accountid}
      name: accounts-accountid
      description: REST surface for accounts-accountId.
      operations:
      - method: GET
        name: getaccount
        description: Get Account
        call: bny-mellon-treasury-services-accounts.getaccount
        with:
          accountId: rest.accountId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bny-mellon-treasury-services-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for BNY Mellon Treasury Services API — Accounts. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-accounts
      description: List Accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bny-mellon-treasury-services-accounts.listaccounts
      with:
        currency: tools.currency
        accountType: tools.accountType
      outputParameters:
      - type: object
        mapping: $.
    - name: get-account
      description: Get Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bny-mellon-treasury-services-accounts.getaccount
      with:
        accountId: tools.accountId
      outputParameters:
      - type: object
        mapping: $.