Even Financial Analytics API
### Introduction Welcome to Engine by MoneyLion's Integration Guide for our Supply Analytics data product, which provides funnel, payout and client tag data on specific leads and lead segments to better improve your monetization, consumer experience and efficiency of user acquisition. Refer to [Developer Center](https://engine.tech/developer-center/loans-savings-second-look-marketplace/reporting-options-for-channel-partners/channel-partner-reporting-analytics-api-1) for detailed information on how to use this API. Supply Analytics offers three different reporting endpoints optimized for streaming time series datasets out of the Engine by MoneyLion API and into your system via periodic polling, as well as an endpoint to obtain a snapshot of all information regarding a single lead. This document contains everything needed to understand and integrate with all 4 endpoints offered. ### API Versions This document describes version 3 of the Supply Analytics API. The previous version available to partners is referred to as version 1. Version 2 was an internal release. All HTTP requests for this version must include header `API-Version: 2025-04-01`. ### API Endpoints We currently offer the following reporting endpoints providing real time insights into the funnel from user acquisition through conversion: 1. LeadEvents: This endpoint tracks the lead funnel’s journey. With the Lead Events API, you can pull KPI related data for your funnel, measure conversions, and iterate so that you can meet your business goals. 2. LeadPayouts: This endpoint tracks payout by conversion on a per-lead basis. 3. LeadClientTags: This endpoint is used to check and confirm which client tags (ie. subID, clickID, or trafficsource) you have appended to each lead (unique Engine by MoneyLion generated leadUuid). It provides better customer segmentation and attribution by returning your supplied client-tags (key/value) pairs associated with a lead. It's explained with examples in depth in the "Get lead client tags endpoint" section. The above endpoints can be used to stream information into your system and will be referred to as streaming endpoints. Additionally, we have the following endpoint to access an on-demand snapshot of lead information: 4. LeadsInfo: This endpoint provides a combined snapshot of information about a single lead — all of its events, payouts and client tags in a single request. ### Basic Request to Supply Analytics API Every request to the Supply Analytics API streaming endpoints will return a JSON object with the following properties: - `data` is the array of objects that should be analyzed / loaded into your database. - `nextUrl` is the URL that should be persisted and used for the next request. It will include a `paginationToken`. - `shouldContinuePolling` is a boolean which signals if calling `nextUrl` will have published data available. - `paginationToken` is an opaque cursor that identifies the end of the current page and is used for the next request. It is already included in `nextUrl` and also provided separately for convenience. Events from financial institutions or other external systems may not be shared with Engine by MoneyLion for hours or days after they occur; using `paginationToken` ensures that backfilled records are not missed. A response contains all available data subject to the response size limit and any applied filters (such as `untilTimestamp`). Requesting a URL with a `sinceTimestamp` that is less than five minutes old will return an error, as it can take a few minutes to prepare the response. We suggest polling hourly as a starting point, but as long as you follow shouldContinuePolling, you can poll at any interval (>5 minutes). For convenience, we provide a `shouldContinuePolling` flag to indicate whether you should continue to poll the Supply Analytics endpoint. If `true`, continue with the `nextUrl`. If not, no further data is currently available. ``` curl -X GET \ 'https://api.engine.tech/supplyAnalytics/leadEvents?sinceTimestamp=2019-08-24T14%3A15%3A22Z' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}' \ -H 'API-Version: 2025-04-01' ``` Since `paginationToken` is initially not known, the initial request may specify the `sinceTimestamp` parameter. In the absence of both of them, the endpoint will start with the oldest record in the system. The `nextUrl` from response will only include `paginationToken`. ### Developer's Note About Time Zones Timestamps without an explicit timezone (timezones missing a suffix of `Z`, for example) are interpreted as UTC. However, we recommend passing an explicit timezone offset of Z in the timestamp query string parameter. All timestamps in responses, whether in the event as a field, or in the `nextUrl`, are UTC. ### Developer's Note About Flexible JSON Objects Engine by MoneyLion's goal is to enrich the data provided by the Supply Analytics endpoint over time to improve your insight and analytical abilities. Therefore, it is recommended that any integration or initial setup be created with the future possibility of additional data fields in mind. These will take the form of additional JSON keys. We'd recommend that your integration remain compatible if there are additional JSON key-values present. This will allow new rollouts and improvements to the supply analytics endpoint to happen as smoothly as possible. ### Backfilling When backfilling, the `sinceTimestamp` of your initial request URL should be to your starting point. You should request each subsequent URL in succession until you're caught up. You can use `untilTimestamp` to define the end time of backfill windows. ### Resources Partners can contact their assigned Engine by MoneyLion Partner Manager or partnersupport@engine.tech for help.
Documentation
Specifications
Other Resources
openapi: 3.0.3
info:
title: Engine by MoneyLion Analytics API
version: 1.106.0
termsOfService: https://engine.tech/about/legal#terms
contact:
name: API Support
url: https://engine.tech/docs
email: help@engine.tech
description: "### Introduction\n\nWelcome to Engine by MoneyLion's Integration Guide for our Supply Analytics data product, which provides funnel, payout and client tag data on specific leads and lead segments to better improve your monetization, consumer experience and efficiency of user acquisition.\n\nRefer to [Developer Center](https://engine.tech/developer-center/loans-savings-second-look-marketplace/reporting-options-for-channel-partners/channel-partner-reporting-analytics-api-1) for detailed information on how to use this API.\n\nSupply Analytics offers three different reporting endpoints optimized for streaming time series datasets out of the Engine by MoneyLion API and into your system via periodic polling, as well as an endpoint to obtain a snapshot of all information regarding a single lead. This document contains everything needed to understand and integrate with all 4 endpoints offered.\n### API Versions\nThis document describes version 3 of the Supply Analytics API. The previous version available to partners is referred to as version 1. Version 2 was an internal release.\nAll HTTP requests for this version must include header `API-Version: 2025-04-01`.\n\n### API Endpoints\n\nWe currently offer the following reporting endpoints providing real time insights into the funnel from user acquisition through conversion:\n\n1. LeadEvents: This endpoint tracks the lead funnel’s journey. With the Lead Events API, you can pull KPI related data for your funnel, measure conversions, and iterate so that you can meet your business goals.\n\n2. LeadPayouts: This endpoint tracks payout by conversion on a per-lead basis.\n\n3. LeadClientTags: This endpoint is used to check and confirm which client tags (ie. subID, clickID, or trafficsource) you have appended to each lead (unique Engine by MoneyLion generated leadUuid). It provides better customer segmentation and attribution by returning your supplied client-tags (key/value) pairs associated with a lead. It's explained with examples in depth in the \"Get lead client tags endpoint\" section.\n\nThe above endpoints can be used to stream information into your system and will be referred to as streaming endpoints. Additionally, we have the following endpoint to access an on-demand snapshot of lead information:\n\n4. LeadsInfo: This endpoint provides a combined snapshot of information about a single lead — all of its events, payouts and client tags in a single request.\n\n### Basic Request to Supply Analytics API\n\nEvery request to the Supply Analytics API streaming endpoints will return a JSON object with the following properties:\n\n- `data` is the array of objects that should be analyzed / loaded into your\n database.\n\n- `nextUrl` is the URL that should be persisted and used for the next\n request. It will include a `paginationToken`.\n\n- `shouldContinuePolling` is a boolean which signals if calling `nextUrl`\n will have published data available.\n\n- `paginationToken` is an opaque cursor that identifies the end of the\n current page and is used for the next request. It is already included in\n `nextUrl` and also provided separately for convenience.\n\n\nEvents from financial institutions or other external systems may not be shared with Engine by MoneyLion for hours or days after they occur; using `paginationToken` ensures that backfilled records are not missed.\n\nA response contains all available data subject to the response size limit and any applied filters (such as `untilTimestamp`). Requesting a URL with a `sinceTimestamp` that is less than five minutes old will return an error, as it can take a few minutes to prepare the response. We suggest polling hourly as a starting point, but as long as you follow shouldContinuePolling, you can poll at any interval (>5 minutes). For convenience, we provide a `shouldContinuePolling` flag to indicate whether you should continue to poll the Supply Analytics endpoint. If `true`, continue with the `nextUrl`. If not, no further data is currently available.\n``` curl -X GET \\\n 'https://api.engine.tech/supplyAnalytics/leadEvents?sinceTimestamp=2019-08-24T14%3A15%3A22Z' \\\n -H 'Accept: application/json' \\\n -H 'Authorization: Bearer {access-token}' \\\n -H 'API-Version: 2025-04-01'\n```\nSince `paginationToken` is initially not known, the initial request may specify the `sinceTimestamp` parameter. In the absence of both of them, the endpoint will start with the oldest record in the system. The `nextUrl` from response will only include `paginationToken`.\n### Developer's Note About Time Zones\nTimestamps without an explicit timezone (timezones missing a suffix of `Z`, for example) are interpreted as UTC. However, we recommend passing an explicit timezone offset of Z in the timestamp query string parameter. All timestamps in responses, whether in the event as a field, or in the `nextUrl`, are UTC.\n### Developer's Note About Flexible JSON Objects\nEngine by MoneyLion's goal is to enrich the data provided by the Supply Analytics endpoint over time to improve your insight and analytical abilities. Therefore, it is recommended that any integration or initial setup be created with the future possibility of additional data fields in mind. These will take the form of additional JSON keys. We'd recommend that your integration remain compatible if there are additional JSON key-values present. This will allow new rollouts and improvements to the supply analytics endpoint to happen as smoothly as possible.\n### Backfilling\nWhen backfilling, the `sinceTimestamp` of your initial request URL should be to your starting point. You should request each subsequent URL in succession until you're caught up. You can use `untilTimestamp` to define the end time of backfill windows.\n\n### Resources\nPartners can contact their assigned Engine by MoneyLion Partner Manager or partnersupport@engine.tech for help.\n"
servers:
- url: https://api.engine.tech
tags:
- name: Analytics
description: "### Introduction\n\nWelcome to Engine by MoneyLion's Integration Guide for our Supply Analytics data product, which provides funnel, payout and client tag data on specific leads and lead segments to better improve your monetization, consumer experience and efficiency of user acquisition.\n\nRefer to [Developer Center](https://engine.tech/developer-center/loans-savings-second-look-marketplace/reporting-options-for-channel-partners/channel-partner-reporting-analytics-api-1) for detailed information on how to use this API.\n\nSupply Analytics offers three different reporting endpoints optimized for streaming time series datasets out of the Engine by MoneyLion API and into your system via periodic polling, as well as an endpoint to obtain a snapshot of all information regarding a single lead. This document contains everything needed to understand and integrate with all 4 endpoints offered.\n### API Versions\nThis document describes version 3 of the Supply Analytics API. The previous version available to partners is referred to as version 1. Version 2 was an internal release.\nAll HTTP requests for this version must include header `API-Version: 2025-04-01`.\n\n### API Endpoints\n\nWe currently offer the following reporting endpoints providing real time insights into the funnel from user acquisition through conversion:\n\n1. LeadEvents: This endpoint tracks the lead funnel’s journey. With the Lead Events API, you can pull KPI related data for your funnel, measure conversions, and iterate so that you can meet your business goals.\n\n2. LeadPayouts: This endpoint tracks payout by conversion on a per-lead basis.\n\n3. LeadClientTags: This endpoint is used to check and confirm which client tags (ie. subID, clickID, or trafficsource) you have appended to each lead (unique Engine by MoneyLion generated leadUuid). It provides better customer segmentation and attribution by returning your supplied client-tags (key/value) pairs associated with a lead. It's explained with examples in depth in the \"Get lead client tags endpoint\" section.\n\nThe above endpoints can be used to stream information into your system and will be referred to as streaming endpoints. Additionally, we have the following endpoint to access an on-demand snapshot of lead information:\n\n4. LeadsInfo: This endpoint provides a combined snapshot of information about a single lead — all of its events, payouts and client tags in a single request.\n\n### Basic Request to Supply Analytics API\n\nEvery request to the Supply Analytics API streaming endpoints will return a JSON object with the following properties:\n\n- `data` is the array of objects that should be analyzed / loaded into your\n database.\n\n- `nextUrl` is the URL that should be persisted and used for the next\n request. It will include a `paginationToken`.\n\n- `shouldContinuePolling` is a boolean which signals if calling `nextUrl`\n will have published data available.\n\n- `paginationToken` is an opaque cursor that identifies the end of the\n current page and is used for the next request. It is already included in\n `nextUrl` and also provided separately for convenience.\n\n\nEvents from financial institutions or other external systems may not be shared with Engine by MoneyLion for hours or days after they occur; using `paginationToken` ensures that backfilled records are not missed.\n\nA response contains all available data subject to the response size limit and any applied filters (such as `untilTimestamp`). Requesting a URL with a `sinceTimestamp` that is less than five minutes old will return an error, as it can take a few minutes to prepare the response. We suggest polling hourly as a starting point, but as long as you follow shouldContinuePolling, you can poll at any interval (>5 minutes). For convenience, we provide a `shouldContinuePolling` flag to indicate whether you should continue to poll the Supply Analytics endpoint. If `true`, continue with the `nextUrl`. If not, no further data is currently available.\n``` curl -X GET \\\n 'https://api.engine.tech/supplyAnalytics/leadEvents?sinceTimestamp=2019-08-24T14%3A15%3A22Z' \\\n -H 'Accept: application/json' \\\n -H 'Authorization: Bearer {access-token}' \\\n -H 'API-Version: 2025-04-01'\n```\nSince `paginationToken` is initially not known, the initial request may specify the `sinceTimestamp` parameter. In the absence of both of them, the endpoint will start with the oldest record in the system. The `nextUrl` from response will only include `paginationToken`.\n### Developer's Note About Time Zones\nTimestamps without an explicit timezone (timezones missing a suffix of `Z`, for example) are interpreted as UTC. However, we recommend passing an explicit timezone offset of Z in the timestamp query string parameter. All timestamps in responses, whether in the event as a field, or in the `nextUrl`, are UTC.\n### Developer's Note About Flexible JSON Objects\nEngine by MoneyLion's goal is to enrich the data provided by the Supply Analytics endpoint over time to improve your insight and analytical abilities. Therefore, it is recommended that any integration or initial setup be created with the future possibility of additional data fields in mind. These will take the form of additional JSON keys. We'd recommend that your integration remain compatible if there are additional JSON key-values present. This will allow new rollouts and improvements to the supply analytics endpoint to happen as smoothly as possible.\n### Backfilling\nWhen backfilling, the `sinceTimestamp` of your initial request URL should be to your starting point. You should request each subsequent URL in succession until you're caught up. You can use `untilTimestamp` to define the end time of backfill windows.\n\n### Resources\nPartners can contact their assigned Engine by MoneyLion Partner Manager or partnersupport@engine.tech for help.\n"
paths:
/supplyAnalytics/leadEvents:
get:
x-lint-skip:
- index-endpoint-has-limit
x-implemented-by:
service: supply-analytics
path: /leadEvents
summary: Get lead events
description: "### What is the Lead Events API used for?\n\nWith the Lead Events API, you can pull KPI related data for your funnel, measure conversions, and iterate so that you can meet your business goals.\n\nThe endpoint returns events associated with each lead. The event type is indicated by the eventType property. Each event will also include metadata applicable to the eventType. It allows easy consumption of the events into your database so that you can integrate it into your BI framework and compare it alongside data from other systems to assess performance holistically.\n\n### How does it work?\n\nThe endpoint is cursor based. You can consume batches of events for the product tied to your sub account. All that is required is a bearer token and previous `paginationToken` or `sinceTimestamp`. The endpoint will respond with all of the events that have happened from that point forward subject to optional `untilTimestamp` parameter and page size limit. It will also include a pointer to the next page (`paginationToken`) to be used for a subsequent call. This endpoint should be polled hourly to fetch new events.\n\nFor convenience, we provide a `shouldContinuePolling` flag to signal if data has been published at the location of the `nextUrl`. Since the endpoint will return as much data as it can, unless there is more data that can fit in a single response, this flag will usually be false as all available data has been returned.\n\nThe endpoint is designed for paging forward through data in order to populate your local database. By relying on the `nextUrl` parameter provided in the preceding call's response, we can guarantee a) you will see no gaps, and b) you will see no duplicates.\n\nIf constructing the url manually, subsequent requests should use `paginationToken` from the last response and omit `sinceTimestamp`.\n\nThis endpoint should be polled no more frequently than every 5 minutes, we recommend hourly. Data for this endpoint is made available with a 5 minute SLA.\n\nIf the current time is '2020-01-01T00:15:00Z' UTC, making a request to this endpoint with the timestamp set to '2020-01-01T00:14:00Z' will error because of the 5 minute SLA. Making a request with a timestamp of '2020-01-01T00:09:00Z' however, will succeed.\n\n### Event Definitions\n\nCommon Attributes\n\n<table>\n <thead>\n <tr>\n <th>Attribute Name</th>\n <th>Type</th>\n <th>Format</th>\n <th>Enum</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>eventType</td>\n <td>string</td>\n <td> </td>\n <td>leadCreated appSubmitted apiApproved apiRejected offerClicked affiliateOfferClicked applied approved listed opened funded conversation lenderQualifiedLead</td>\n </tr>\n <tr>\n <td>leadUuid</td>\n <td>string</td>\n <td>uuid</td>\n <td> </td>\n </tr>\n <tr>\n <td>leadCreatedAt</td>\n <td>string</td>\n <td>date-time</td>\n <td> </td>\n </tr>\n <tr>\n <td>eventCreatedAt</td>\n <td>string</td>\n <td>date-time</td>\n <td> </td>\n </tr>\n <tr>\n <td>eventDeletedAt</td>\n <td>string</td>\n <td>date-time</td>\n <td> </td>\n </tr>\n <tr>\n <td>amountInCents</td>\n <td>double</td>\n <td> </td>\n <td> </td>\n </tr>\n <tr>\n <td>supplySubAccountName</td>\n <td>string</td>\n <td> </td>\n <td> </td>\n </tr>\n <tr>\n <td>supplySubAccountUuid</td>\n <td>string</td>\n <td>uuid</td>\n <td> </td>\n </tr>\n <tr>\n <td>financialInstitutionName</td>\n <td>string</td>\n <td> </td>\n <td> </td>\n </tr>\n <tr>\n <td>financialInstitutionUuid</td>\n <td>string</td>\n <td>uuid</td>\n <td> </td>\n </tr>\n <tr>\n <td>unifiedProductType</td>\n <td>string</td>\n <td> </td>\n <td> </td>\n </tr>\n <tr>\n <td>productType</td>\n <td>string</td>\n <td> </td>\n <td>creditCard insurance lifeInsurance loan mortgage savings other</td>\n </tr>\n <tr>\n <td>productSubType</td>\n <td>string</td>\n <td> </td>\n <td> </td>\n </tr>\n <tr>\n <td>isTest</td>\n <td>boolean</td>\n <td> </td>\n <td>Whether a Lead was created using a test access token</td>\n </tr>\n <tr>\n <td>paginationTimestamp</td>\n <td>string</td>\n <td>date-time</td>\n <td>Time when the event entered our system.</td>\n </tr>\n </tbody>\n</table>\n\nCommon Event Types\n\n<table>\n <thead>\n <tr>\n <th> Event Type </th>\n <th> Required Attributes </th>\n <th> Optional Attributes </th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> leadCreated </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt </td>\n <td> </td>\n </tr>\n <tr>\n <td> appSubmitted </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt </td>\n <td> </td>\n </tr>\n <tr>\n <td> apiApproved </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> apiRejected </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> offerClicked </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> affiliateOfferClicked </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> applied </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> approved </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> listed </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> opened </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n </tbody>\n</table>\n\nEvent Types for Personal Loans Funnel\n\n<table>\n <thead>\n <tr>\n <th> Event Type </th>\n <th> Definition </th>\n <th> Required Attributes </th>\n <th> Optional Attributes </th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> leadCreated </td>\n <td> A user enters the marketplace funnel </td>\n <td> See under common event types </td>\n <td></td>\n </tr>\n <tr>\n <td> appSubmitted </td>\n <td> The lead has filled out the information in the Engine by MoneyLion application and a rate table has been created </td>\n <td> See under common event types </td>\n <td></td>\n </tr>\n <tr>\n <td> apiApproved </td>\n <td> Financial institution has pre-approved or pre-qualified a user for at least one offer </td>\n <td> See under common event types </td>\n <td></td>\n </tr>\n <tr>\n <td> apiRejected </td>\n <td> Financial institution has not pre-approved or pre-qualified a user for any offers </td>\n <td> See under common event types </td>\n <td></td>\n </tr>\n <tr>\n <td> offerClicked </td>\n <td> The user clicks on or is auto redirected into an offer </td>\n <td> See under common event types </td>\n <td></td>\n </tr>\n <tr>\n <td> affiliateOfferClicked </td>\n <td> The user clicks on or is auto redirected into an affiliate offer </td>\n <td> See under common event types </td>\n <td></td>\n </tr>\n <tr>\n <td> applied </td>\n <td> The user applied for an offer in the financial institution's experience </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType amountInCents </td>\n </tr>\n <tr>\n <td> approved </td>\n <td> The user was approved for an offer after applying in the financial institution's experience </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType amountInCents </td>\n </tr>\n <tr>\n <td> listed </td>\n <td> The user's loan was listed on the financial institution's marketplace for funding </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType amountInCents </td>\n </tr>\n <tr>\n <td> funded </td>\n <td> The user has a loan funded </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType amountInCents </td>\n </tr>\n <tr>\n <td> opened </td>\n <td> The user monetizes with a special offer </td>\n <td> See under common events </td>\n <td></td>\n </tr>\n <tr>\n <td> conversion </td>\n <td> This event varies by lender, and will be deprecated. </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n <tr>\n <td> lenderQualifiedLead </td>\n <td> Financial institution further collected information from a lead </td>\n <td> eventType leadUuid leadCreatedAt eventCreatedAt financialInstitutionName financialInstitutionUuid amountInCents </td>\n <td> unifiedProductType productType productSubType </td>\n </tr>\n </tbody>\n</table>\n"
operationId: getLeadEvents
security:
- confidentialBearerToken: []
tags:
- Analytics
parameters:
- name: sinceTimestamp
in: query
required: false
description: 'The lower bound for when an event hit Engine''s system. Use this on your initial request.
'
schema:
type: string
format: date-time
- name: untilTimestamp
in: query
required: false
description: 'The upper bound of events to include (exclusive - timestamps less than this parameter)
'
schema:
type: string
format: date-time
- name: paginationToken
in: query
required: false
description: 'Opaque cursor for subsequent requests. Obtained from previous response.
'
schema:
type: string
- name: eventType
in: query
required: false
description: 'List of event types to filter by if specified. Pass multiple values either as repeated parameters or a single parameter with comma separated values.
'
schema:
type: array
items:
type: string
style: form
explode: false
- name: API-Version
in: header
required: true
description: 'Supply Analytics API version header. Must be set to 2025-04-01 for v3.
'
schema:
type: string
example: '2025-04-01'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/LeadEventResponse'
examples:
leadEventResponse:
summary: Lead event
value:
nextUrl: https://api.engine.tech/supplyAnalytics/leadEvents?paginationToken=gFqksQ5bGTVFoEbYs15RK9Y4JnMyjaA2qdH9kfkMQCWnKLL5BKxcyZUbXVQszy3fr8CjLvAYfnGpBfais9g
shouldContinuePolling: false
paginationToken: gFqksQ5bGTVFoEbYs15RK9Y4JnMyjaA2qdH9kfkMQCWnKLL5BKxcyZUbXVQszy3fr8CjLvAYfnGpBfais9g
data:
- id: 5550066157addee59022a5e69b12f26feba5c6ff461210309a4fc846a38c404d
leadUuid: 4bbb25a6-6fcf-4ed3-88f9-6daacb0f8b33
leadCreatedAt: '2021-01-01T11:24:45Z'
eventType: offerClicked
eventCreatedAt: '2019-09-22T17:44:22Z'
financialInstitutionUuid: da14e06b-0866-4f02-a3b2-9443501b25b9
financialInstitutionName: OpenSky®
isTest: false
paginationTimestamp: '2019-09-22T17:51:00Z'
- id: faa7b339d89453e284e68e76d0c7b0600f04c276a895a3cbc720803164c45434
leadUuid: 39afdb4a-ef26-42ed-a313-e28288f95099
leadCreatedAt: '2021-01-01T20:42:06Z'
eventType: apiApproved
eventCreatedAt: '2019-10-10T20:44:28Z'
financialInstitutionUuid: da14e06b-0866-4f02-a3b2-9443501b25b9
financialInstitutionName: LendingClub
isTest: false
paginationTimestamp: '2019-10-10T20:51:00Z'
'401':
$ref: '#/components/responses/UnauthorizedRequest'
'422':
description: Invalid request
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ApiError'
examples:
missingTimestamp:
$ref: '#/components/examples/MissingTimestamp'
timestampTooLate:
$ref: '#/components/examples/TimestampTooLate'
/supplyAnalytics/leadPayouts:
get:
x-lint-skip:
- index-endpoint-has-limit
x-implemented-by:
service: supply-analytics
path: /leadPayouts
summary: Get lead payouts
description: "### What is the Lead Payouts API used for?\n\nWith Lead payout API you can collect granular payout information for leads you have submitted. It returns payout events associated with a lead. Event data is limited to the amount that was paid out, and when the payout was booked.\n\nWe recently added two additional optional fields to the payout event information tied to leads:\n\n\n - `financialInstitutionUuid`\n - `financialInstitutionName`\n\n\nThese fields will tie conversion events to specific Financial Institutions (Lenders) for your knowledge and analytical use. We include these additional fields to disambiguate which financial institution a given payout originates from in the case of multiple payouts against a given lead. Not all lead payout events can be traced back to a financial institution, so these fields are optional. The Financial Institution Name is not guaranteed to be a stable identifier of the entity; Financial Institution UUID is.\n\nLeadPayout `deletedAt` will report the time that the payout was deleted. Payouts get deleted when there are post dated Contract changes or partner reporting errors requiring reingestion of EDEs.\n\n### How does it work?\n\nThe endpoint is cursor based. You can consume batches of events for the product tied to your company uuid. All that is required is a bearer token and previous `paginationToken` or `sinceTimestamp`. The endpoint will respond with all of the events that have happened from that point forward subject to optional `untilTimestamp` parameter and page size limit (currently 40000 records but this could change). It will also include a pointer to the next page (`paginationToken`) to be used for a subsequent call. This endpoint should be polled hourly to fetch new events.\n\nFor convenience, we provide a `shouldContinuePolling` flag to signal if data has been published at the location of the `nextUrl`. Since the endpoint will return as much data as it can, unless there is more data that can fit in a single response, this flag will usually be false as all available data has been returned.\n\nThe endpoint is designed for paging forward through data in order to populate your local database. By relying on the `nextUrl` parameter provided in the preceding call's response, we can guarantee a) you will see no gaps, and b) you will see no duplicates.\n\nIf constructing the url manually, subsequent requests should use `paginationToken` from the last response and omit `sinceTimestamp`.\n\nThis endpoint should be polled no more frequently than every 5 minutes, we recommend hourly. Data for this endpoint is made available with a 5 minute SLA. If the current time is '2020-01-01T00:15:00Z' UTC, making a request to this endpoint with the timestamp set to '2020-01-01T00:14:00Z' will error because of the 5 minute SLA. Making a request with a timestamp of '2020-01-01T00:09:00Z' however will succeed.\n"
operationId: getLeadPayouts
security:
- confidentialBearerToken: []
tags:
- Analytics
parameters:
- name: sinceTimestamp
in: query
required: false
description: 'The lower bound for when an event hit Engine''s system. Use this on your initial request.
'
schema:
type: string
format: date-time
- name: untilTimestamp
in: query
required: false
description: 'The upper bound of events to include (exclusive - timestamps less than this parameter)
'
schema:
type: string
format: date-time
- name: paginationToken
in: query
required: false
description: 'Opaque cursor for subsequent requests. Obtained from previous response.
'
schema:
type: string
- name: API-Version
in: header
required: true
description: 'Supply Analytics API version header. Must be set to 2025-04-01 for v3.
'
schema:
type: string
example: '2025-04-01'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/LeadPayoutResponse'
examples:
leadPayoutResponse:
$ref: '#/components/examples/LeadPayoutResponse'
'401':
$ref: '#/components/responses/UnauthorizedRequest'
'422':
description: Invalid request
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ApiError'
examples:
missingTimestamp:
$ref: '#/components/examples/MissingTimestamp'
timestampTooLate:
$ref: '#/components/examples/TimestampTooLate'
/supplyAnalytics/leadClientTags:
get:
x-lint-skip:
- index-endpoint-has-limit
x-implemented-by:
service: supply-analytics
path: /leadClientTags
summary: Get lead client tags
description: "### What is the Lead Client Tags API used for?\n\nClient tags (also known as Custom Lead Attributes) are arbitrary key:value pairs of information that can be set using the API or URL of a partner page to enable custom segmentation. Client tags provides you a method to be able to segment leads to support uses cases like:\n\n\n - See how various traffic sources on the supply partners site perform\n - See what preferences their users from different segments have\n\n\nThe lead client tag endpoint returns client tags associated with a lead.\n\nClient tags are intended for segmentation and attribution (e.g., campaign ID, article source, user cohort). They should not contain
# --- truncated at 32 KB (58 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/even-financial/refs/heads/main/openapi/even-financial-analytics-api-openapi.yml