Lead

Get All Leads

POST
/lead/all
sort?SortDto
pagination?PaginationDto
searchQuery?string
filters?array<LeadFilterDto>

Response Body

curl -X POST "http://crm-apiprod.b2bleadsmarket.com/lead/all" \  -H "Content-Type: application/json" \  -d '{}'
{
  "docs": [
    {
      "id": "string",
      "salutation": "string",
      "avatarUrl": "string",
      "name": {
        "firstName": "string",
        "lastName": "string"
      },
      "emails": {
        "primaryEmail": "user@example.com",
        "additionalEmails": [
          {}
        ]
      },
      "phones": {
        "primaryPhoneNumber": "string",
        "primaryPhoneCountryCode": "string",
        "primaryPhoneCallingCode": "string",
        "additionalPhones": [
          {}
        ]
      },
      "companyName": "string",
      "domainName": {
        "primaryLinkLabel": "string",
        "primaryLinkUrl": "string",
        "secondaryLinks": [
          {}
        ]
      },
      "amount": {
        "amountMicros": 0,
        "currencyCode": "string"
      },
      "annualRecurringRevenue": {
        "amountMicros": 0,
        "currencyCode": "string"
      },
      "industry": "string",
      "employees": 0,
      "employeeRange": "1-10",
      "address": {
        "addressStreet1": "string",
        "addressStreet2": "string",
        "addressCity": "string",
        "addressState": "string",
        "addressCountry": "string",
        "addressPostcode": "string",
        "addressLat": 0,
        "addressLng": 0
      },
      "city": "string",
      "state": "string",
      "country": "string",
      "stageId": "string",
      "stage": {
        "id": "string",
        "name": "string",
        "description": "string",
        "isActive": true,
        "isCustom": true
      },
      "createdBy": {
        "source": "string",
        "workspaceMemberId": "19b2e9e0-2ca5-440b-89b8-7d3df62cd046",
        "name": "string"
      },
      "leadOwnerId": "string",
      "pointOfContactId": "string",
      "companyId": "string",
      "personId": "string",
      "leadOwner": {
        "id": "string",
        "firstName": "string",
        "lastName": "string",
        "userEmail": "string",
        "avatarUrl": "string"
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "deletedAt": "2019-08-24T14:15:22Z",
      "leadSource": "string"
    }
  ],
  "total": 0,
  "pagination": {}
}