Lean Technologies · Capability

Lean Insights API — Income

Lean Insights — compute detected income streams over an entitys transaction history.

Lean Insights API — Income is a Naftiko capability published by Lean Technologies, one of 19 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the POST method rooted at /v1/insights/v2/income.

The capability includes 1 state-changing operation. Lead operation: Lean Compute Income. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Lean, Insights, and Income.

Run with Naftiko LeanInsightsIncome

What You Can Do

POST
Computeincome — Lean Compute Income
/v1/insights/v2/income

MCP Tools

lean-computeincome

Lean Compute Income

Capability Spec

insights-income.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lean Insights API — Income
  description: 'Lean Insights — compute detected income streams over an entitys transaction history.'
  tags:
  - Lean
  - Insights
  - Income
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    LEAN_API_TOKEN: LEAN_API_TOKEN
capability:
  consumes:
  - type: http
    namespace: insights-income
    baseUri: https://api2.leantech.me
    description: Lean Insights API — Income business capability backed by Lean Technologies APIs.
    resources:
    - name: income
      path: /insights/v2/income
      operations:
      - name: computeIncome
        method: POST
        description: Lean Compute Income
        outputRawFormat: json
        inputParameters:
        - name: body
          in: body
          type: object
          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: insights-income-rest
    port: 8080
    description: REST adapter for Lean Insights API — Income.
    resources:
    - path: /v1/insights/v2/income
      name: income
      operations:
      - method: POST
        name: computeIncome
        description: Lean Compute Income
        call: insights-income.computeIncome
        with:
          body: rest.body
  - type: mcp
    namespace: insights-income-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lean Insights API — Income.
    tools:
    - name: lean-computeincome
      description: Lean Compute Income
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: insights-income.computeIncome
      with:
        body: tools.body