openapi: 3.0.0 info: title: LeanData Graph API description: >- Run LeanData One Time Routing and fetch routing graph metadata to power custom orchestration solutions and integrations. version: 1.0.0 servers: - url: https://api.leandata.com tags: - name: Retrieve Routing Graphs Information description: >

This section outlines the endpoints used to retrieve Routing Graphs information for building a custom orchestration experience. The endpoint returns information such as trigger node names, the edges in those trigger nodes, graph name, etc

- name: One Time Routing description: >

This section describes the endpoints used to trigger 1x Routing for creating a custom orchestration experience, as well as to retrieve the status of the resulting job. When invoked, the 1x Routing endpoint returns basic job metadata—including the jobId—which can be used to check the job’s status.

❗️ Important: The API does not validate FlowBuilder graphs before triggering routing. If you invoke 1x Routing to an invalid or misconfigured graph, the request will still be processed—but routing will fail silently. No error response will be returned from the API.
✅ To avoid unexpected behavior, please ensure the graph is valid and functioning as expected within the LeanData application before using it in API-triggered routing.

paths: /orchestration/v1/routing-graphs: get: tags: - Retrieve Routing Graphs Information summary: orchestration/v1/routing-graphs description: >

This endpoint retrieves a collection of configured routing graphs, allowing you to filter them by object type, deployment status, and name. This is useful for programmatically inspecting or listing the routing flows defined within your system.

Endpoint: GET /orchestration/v1/routing-graphs

Request Body Parameters

Response Body Parameters

The response will contain a graphs array, which is a collection of Graph Objects. Each Graph Object provides detailed information about a specific routing graph:

responses: '200': description: Successful response content: application/json: {} /orchestration/v1/one-time-routing: post: tags: - One Time Routing summary: orchestration/v1/one-time-routing description: >

Endpoint: POST https://api.leandata.com/orchestration/v1/one-time-routing

❗️ Important: The API does not validate FlowBuilder graphs before triggering routing. If you invoke 1x Routing to an invalid or misconfigured graph, the request will still be processed—but routing will fail silently. No error response will be returned from the API.
✅ To avoid unexpected behavior, please ensure the graph is valid and functioning as expected within the LeanData application before using it in API-triggered routing.

Headers


Request Body Parameters

Response Body Parameters

The response is a JSON string containing a result object, which provides details about the initiated one-time routing job:

requestBody: content: application/json: schema: type: object example: objectType: Lead condition: Id = '00Q5f000006KnPbEAK' graphName: Lead Routing Q2 2025 notificationsDisabled: false nodeType: Trigger edgeName: Lead is MQL allowDedupe: true respectSchedules: true responses: '200': description: Successful response content: application/json: {} /orchestration/v1/one-time-routing/:jobId: get: tags: - One Time Routing summary: orchestration/v1/one-time-routing/:jobId description: >

Endpoint: GET https://api.leandata.com/orchestration/v1/one-time-routing/:jobId

This endpoint is used to obtain the status of a One-Time Routing job.

💡 The :jobId path parameter should be replaced with the unique ID of the One-Time Routing job you want to read.

Headers


Request Body Parameters

responses: '200': description: Successful response content: application/json: {}