LeanData · Capability

LeanData Matching API — Records

LeanData Matching API. Real-time Salesforce-native matching of leads, contacts, and accounts via the managed package's Apex REST endpoint `/services/apexrest/LeanData/LeanDataAPI`. All matching operations are dispatched through the same path with a discriminating apiType in the request body. 8 matching operations.

LeanData Matching API — Records is a Naftiko capability published by LeanData, one of 5 capabilities the APIs.io network indexes for this provider.

Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include LeanData, Matching, Lead Matching, Contact Matching, and Account Matching.

Run with Naftiko LeanDataMatchingLead MatchingContact MatchingAccount MatchingDeduplicationSalesforce

Capability Spec

matching-records.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LeanData Matching API — Records
  description: >-
    LeanData Matching API. Real-time Salesforce-native matching of leads,
    contacts, and accounts via the managed package's Apex REST endpoint
    `/services/apexrest/LeanData/LeanDataAPI`. All matching operations are
    dispatched through the same path with a discriminating apiType in the
    request body. 8 matching operations.
  tags:
    - LeanData
    - Matching
    - Lead Matching
    - Contact Matching
    - Account Matching
    - Deduplication
    - Salesforce
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
  - namespace: env
    keys:
      LEANDATA_SF_INSTANCE_URL: LEANDATA_SF_INSTANCE_URL
      LEANDATA_SF_ACCESS_TOKEN: LEANDATA_SF_ACCESS_TOKEN
capability:
  consumes:
    - type: http
      namespace: leandata-matching
      baseUri: ${LEANDATA_SF_INSTANCE_URL}
      description: LeanData Matching API — Salesforce Apex REST dispatch endpoint.
      headers:
        Authorization: Bearer ${LEANDATA_SF_ACCESS_TOKEN}
        Content-Type: application/json
      resources:
        - name: leandata-api
          path: /services/apexrest/LeanData/LeanDataAPI
          operations:
            - name: matchedLead
              method: POST
              description: Find the best-matching Lead for an external record.
              outputRawFormat: json
              inputParameters:
                - name: body
                  in: body
                  type: object
                  required: true
            - name: duplicateLead
              method: POST
              description: Detect a duplicate Lead.
              outputRawFormat: json
            - name: allDuplicateLeads
              method: POST
              description: Return all duplicate Leads for an input record.
              outputRawFormat: json
            - name: allRelatedLeads
              method: POST
              description: Return all Leads related to a given account or contact.
              outputRawFormat: json
            - name: duplicateContact
              method: POST
              description: Detect a duplicate Contact.
              outputRawFormat: json
            - name: allDuplicateContacts
              method: POST
              description: Return all duplicate Contacts for an input record.
              outputRawFormat: json
            - name: matchedAccount
              method: POST
              description: Find the best-matching Account for an external record.
              outputRawFormat: json
            - name: allRelatedAccounts
              method: POST
              description: Return all related Accounts for an input record.
              outputRawFormat: json