Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Lead
  • Back to home
  • CRM
  • Lead
    • Get Borrower Line Details
      GET
    • Fetch service accounts
      GET
    • Send to a service
      POST
    • Create Lead
      POST
    • Lead List
      GET
    • Get Lead
      GET
    • Delete Lead
      DELETE
    • download_excel
      PUT
  • Applicant
    • Create Applicant
      POST
    • Get Applicant
      GET
    • Update Applicant
      PATCH
    • Delete Applicant
      DELETE
    • Mark as Primary
      PUT
  • Bank
    • Add Bank
      POST
    • Get Bank
      GET
    • Update Bank
      PATCH
    • Delete Bank
      DELETE
    • Verify Bank
      GET
    • Get Banks by Applicant Id
      GET
    • Get IFSC Details
      GET
  • Document
    • Add Document
      POST
    • Get Document
      GET
    • Delete Document
      DELETE
    • Update Document
      PATCH
    • Get Documents by Related Model Id
      GET
  • Address
    • Add Address
    • Get Address
    • Update Address
    • Delete Address
    • Get Address by Applicant Id
    • Get City & State by Pincode
  • Get Borrower Token
    POST
  • Health Check
    GET
  1. Lead

Create Lead

preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/crm/leads/
Last modified:2025-02-10 06:04:47

Schema#

Field NameDescription
program_idProgram ID for which lead will be mapped
applicant.nameFull name of the applicant

Minimum required fields:#

program_id
mobile

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
program_id
string 
required
primary_mobile
string 
required
applicants
array [object {11}] 
required
applicant_type
string 
required
is_primary
boolean 
required
is_authorized_signatory
boolean 
required
business_type
string 
optional
tags
array[string]
required
name
string 
required
pan_no
string 
optional
primary_mobile
string 
optional
addresses
array [object {6}] 
required
banks
array [object {6}] 
required
primary_email
string 
optional
Example
{
    "program_id": "4b67c764-afb3-4570-ac21-025ea3255b6e",
    "primary_mobile": "8439598391",
    "partner_ref_id": "asd",
    "applicants": [
        {
            "applicant_type": "business",
            "is_primary": true,
            "is_authorized_signatory": false,
            "business_type": "Proprietorship",
            "tags": [],
            "name": "Business Name", 
            "pan_no": "JUVPK1179B", 
            "primary_mobile": "7714044531",
            "addresses": [
                {
                    "tags": [
                        "current",
                        "registered"
                    ],
                    "address_line": "Shop No. 75-78",
                    "pincode": "151203",
                    "locality": "Faridkot",
                    "city": "Faridkot",
                    "state": "Punjab"
                }
            ],
            "banks": [
                {
                    "account_type": "current",
                    "account_no": "",
                    "account_holder_name": "D K KRISHI SEWA KENDRA CHAND 2021-22",
                    "ifsc": "CBIN0281814",
                    "is_verified": false,
                    "tags": []
                }
            ]
        },
        {
            "applicant_type": "person", 
            "is_primary": false,
            "is_authorized_signatory": true,
            "tags": [],
            "name": "Dharmendra", 
            "primary_email": "222@gmail.com",
            "addresses": [
                {
                    "tags": [
                        "current",
                        "permanent"
                    ],
                    "address_line": "Shop No. 75-78",
                    "pincode": "151203",
                    "locality": "Faridkot",
                    "city": "Faridkot",
                    "state": "Punjab"
                }
            ],
            "banks": [
                {
                    "account_type": "current", 
                    "account_no": "",
                    "account_holder_name": "D K KRISHI SEWA KENDRA CHAND 2021-22",
                    "ifsc": "CBIN0281814",
                    "is_verified": false,
                    "tags": []
                }
            ]
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/v1/crm/leads/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "program_id": "4b67c764-afb3-4570-ac21-025ea3255b6e",
    "primary_mobile": "8439598391",
    "partner_ref_id": "asd",
    "applicants": [
        {
            "applicant_type": "business",
            "is_primary": true,
            "is_authorized_signatory": false,
            "business_type": "Proprietorship",
            "tags": [],
            "name": "Business Name", 
            "pan_no": "JUVPK1179B", 
            "primary_mobile": "7714044531",
            "addresses": [
                {
                    "tags": [
                        "current",
                        "registered"
                    ],
                    "address_line": "Shop No. 75-78",
                    "pincode": "151203",
                    "locality": "Faridkot",
                    "city": "Faridkot",
                    "state": "Punjab"
                }
            ],
            "banks": [
                {
                    "account_type": "current",
                    "account_no": "",
                    "account_holder_name": "D K KRISHI SEWA KENDRA CHAND 2021-22",
                    "ifsc": "CBIN0281814",
                    "is_verified": false,
                    "tags": []
                }
            ]
        },
        {
            "applicant_type": "person", 
            "is_primary": false,
            "is_authorized_signatory": true,
            "tags": [],
            "name": "Dharmendra", 
            "primary_email": "222@gmail.com",
            "addresses": [
                {
                    "tags": [
                        "current",
                        "permanent"
                    ],
                    "address_line": "Shop No. 75-78",
                    "pincode": "151203",
                    "locality": "Faridkot",
                    "city": "Faridkot",
                    "state": "Punjab"
                }
            ],
            "banks": [
                {
                    "account_type": "current", 
                    "account_no": "",
                    "account_holder_name": "D K KRISHI SEWA KENDRA CHAND 2021-22",
                    "ifsc": "CBIN0281814",
                    "is_verified": false,
                    "tags": []
                }
            ]
        }
    ]
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Previous
Send to a service
Next
Lead List
Built with