Leads
List leads/customers
With this endpoint you can list all the leads and customers assigned to a promotion, promoter, campaign or entire account using the API.
Pagination details are held on response headers. Add
--include
option on curl
request to see the pagination details format and links to next pages.HTTP Request
GET https://firstpromoter.com/api/v1/leads/list
GET
/
list
Authorizations
X-API-KEY
string
headerrequiredQuery Parameters
promotion_id
string
List all leads and customer assigned to this promotion id
ref_id
string
List all leads and customer assigned to a promotion - find promotion by ref_id
promoter_id
string
List all leads and customers assigned to a promoter
campaign_id
string
List all leads and customers in a campaign
Response
200 - application/json
id
integer
The lead's ID inside FirstPromoter
status
enum<string>
The lead's or customer's status
Available options:
signup
, active
, subscribed
, denied
, cancelled
uid
any
Your lead/customer's user ID inside your application.
email
string
The lead's or customer's email
customer_since
string
ISO date string at which the lead converted to a customer.
cancelled_at
string
ISO date string at which the lead/customer cancelled
plan_name
string
suspicion
string
username
string
website
string
created_at
string
ISO date string at which the lead/customer signed up
split_promotion_id
any
custom_fields
any
split_percentage_value
any
visitor_sub_id
any
promotion
object
promoter
object