Skip to main content
GET
/
api
/
v1
/
entities
/
leads
/
list
/
{id}
Get Leads by List
curl --request GET \
  --url https://api.example.com/api/v1/entities/leads/list/{id} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-01-20T14:45:00.000Z",
    "firstName": "John",
    "lastName": "Smith",
    "jobTitle": "Chief Technology Officer",
    "city": "San Francisco",
    "postalCode": "94102",
    "country": "United States",
    "linkedinUrl": "https://www.linkedin.com/in/johnsmith",
    "phones": ["+1-555-123-4567"],
    "emails": ["john.smith@acmecorp.com"],
    "companyId": "550e8400-e29b-41d4-a716-446655440000",
    "seniority": "C-Suite",
    "departments": ["Engineering", "Technology"],
    "subDepartments": [],
    "functions": ["Technology"],
    "industry": "Software",
    "skills": ["Leadership", "Strategy", "Software Development"],
    "baseProviderId": null,
    "bullhornId": 98765,
    "crmId": null,
    "leadOwnerId": "user_abc123",
    "consentStatus": "UNKNOWN",
    "consentSource": null,
    "consentUpdatedAt": null,
    "deletedAt": null,
    "company": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": "2024-01-10T08:00:00.000Z",
      "updatedAt": "2024-01-18T12:30:00.000Z",
      "name": "Acme Corporation",
      "description": "A leading provider of innovative solutions...",
      "summary": "Enterprise software company",
      "headcount": "500-1000",
      "industry": "Software",
      "phones": ["+1-555-999-8888"],
      "linkedinUrl": "https://www.linkedin.com/company/acme-corp",
      "websiteUrl": "https://www.acmecorp.com",
      "domain": "acmecorp.com",
      "city": "San Francisco",
      "postalCode": "94102",
      "country": "United States",
      "logoUrl": "https://logo.clearbit.com/acmecorp.com",
      "legalName": "Acme Corporation Inc.",
      "foundedYear": 2010,
      "revenue": "$10M-$50M",
      "baseProviderId": null,
      "bullhornId": 12345,
      "crmId": null,
      "location": null
    },
    "clientContact": {
      "id": 98765,
      "tasks": {
        "data": [
          { "id": 111 },
          { "id": 222 }
        ]
      },
      "taskObjects": [
        {
          "id": 111,
          "subject": "Follow up call",
          "status": "Not Started"
        }
      ]
    },
    "languages": [
      { "language": "English", "level": "Native" }
    ],
    "educations": [],
    "workExperiences": [],
    "certificates": [],
    "linkedinProfile": {
      "headline": "CTO at Acme Corporation",
      "summary": "Passionate technology leader...",
      "pictureUrl": "https://media.licdn.com/..."
    }
  }
]
Returns the items contained in a lead list. The response type depends on the list’s type field:
  • For person-type lists: Returns an array of lead objects (persons with their associated company and CRM data)
  • For company-type lists: Returns an array of company objects

Authentication

This endpoint requires authentication. The user must be signed in and have access to the requested lead list.
Users can only access lead lists where their user ID is included in the list’s userIds array, or if they are an admin user.

Request

id
string
required
The unique identifier (UUID) of the lead list to retrieve

Response

The response structure varies based on the lead list type.

Person-Type List Response

Returns an array of lead objects. Each lead is a person with their associated company and Bullhorn CRM data.
Leads are filtered to only include those where the associated company has a name. Leads without a valid company name are excluded from the response.
leads
Lead[]
Array of lead objects (for person-type lists)

Company-Type List Response

Returns an array of company objects (same structure as the Company object nested within leads).
companies
Company[]
Array of company objects (for company-type lists)

Response Examples

[
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-01-20T14:45:00.000Z",
    "firstName": "John",
    "lastName": "Smith",
    "jobTitle": "Chief Technology Officer",
    "city": "San Francisco",
    "postalCode": "94102",
    "country": "United States",
    "linkedinUrl": "https://www.linkedin.com/in/johnsmith",
    "phones": ["+1-555-123-4567"],
    "emails": ["john.smith@acmecorp.com"],
    "companyId": "550e8400-e29b-41d4-a716-446655440000",
    "seniority": "C-Suite",
    "departments": ["Engineering", "Technology"],
    "subDepartments": [],
    "functions": ["Technology"],
    "industry": "Software",
    "skills": ["Leadership", "Strategy", "Software Development"],
    "baseProviderId": null,
    "bullhornId": 98765,
    "crmId": null,
    "leadOwnerId": "user_abc123",
    "consentStatus": "UNKNOWN",
    "consentSource": null,
    "consentUpdatedAt": null,
    "deletedAt": null,
    "company": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": "2024-01-10T08:00:00.000Z",
      "updatedAt": "2024-01-18T12:30:00.000Z",
      "name": "Acme Corporation",
      "description": "A leading provider of innovative solutions...",
      "summary": "Enterprise software company",
      "headcount": "500-1000",
      "industry": "Software",
      "phones": ["+1-555-999-8888"],
      "linkedinUrl": "https://www.linkedin.com/company/acme-corp",
      "websiteUrl": "https://www.acmecorp.com",
      "domain": "acmecorp.com",
      "city": "San Francisco",
      "postalCode": "94102",
      "country": "United States",
      "logoUrl": "https://logo.clearbit.com/acmecorp.com",
      "legalName": "Acme Corporation Inc.",
      "foundedYear": 2010,
      "revenue": "$10M-$50M",
      "baseProviderId": null,
      "bullhornId": 12345,
      "crmId": null,
      "location": null
    },
    "clientContact": {
      "id": 98765,
      "tasks": {
        "data": [
          { "id": 111 },
          { "id": 222 }
        ]
      },
      "taskObjects": [
        {
          "id": 111,
          "subject": "Follow up call",
          "status": "Not Started"
        }
      ]
    },
    "languages": [
      { "language": "English", "level": "Native" }
    ],
    "educations": [],
    "workExperiences": [],
    "certificates": [],
    "linkedinProfile": {
      "headline": "CTO at Acme Corporation",
      "summary": "Passionate technology leader...",
      "pictureUrl": "https://media.licdn.com/..."
    }
  }
]

How It Works

  1. The endpoint authenticates the user via Clerk
  2. Retrieves the lead list by the provided ID
  3. Validates the user has access to the list (via userIds array or admin status)
  4. Based on the list’s type field:
    • Person lists: Fetches all persons with their associated company and Bullhorn CRM data (including tasks), filters to only include leads with a valid company name
    • Company lists: Fetches all companies by their IDs from the list
  5. Returns the appropriate array of items
For person-type lists, the response includes Bullhorn CRM integration data when available. The clientContact object contains the Bullhorn client contact record and associated tasks, enabling CRM workflow visibility directly from the lead list.

List Types

Lead lists can be one of two types:
TypeDescriptionResponse Contains
personContains individual leads/contactsArray of Lead objects with company data
companyContains target companiesArray of Company objects
The list type is set when the list is created and determines how the list is populated and what data is returned.