Leads

Retrieve Leads (CSV)

Exports a filtered list of leads as a CSV file for download.

get/v1/leads/export

Request

  • Base URL: https://api.leadboxer.com
  • URL: https://api.leadboxer.com/v1/leads/export
  • Auth: API key in header x-api-key

Query parameters

sitestring required

The Dataset ID

searchstring

Keyword or phrase to search across all searchable fields. Search is case-insensitive for text fields. Defaults to '*' to match all results.

limitinteger

No of rows to return in response.

localestring

Locale for formatting the 'prettyLastEvent' field in response. Determines the language and regional formatting (e.g., dates, text) returned by the API.

nextTokenstring

Token returned after each request, used to fetch the next page of results. Each token is valid for 10 minutes.

criteriaTextFilterstring

Text-based filter expression used to filter result fields.Format: field|operator|value. Multiple filters are comma-separated.

criteriaNumberFilterstring

Numeric filter expression used to filter results based on numeric fields. Format: field|operator|value. Multiple filters are comma-separated. Supported numeric operators include greaterthan, lessthan, is, isnot, between, and notbetween. The between and notbetween operators use the format min-max.

criteriaTimeFilterstring

Time-based filter expression used to filter results by time field. Format: field|operator|value.

Allowed fields (same as timeField parameter):

  • eventEsTimestamp : Last Seen
  • first_session_unix_timestamp : First Seen

Supported operators:

  • exactly → integer value (0 = Today, 1 = Yesterday)
  • lessthan → integer value (e.g. 6 = last 7 days)
  • between → date range in format dd/MM/yyyy-dd/MM/yyyy

Locale settings are taken into account while interpreting dates and returning results.

criteriaFieldFilterstring

Field-based filter used to include leads based on field presence.

Format: operator|field1;field2

Allowed operator:

  • hasanyvalue

Allowed fields:

  • firstName
  • lastName
  • email

Multiple fields can be provided using semicolons.

criteriaExitLinkFilterstring

Exit link filter used to include or exclude leads based on exit link values.

Format: field|operator|value

Supported operators:

  • contains
  • is
  • isnot
  • doesnotcontain

Multiple values can be provided using semicolons.

criteriaLeadscoreFilterinteger

Minimum lead score threshold (optional). Only records with lead scores greater than the provided number (0–100) are returned.

criteriaDisplayFilterstring

Display filter used to control which types of leads are returned.

Supported values:

  • company
  • person
  • unidentified

Selecting 'unidentified' returns leads that could not be identified as a company or a person.

Multiple values can be provided using semicolons.

timeField'eventEsTimestamp' | 'first_session_unix_timestamp' required

Time field used for filtering.

Allowed values:

  • eventEsTimestamp : Last Seen
  • first_session_unix_timestamp : First Seen
usePresetExclusionList'use_id' | 'last_most_likely_company' | 'organizationName' | 'organizationDomain'

Use a preset exclusion list of criteria to exclude from result.

dateFormatstring
userIdinteger
separatorstring

Specifies the delimiter used to separate columns in the generated CSV file.

timeZonestring

Time zone used when parsing timestamps and evaluating time-based filters. If not provided, the default time zone is Europe/Amsterdam.

sortBystring

Sort results by a specific field and direction.

Format: field|direction

Allowed fields:

  • lastEvent
  • _score

Allowed directions:

  • asc
  • desc
additionalCsvFieldsstring

Comma-separated list of column identifiers to be included in the CSV export. The order of the values determines the column order in the generated CSV.

Response

CSV file generated successfully

Changes

No recorded changes to this operation across all 1 revision of this API.