naftiko: 1.0.0-alpha2 info: label: Interswitch Customer Insights API — Insights description: Permissioned access to customer demography, financial history, and financial-habit signals. tags: - Interswitch - Customer Insights - Credit Decisioning created: '2026-05-24' modified: '2026-05-24' binds: - namespace: env keys: INTERSWITCH_BEARER_TOKEN: INTERSWITCH_BEARER_TOKEN capability: consumes: - type: http namespace: customer-insights-insights baseUri: https://sandbox.interswitchng.com resources: - name: demography path: /insights/api/v1/customers/{customerId}/demography operations: - name: getCustomerDemography method: GET description: Get demographic record for a customer. outputRawFormat: json outputParameters: [{ name: result, type: object, value: $. }] inputParameters: - { name: customerId, in: path, type: string, required: true } - name: financial-history path: /insights/api/v1/customers/{customerId}/financial-history operations: - name: getFinancialHistory method: GET description: Get inflow / outflow history. outputRawFormat: json outputParameters: [{ name: result, type: object, value: $. }] inputParameters: - { name: customerId, in: path, type: string, required: true } - { name: months, in: query, type: integer, required: false } - name: financial-history-average path: /insights/api/v1/customers/{customerId}/financial-history/average operations: - name: getAverageFinancialHistory method: GET description: Get average financial-history metrics. outputRawFormat: json outputParameters: [{ name: result, type: object, value: $. }] inputParameters: - { name: customerId, in: path, type: string, required: true } - name: financial-habits path: /insights/api/v1/customers/{customerId}/financial-habits operations: - name: getFinancialHabits method: GET description: Get behavioral spending signals. outputRawFormat: json outputParameters: [{ name: result, type: object, value: $. }] inputParameters: - { name: customerId, in: path, type: string, required: true } authentication: type: apikey key: Authorization value: 'Bearer {{env.INTERSWITCH_BEARER_TOKEN}}' placement: header exposes: - type: mcp namespace: customer-insights-insights-mcp port: 9090 transport: http tools: - name: interswitch-get-customer-demography description: Get demographic record for a customer. hints: { readOnly: true, destructive: false, idempotent: true } call: customer-insights-insights.getCustomerDemography with: { customerId: tools.customerId } outputParameters: [{ type: object, mapping: $. }] - name: interswitch-get-financial-history description: Get inflow / outflow history. hints: { readOnly: true, destructive: false, idempotent: true } call: customer-insights-insights.getFinancialHistory with: { customerId: tools.customerId, months: tools.months } outputParameters: [{ type: object, mapping: $. }] - name: interswitch-get-average-financial-history description: Get average financial-history metrics. hints: { readOnly: true, destructive: false, idempotent: true } call: customer-insights-insights.getAverageFinancialHistory with: { customerId: tools.customerId } outputParameters: [{ type: object, mapping: $. }] - name: interswitch-get-financial-habits description: Get behavioral spending signals. hints: { readOnly: true, destructive: false, idempotent: true } call: customer-insights-insights.getFinancialHabits with: { customerId: tools.customerId } outputParameters: [{ type: object, mapping: $. }]