curl --request GET \
--url https://api.firstpromoter.com/api/v2/company/promoters \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 123,
"email": "<string>",
"name": "<string>",
"cust_id": "<string>",
"note": "<string>",
"state": "pending",
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123,
"active_customers_count": 123
},
"is_customized": true,
"fraud_suspicions": [
"<string>"
],
"is_confirmed": true,
"invoice_details_status": "pending",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": true,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"joined_at": "2023-11-07T05:31:56Z",
"last_login_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"custom_fields": {},
"password_setup_url": "<string>",
"first_event_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"promoter_campaigns": [
{
"id": 123,
"campaign_id": 123,
"promoter_id": 123,
"state": "pending",
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"coupon": "<string>",
"ref_token": "<string>",
"ref_link": "<string>"
}
]
}
],
"meta": {
"pending_count": 123
}
}With this endpoint you can list all promoters.
GET https://api.firstpromoter.com/api/v2/company/promoterscurl --request GET \
--url https://api.firstpromoter.com/api/v2/company/promoters \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 123,
"email": "<string>",
"name": "<string>",
"cust_id": "<string>",
"note": "<string>",
"state": "pending",
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123,
"active_customers_count": 123
},
"is_customized": true,
"fraud_suspicions": [
"<string>"
],
"is_confirmed": true,
"invoice_details_status": "pending",
"profile": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"website": "<string>",
"company_name": "<string>",
"company_number": "<string>",
"phone_number": "<string>",
"vat_id": "<string>",
"country": "US",
"address": "<string>",
"avatar": "<string>",
"w8_form_url": "<string>",
"w9_form_url": "<string>",
"description": "<string>",
"invoice_details_validation_errors": {},
"should_validate_invoice_details": true,
"instagram_url": "<string>",
"youtube_url": "<string>",
"linkedin_url": "<string>",
"facebook_url": "<string>",
"twitter_url": "<string>",
"twitch_url": "<string>",
"tiktok_url": "<string>"
},
"joined_at": "2023-11-07T05:31:56Z",
"last_login_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"custom_fields": {},
"password_setup_url": "<string>",
"first_event_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"promoter_campaigns": [
{
"id": 123,
"campaign_id": 123,
"promoter_id": 123,
"state": "pending",
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"coupon": "<string>",
"ref_token": "<string>",
"ref_link": "<string>"
}
]
}
],
"meta": {
"pending_count": 123
}
}API key passed as a Bearer token in the Authorization header. You can find your API Key on Your FirstPromoter Dashboard. Navigate to Settings → Integrations section → Manage API Keys
Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations
Search params for promoters, search using, email, name or ref_id
Array of promoter ids to get
Filter params
Show child attributes
Campaign id
Promoter state filter
pending, accepted, rejected, blocked, inactive, not_set Has wform filter
yes, no Parent promoter id
Archived filter
true, false, `true`, `false`, `yes`, `no` Subscribed to email filter
true, false, `true`, `false`, `yes`, `no` Suspicion type filter
same_ip_suspicion, same_promoter_email, ad_source, no_suspicion Sorting params
Show child attributes
asc, desc asc, desc asc, desc asc, desc asc, desc Successful response
List of Promoters
Show child attributes
Id of the promoter
Email address of the promoter
Full name of the promoter
Cust ID of the promoter
Optional note about the promoter
State of the promoter.
pending, accepted, rejected, blocked, inactive, not_set Performance statistics for the promoter
Show child attributes
Number of clicks generated
Number of referrals generated
Number of sales generated
Number of customers referred
Total revenue generated
Number of active customers
Whether the promoter has customized settings
List of potential fraud flags
Whether the promoter has confirmed their account
Status of the promoter's invoice details
pending, approved, denied Show child attributes
ID of the profile
First name of the promoter
Last name of the promoter
Website of the promoter
Company name of the promoter
Company registration number
Phone number of the promoter
VAT ID of the promoter
Country in 2 characters format
"US"
Address of the promoter
URL to the promoter's avatar image
URL to the promoter's W8 form if available
URL to the promoter's W9 form if available
Description of the promoter
Validation errors for invoice details
Should validate invoice details
Promoter's Instagram URL
Promoter's YouTube URL
Promoter's LinkedIn URL
Promoter's Facebook URL
Promoter's Twitter URL
Promoter's Twitch URL
Promoter's TikTok URL
Date and time when the promoter joined.
Date and time of the promoter's last login.
Date and time when the promoter was archived, if applicable.
Custom fields for the promoter, based on company settings. This is a key-value pair object where keys are custom field identifiers and values are the corresponding data.
URL for the promoter to set up their password
Date and time of the promoter's first activity.
Date and time when the promoter was created.
ISO date format (YYYY-MM-DD HH:MM:SS)
Date and time when the promoter was last updated.
ISO date format (YYYY-MM-DD HH:MM:SS)
List of campaigns associated with the promoter
Show child attributes
ID of the promoter-campaign association
ID of the campaign
ID of the promoter
State of the promoter in this campaign
pending, accepted, rejected, blocked, inactive, not_set When the promoter was added to the campaign
Coupon code for this campaign
Referral token for this campaign
Referral link for this campaign