The Fetch Lead API allows users to retrieve stored lead data from the database source. This functionality is useful for validating data, generating reports, or ensuring seamless follow-ups.
email or mobile) or retrieved as a paginated list.
Authentication uses the same database source API key as the Lead Posting API.
{db-source-id} with the MongoDB Object ID of the database source.
Authorization header:
| Parameter | Type | Required | Description |
|---|---|---|---|
db-source-id | string | Yes | MongoDB Object ID of the database source |
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | No | Filter by email address |
mobile | string | No | Filter by 10-digit phone number |
transaction_id | string | No | Fetch a specific lead by transaction ID |
lookup_id | string | No | Fetch by a custom lookup field value |
page | integer | No | Page number for paginated results (default: 1) |
limit | integer | No | Records per page (default: 10, max: 100) |
from | string | No | Start date filter (ISO 8601: YYYY-MM-DD) |
to | string | No | End date filter (ISO 8601: YYYY-MM-DD) |
| HTTP Code | Description |
|---|---|
| 200 | Request successful (leads array may be empty if none match) |
| 400 | Invalid source ID or query parameters |
| 401 | Invalid or missing API key |
| 500 | Internal server error |
isDuplicate flag and is faster than the full fetch for real-time deduplication at point of submission.
email, mobile, or transaction_id for point lookups.page and limit. Check totalRecord to determine how many pages to fetch (Math.ceil(totalRecord / limit)).Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Your database source ID
Your lead's unique ID
Your lead's transaction ID
Your lead's mobile number
Your lead's email address
Your lead's unique identification code or unque code