Get Leads by Time Period

Use Popl APIs to get all leads that were collected by an individual, team, or subteam within a certain time period

Individuals

  • Get All Leads: Get all leads that were collected by an individual between a specific date range.
POST https://us-central1-poplco.cloudfunctions.net/getLeadsTimeRange
{
"apikey": "{your_api_key}",
"start": {epoch_date_int},
"end": {epoch_date_int}
}
  • start (integer) required
    • The starting date in epoch form for the date range. This parameter is required. This value should be a milliseconds epoch date such as:
1678237877897
  • end (integer)
    • The ending date in epoch form for the date range. If no end parameter is passed in, the API will return all leads from the start parameter onward. This value should be a milliseconds epoch date such as:
1678242973833
Note: Make sure both the start and end parameters are passed in as integers, not strings.
Make sure the call is a POST request and to replace the {your_api_key} with your actual api key provided to you via email from us.

Teams

  • Get Last Lead (Team): Get the most recent lead that anyone on your team collected via Popl
POST https://us-central1-poplco.cloudfunctions.net/getLeadsTimeRangeTeam
{
"apikey": "{your_api_key}",
"start": {epoch_date_int},
"end": {epoch_date_int}
}
Make sure the call is a POST request and to replace the {your_api_key} with your actual api key provided to you via email from us. Reminder: the api key must be requested by a Popl Teams admin in order for the lead data to be team wide.
  • Get Last Lead (Subteam): Get the most recent lead that anyone on a specific subteam collected via Popl
POST https://us-central1-poplco.cloudfunctions.net/getLeadsTimeRangeSubTeam
{
"apikey": "{your_api_key}",
"start": {epoch_date_int},
"end": {epoch_date_int}
}
Make sure the call is a POST request and to replace the {your_api_key} with your actual api key provided to you via email from us. Reminder: the api key must be requested by a Popl Teams admin in order for the lead data to be team wide.