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

Get Lead

preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
GET
/v1/crm/leads/{id}/
Last modified:2024-11-20 11:38:01

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Example:
6d101383-d69d-434b-a447-efad29af007e
Query Params
expand
string 
required
Example:
addresses,banks,documents
Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjczMDc1NzIyLCJpYXQiOjE2NzI5ODkzMjIsImp0aSI6IjYzYzMxMWQ5NWQ0MTRjMDI5OGNjYzQ4NGQ4MWU3MzU0IiwidXNlcl9pZCI6IjQ2MjViNDE5LWQ2NTgtNGMxZS1hMDQxLTE0MjY1Nzk3YWI4MCIsImNvbXBhbnlfaWQiOiI1NzYyMzgxNi0wMmJmLTQyM2QtOGNmYS03MGIwMjVhZjcxZjEifQ.ycYHd8Yuk-jfLlvB8wqBqI8DsWCSbBDuYiGJo3fq-I0UR3BN2BiFitlOM5CMqSK6gwNf2pWCEfgFGta4dSVJ_Ebuam_dCVqgptC2YICneA0t8OgHQ4ZcWq0kCq7UGn6cT4-cWhzMqFDUhVMmlIxJWfG4KDU2NwU5BipkP8FYQhZYx6G5ZWKZohrRsEQeQDjj1Q7M-GnePq3-d9fh0FxNXnukqgQ-kHj2eXiV3m7xdijKU-opWuMxDRJ5RZy3gg-sWxcDdwieciHGVW0gPmvnkj6xe0S6R0OP-J4pp7IfyHG1lt9B8cDatNdvHECK77gySJdAOvlKXtfWhg48dCqoYcB19rOZHOIpmhPd8p0JR1Uwivi-Fv9IOPO6W6ELUaBaflXT25qWkRZjGfiiPLG5J4sYr8e67xXgZ_SJfKOSgyK7sGKcpSzEyf2iJQbDfBkcVNuRFQqCV3C6wE3STg_WncbaqR0Ahg3nmXoSBFEc4MudYh3QayhuI-DyiTP72wPHGUQcWtCLfuwmo1kI-PsDqdgVObP4rUaCIzFw4gxCpeNHPbiKVlFIeHGKh7r8EPPAsn_aruaN_S-nXvw9Gcf09NNhs_WSzBDGERmhFB1aG_zfjpN8JXX1bgzRo-KxuS3s5EGNnQzr8BTpJdguDeb089JM5DqNpHuIMAy8V60Wn4Y

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 GET 'https://preprod.api.crego.io/v1/crm/leads/6d101383-d69d-434b-a447-efad29af007e/?expand=addresses,banks,documents' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjczMDc1NzIyLCJpYXQiOjE2NzI5ODkzMjIsImp0aSI6IjYzYzMxMWQ5NWQ0MTRjMDI5OGNjYzQ4NGQ4MWU3MzU0IiwidXNlcl9pZCI6IjQ2MjViNDE5LWQ2NTgtNGMxZS1hMDQxLTE0MjY1Nzk3YWI4MCIsImNvbXBhbnlfaWQiOiI1NzYyMzgxNi0wMmJmLTQyM2QtOGNmYS03MGIwMjVhZjcxZjEifQ.ycYHd8Yuk-jfLlvB8wqBqI8DsWCSbBDuYiGJo3fq-I0UR3BN2BiFitlOM5CMqSK6gwNf2pWCEfgFGta4dSVJ_Ebuam_dCVqgptC2YICneA0t8OgHQ4ZcWq0kCq7UGn6cT4-cWhzMqFDUhVMmlIxJWfG4KDU2NwU5BipkP8FYQhZYx6G5ZWKZohrRsEQeQDjj1Q7M-GnePq3-d9fh0FxNXnukqgQ-kHj2eXiV3m7xdijKU-opWuMxDRJ5RZy3gg-sWxcDdwieciHGVW0gPmvnkj6xe0S6R0OP-J4pp7IfyHG1lt9B8cDatNdvHECK77gySJdAOvlKXtfWhg48dCqoYcB19rOZHOIpmhPd8p0JR1Uwivi-Fv9IOPO6W6ELUaBaflXT25qWkRZjGfiiPLG5J4sYr8e67xXgZ_SJfKOSgyK7sGKcpSzEyf2iJQbDfBkcVNuRFQqCV3C6wE3STg_WncbaqR0Ahg3nmXoSBFEc4MudYh3QayhuI-DyiTP72wPHGUQcWtCLfuwmo1kI-PsDqdgVObP4rUaCIzFw4gxCpeNHPbiKVlFIeHGKh7r8EPPAsn_aruaN_S-nXvw9Gcf09NNhs_WSzBDGERmhFB1aG_zfjpN8JXX1bgzRo-KxuS3s5EGNnQzr8BTpJdguDeb089JM5DqNpHuIMAy8V60Wn4Y'

Responses

🟢200Get Lead
application/json
Body
_id
string 
required
other_refs
array
required
routing_response_type
null 
required
routing_response_value
null 
required
routing_response_error
null 
required
created_by
string 
required
status
string 
required
tags
array
required
is_deleted
boolean 
required
freezed
boolean 
required
is_editable
boolean 
required
consent_data
object 
required
ip_address
string 
required
user_agent
string 
required
host
string 
required
referrer
null 
required
data_source
null 
required
created_at
number 
required
updated_at
number 
required
ref_id
string 
required
programs
array [object {11}] 
required
_id
string 
optional
lead_id
string 
optional
ref_id
string 
optional
program_id
string 
optional
product_type
string 
optional
status
string 
optional
tags
array
optional
is_primary
boolean 
optional
is_deleted
boolean 
optional
created_at
number 
optional
updated_at
number 
optional
applicants
array [object {14}] 
required
_id
string 
required
lead_id
string 
required
applicant_type
string 
required
is_primary
boolean 
required
is_authorized_signatory
boolean 
required
business_type
string 
optional
tags
array
required
name
string 
required
pan_no
string 
optional
primary_mobile
string 
optional
is_deleted
boolean 
required
created_at
number 
required
updated_at
number 
required
primary_email
string 
optional
Example
{
    "_id": "91d22513-1bb3-4036-b820-84a5790c798a",
    "other_refs": [],
    "routing_response_type": null,
    "routing_response_value": null,
    "routing_response_error": null,
    "created_by": "9cca8c02-ac64-4d1d-94a6-9b738867b493",
    "status": "active",
    "tags": [],
    "is_deleted": false,
    "freezed": false,
    "is_editable": true,
    "consent_data": {
        "ip_address": "10.30.10.245",
        "user_agent": "PostmanRuntime/7.39.0",
        "host": "dev.api.crego.tech",
        "referrer": null
    },
    "data_source": null,
    "created_at": 1718187839.488,
    "updated_at": 1718187839.938,
    "ref_id": "CL4KJZ3",
    "programs": [
        {
            "_id": "f5978374-a65f-4bd6-868e-e29ce187344f",
            "lead_id": "91d22513-1bb3-4036-b820-84a5790c798a",
            "ref_id": "CL4KJZ3A",
            "program_id": "6788f287-c670-46b9-8ec9-48cc351ab2bc",
            "product_type": "scf",
            "status": "pending_disbursement",
            "tags": [],
            "is_primary": true,
            "is_deleted": false,
            "created_at": 1718187839.728,
            "updated_at": 1718187839.728
        }
    ],
    "applicants": [
        {
            "_id": "3b8aabb6-462a-4dac-863e-983065b0c0f1",
            "lead_id": "91d22513-1bb3-4036-b820-84a5790c798a",
            "applicant_type": "business",
            "is_primary": true,
            "is_authorized_signatory": false,
            "business_type": "Proprietorship",
            "tags": [],
            "name": "Business Name",
            "pan_no": "JUVPK1179B",
            "primary_mobile": "8439598391",
            "is_deleted": false,
            "created_at": 1718187839.938,
            "updated_at": 1718605992.677
        },
        {
            "_id": "25f58925-6502-4ee0-b303-17eedf3da3f1",
            "lead_id": "91d22513-1bb3-4036-b820-84a5790c798a",
            "applicant_type": "person",
            "is_primary": false,
            "is_authorized_signatory": true,
            "tags": [],
            "name": "Dharmendra",
            "primary_email": "222@gmail.com",
            "is_deleted": false,
            "created_at": 1718187839.956,
            "updated_at": 1718605992.863
        }
    ]
}
Previous
Lead List
Next
Delete Lead
Built with