Citizens Financial · Capability

Citizens Bank Accounts API — Accounts

Citizens Bank Accounts API — Accounts. 2 operations. Lead operation: Get customer accounts. Self-contained Naftiko capability covering one Citizens Financial business surface.

Run with Naftiko Citizens FinancialAccounts

What You Can Do

GET
Getaccounts — Get customer accounts
/v1/accounts
GET
Getaccountbyid — Get account details
/v1/accounts/{accountid}

MCP Tools

get-customer-accounts

Get customer accounts

read-only idempotent
get-account-details

Get account details

read-only idempotent

Capability Spec

citizens-bank-accounts-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Citizens Bank Accounts API — Accounts
  description: 'Citizens Bank Accounts API — Accounts. 2 operations. Lead operation: Get customer accounts. Self-contained
    Naftiko capability covering one Citizens Financial business surface.'
  tags:
  - Citizens Financial
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CITIZENS_FINANCIAL_API_KEY: CITIZENS_FINANCIAL_API_KEY
capability:
  consumes:
  - type: http
    namespace: citizens-bank-accounts-accounts
    baseUri: https://api.citizensbank.com
    description: Citizens Bank Accounts API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: getaccounts
        method: GET
        description: Get customer accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-accountId
      path: /accounts/{accountId}
      operations:
      - name: getaccountbyid
        method: GET
        description: Get account details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The unique account identifier
          required: true
    authentication:
      type: bearer
      token: '{{env.CITIZENS_FINANCIAL_API_KEY}}'
  exposes:
  - type: rest
    namespace: citizens-bank-accounts-accounts-rest
    port: 8080
    description: REST adapter for Citizens Bank Accounts 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: getaccounts
        description: Get customer accounts
        call: citizens-bank-accounts-accounts.getaccounts
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{accountid}
      name: accounts-accountid
      description: REST surface for accounts-accountId.
      operations:
      - method: GET
        name: getaccountbyid
        description: Get account details
        call: citizens-bank-accounts-accounts.getaccountbyid
        with:
          accountId: rest.accountId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: citizens-bank-accounts-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Citizens Bank Accounts API — Accounts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-customer-accounts
      description: Get customer accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: citizens-bank-accounts-accounts.getaccounts
      outputParameters:
      - type: object
        mapping: $.
    - name: get-account-details
      description: Get account details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: citizens-bank-accounts-accounts.getaccountbyid
      with:
        accountId: tools.accountId
      outputParameters:
      - type: object
        mapping: $.