LeanData Matching API

The Matching API from LeanData — 1 operation(s) for matching.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /services/apexrest/LeanData/LeanDataAPI Run one-time routing on records via a graph · One Time Routing #
Ask an LLM
“How do I run one-time routing in LeanData for existing Salesforce records that match a SOQL condition?”
“Can I turn off notifications when I run a one-time routing job?”
Tell an agent
Run one-time routing on my Leads that match a SOQL condition through a named LeanData graph.
Route all Accounts with a matching SOQL filter through a graph once, with notifications disabled.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/leandata:leandata-matching-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

leandata-matching-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LeanData and Round Robin Matching API
  description: Real-time Salesforce-native matching and routing via the LeanData managed package Apex REST endpoint. Includes lead/contact/account matching, duplicate detection, related-record lookups, and round-robin assignment.
  version: 1.0.0
servers:
- url: https://yourinstance.my.salesforce.com
tags:
- name: Matching
paths:
  /services/apexrest/LeanData/LeanDataAPI:
    post:
      tags:
      - Matching
      summary: One Time Routing
      description: 'Purpose: Runs one-time routing via a specified graph on a set of standard objects (Lead, Contact, Account, Opportunity, Case) based on SOQL query


        Required Body Params:


        @param ''requesterName'' Name of the API caller


        @param ''apiType'' Type of API call


        @param ''version'' LeanData API version (should be 2)


        @param ''objectType'' Type of object to route


        @param ''condition'' SOQL condition to query i.e. Title = ''CEO''


        @param ''graphName'' Name of the graph to use for 1x Routing


        @param ''notificationsDisabled'' Disables all notifications from 1x Routing


        @param ''nodeType'' ''Trigger'' or ''Update Trigger'' to enter from Insert Or Update Trigger Nodes respectively


        @param ''edgeName'' Name of edge from Trigger Node e.g. ''Lead is MQL''


        Optional Body Params:


        @param ''allowDedupe'' Flag to allow deduplication. Value will by false by default


        @param ''businessUnitId'' Id of the specific business unit graph to route the object through. Value will by null by default


        @param ''orderBy'' sort records that are found from SOQL condition (i.e. "CreatedDate DESC")


        @param ''queryLimit'' limit the records found from SOQL condition


        @param ''respectSchedules'' Route records only to available users


        Available in version 1.500+ of LeanData'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                requesterName: LeanData
                apiType: routing
                operation: oneTime
                version: '2'
                objectType: Lead
                condition: Title ='CEO'
                graphName: Test Routing Api
                notificationsDisabled: false
                sendEmail: true
                nodeType: Update Trigger
                edgeName: Lead is MQL
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
        example: Bearer {{sessionid}}
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: postServicesApexrestLeanDataLeanDataAPI
      x-operation-id-source: derived