naftiko: 1.0.0-alpha2 info: label: Lean Payouts API — Destinations description: 'Lean Payouts — manage payout destinations (beneficiary records that receive funds).' tags: - Lean - Payouts - Destinations - Beneficiaries created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: LEAN_API_TOKEN: LEAN_API_TOKEN capability: consumes: - type: http namespace: payouts-destinations baseUri: https://api2.leantech.me description: Lean Payouts API — Destinations business capability backed by Lean Technologies APIs. resources: - name: payout-destinations path: /payouts/v1/payment/destinations operations: - name: createPayoutDestination method: POST description: Lean Create Payout Destination outputRawFormat: json inputParameters: - name: body in: body type: object required: true outputParameters: - name: result type: object value: $. - name: listPayoutDestinations method: GET description: Lean List Payout Destinations outputRawFormat: json inputParameters: [] outputParameters: - name: result type: object value: $. - name: payout-destination path: /payouts/v1/payment/destinations/{destination_id} operations: - name: getPayoutDestination method: GET description: Lean Get Payout Destination outputRawFormat: json inputParameters: - name: destination_id in: path type: string required: true outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: 'Bearer {{env.LEAN_API_TOKEN}}' placement: header exposes: - type: rest namespace: payouts-destinations-rest port: 8080 description: REST adapter for Lean Payouts API — Destinations. resources: - path: /v1/payouts/v1/payment/destinations name: payout-destinations operations: - method: POST name: createPayoutDestination description: Lean Create Payout Destination call: payouts-destinations.createPayoutDestination with: body: rest.body - method: GET name: listPayoutDestinations description: Lean List Payout Destinations call: payouts-destinations.listPayoutDestinations with: {} - path: /v1/payouts/v1/payment/destinations/{destination_id} name: payout-destination operations: - method: GET name: getPayoutDestination description: Lean Get Payout Destination call: payouts-destinations.getPayoutDestination with: destination_id: rest.path.destination_id - type: mcp namespace: payouts-destinations-mcp port: 9090 transport: http description: MCP adapter for Lean Payouts API — Destinations. tools: - name: lean-createpayoutdestination description: Lean Create Payout Destination hints: readOnly: false destructive: false idempotent: false call: payouts-destinations.createPayoutDestination with: body: tools.body - name: lean-listpayoutdestinations description: Lean List Payout Destinations hints: readOnly: true destructive: false idempotent: true call: payouts-destinations.listPayoutDestinations with: {} - name: lean-getpayoutdestination description: Lean Get Payout Destination hints: readOnly: true destructive: false idempotent: true call: payouts-destinations.getPayoutDestination with: destination_id: tools.destination_id