Lean Technologies · Capability

Lean Data API — Identity

Lean Data — retrieve the account-holder identity record for a linked entity or for a specific account.

Lean Data API — Identity is a Naftiko capability published by Lean Technologies, one of 19 capabilities the APIs.io network indexes for this provider. It bundles 2 operations across the GET method rooted at /v1/data/v2.

The capability includes 2 read-only operations. Lead operation: Lean Get Identity. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Lean, Data, and Identity.

Run with Naftiko LeanDataIdentity

What You Can Do

GET
Getidentity — Lean Get Identity
/v1/data/v2/identity
GET
Getaccountidentities — Lean Get Account Identities
/v1/data/v2/accounts/{account_id}/identities

MCP Tools

lean-getidentity

Lean Get Identity

read-only idempotent
lean-getaccountidentities

Lean Get Account Identities

read-only idempotent

Capability Spec

data-identity.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lean Data API — Identity
  description: 'Lean Data — retrieve the account-holder identity record for a linked entity or for a specific account.'
  tags:
  - Lean
  - Data
  - Identity
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    LEAN_API_TOKEN: LEAN_API_TOKEN
capability:
  consumes:
  - type: http
    namespace: data-identity
    baseUri: https://api2.leantech.me
    description: Lean Data API — Identity business capability backed by Lean Technologies APIs.
    resources:
    - name: identity
      path: /data/v2/identity
      operations:
      - name: getIdentity
        method: GET
        description: Lean Get Identity
        outputRawFormat: json
        inputParameters: []
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: account-identities
      path: /data/v2/accounts/{account_id}/identities
      operations:
      - name: getAccountIdentities
        method: GET
        description: Lean Get Account Identities
        outputRawFormat: json
        inputParameters:
        - name: account_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: data-identity-rest
    port: 8080
    description: REST adapter for Lean Data API — Identity.
    resources:
    - path: /v1/data/v2/identity
      name: identity
      operations:
      - method: GET
        name: getIdentity
        description: Lean Get Identity
        call: data-identity.getIdentity
        with: {}
    - path: /v1/data/v2/accounts/{account_id}/identities
      name: account-identities
      operations:
      - method: GET
        name: getAccountIdentities
        description: Lean Get Account Identities
        call: data-identity.getAccountIdentities
        with:
          account_id: rest.path.account_id
  - type: mcp
    namespace: data-identity-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lean Data API — Identity.
    tools:
    - name: lean-getidentity
      description: Lean Get Identity
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-identity.getIdentity
      with: {}
    - name: lean-getaccountidentities
      description: Lean Get Account Identities
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-identity.getAccountIdentities
      with:
        account_id: tools.account_id