naftiko: 1.0.0-alpha2 info: label: Lithic Developer API — Account description: 'Lithic Developer API — Account. 5 operations. Lead operation: List accounts. Self-contained Naftiko capability covering one Lithic business surface.' tags: - Lithic - Account created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LITHIC_API_KEY: LITHIC_API_KEY capability: consumes: - type: http namespace: lithic-account baseUri: https://sandbox.lithic.com description: Lithic Developer API — Account business capability. Self-contained, no shared references. resources: - name: v1-accounts path: /v1/accounts operations: - name: getaccounts method: GET description: List accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-accounts-account_token path: /v1/accounts/{account_token} operations: - name: getaccountbytoken method: GET description: Get account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: patchaccountbytoken method: PATCH description: Update account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-accounts-account_token-signals path: /v1/accounts/{account_token}/signals operations: - name: getaccountsignals method: GET description: Fetch account signals outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: The token of the account to fetch signals for. required: true - name: v1-accounts-account_token-spend_limits path: /v1/accounts/{account_token}/spend_limits operations: - name: getaccountspendlimits method: GET description: Get account's available spend limits outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.LITHIC_API_KEY}}' placement: header exposes: - type: rest namespace: lithic-account-rest port: 8080 description: REST adapter for Lithic Developer API — Account. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/accounts name: v1-accounts description: REST surface for v1-accounts. operations: - method: GET name: getaccounts description: List accounts call: lithic-account.getaccounts outputParameters: - type: object mapping: $. - path: /v1/v1/accounts/{account-token} name: v1-accounts-account-token description: REST surface for v1-accounts-account_token. operations: - method: GET name: getaccountbytoken description: Get account call: lithic-account.getaccountbytoken outputParameters: - type: object mapping: $. - method: PATCH name: patchaccountbytoken description: Update account call: lithic-account.patchaccountbytoken with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/accounts/{account-token}/signals name: v1-accounts-account-token-signals description: REST surface for v1-accounts-account_token-signals. operations: - method: GET name: getaccountsignals description: Fetch account signals call: lithic-account.getaccountsignals with: account_token: rest.account_token outputParameters: - type: object mapping: $. - path: /v1/v1/accounts/{account-token}/spend-limits name: v1-accounts-account-token-spend-limits description: REST surface for v1-accounts-account_token-spend_limits. operations: - method: GET name: getaccountspendlimits description: Get account's available spend limits call: lithic-account.getaccountspendlimits outputParameters: - type: object mapping: $. - type: mcp namespace: lithic-account-mcp port: 9090 transport: http description: MCP adapter for Lithic Developer API — Account. 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: lithic-account.getaccounts outputParameters: - type: object mapping: $. - name: get-account description: Get account hints: readOnly: true destructive: false idempotent: true call: lithic-account.getaccountbytoken outputParameters: - type: object mapping: $. - name: update-account description: Update account hints: readOnly: false destructive: false idempotent: true call: lithic-account.patchaccountbytoken with: body: tools.body outputParameters: - type: object mapping: $. - name: fetch-account-signals description: Fetch account signals hints: readOnly: true destructive: false idempotent: true call: lithic-account.getaccountsignals with: account_token: tools.account_token outputParameters: - type: object mapping: $. - name: get-account-s-available-spend-limits description: Get account's available spend limits hints: readOnly: true destructive: false idempotent: true call: lithic-account.getaccountspendlimits outputParameters: - type: object mapping: $.