Building APIs Inside Lisflex

ListFlex Lead Generation API's

The following integration examples are below:
Getresponse
Getresponse API V3
Adopia
Maropost
Constant Contact
Reachmail
Sendlane
Interspire
Email Leads Individually
Active Campaign
Mailwizz
Emurcury
Market Hero
Drip.com
ConvertKit
Ontraport
Imnica Mail
SendShark


Getresponse Example.

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.listflex.com/getresponsewrapper.php
Post Variables *
apikey=<your_api_key>&campaign=<your_campaign>&email=%%email%%&fname=%%fname%%&country=%%country%%&ip=%%ip%%&optin_date=%%date_subscribed%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
queued:1

* Please refer to your GetResponse account for these variables: <your_api_key> <your_campaign>
ALL FIELDS IN API EXAMPLE ARE REQUIRED BY GETRESPONSE

 


Getresponse Example (API v3).

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.listflex.com/wrappers/getresponse.php
Post Variables *
apikey=<api_key>&campaign_id=<campaign_id>&fname=%%fname%%&lname=%%lname%%&email=%%email%%&ip=%%ip%%&day_of_cycle=0
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
Lead Accepted

* Please refer to your GetResponse account for variable: <api_key>. In order to obtain your <campaign_id> value for the API, copy and paste into your browser’s address bar the following link: http://api.listflex.com/wrappers/getresponse.php?apikey=<api_key>&action=getcampaigns

Be sure to swap <api_key> In the URL above with the value for your api key you get from your GetResponse account. The page will list all your GetResponse campaings. Copy the campaing id value of the campaign you want your leads to be posted into and paste it into the Post Variables field instead of <campaign_id> placeholder.

 


Adopia Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://www.adopia.com/services/addListContact
Post Variables *
api_key=<api_key>&list_id=<list_id>&response_type=xml&contact[contact_email]=%%email%%&contact[contact_name]=%%fname%%&is_double_opt_in=0
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
GET
Successful Response
success

* Please refer to your Adopia account for these variable: <api_key> <list_id>

 


Maropost Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://api.maropost.com/accounts/<account_id>/lists/<list_id>/contacts.json
Post Variables *
{
 "auth_token": "<auth_token>",
 "email": "%%email%%",
 "first_name": "%%fname%%",
 "last_name": "%%lname%%",
 "subscribed_at": "%%date_subscribed%%",
 "contact.ip": "%%ip%%"
}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
Subscribed
Headers (advanced options)
Content-Type:application/json

* Please refer to your Maropost account for this variable: <account_id> <list_id> <auth_token>

 


Constant Contact Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://<api.yoururl.com>/constantcontact/addcontact.php
Post Variables *
api_key=<api_key>&token=<token>&list_id=<list_id>&fname=%%fname%%&lname=%%lname%%&email=%%email%%&ip=%%ip%%&date_subscribed=%%date_subscribed%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
GET
Successful Response
success

* Please refer to your Constant Contact account for these variables: <api.yoururl.com> <api_key> <token> <list_id>

 


Reachmail Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.listflex.com/reachmailwrapper.php
Post Variables *
acc_id=<AccountID>&username=<USERNAME>&password=<PASSWORD>&listid=<LISTID>&accountid=<AccountID>&email=%%email%%&fname=%%fname%%&lname=%%lname%%&phone=%%phone%%&address=%%address%%&city=%%city%%&state=%%state%%&zip=%%zip%%&optin_date=%%date_subscribed%%&ip=%%ip%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* Please refer to your Reachmail account for these variables: <AccountID> <USERNAME> <PASSWORD> <LISTID>

 


Sendlane Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
https://<subdomain>.sendlane.com/api/v1/list-subscriber-add
Post Variables *
api=<api_key>&hash=<hash>&list_id=<list_id>&email=%%email%%&first_name=%%fname%%&last_name=%%lname%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* Please refer to your Sendlane account for these variables: <subdomain> <api_key> <hash> <list_id>

API Documentation: https://help.sendlane.com/hc/en-us/articles/360025840791-API-Docs

 


Interspire Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
<your_interspire_url>
Post Variables *
<xmlrequest>
 <username><username></username>
 <usertoken><usertoken></usertoken>
 <requesttype>subscribers</requesttype>
 <requestmethod>AddSubscriberToList</requestmethod>
 <details>
 <emailaddress>%%email%%</emailaddress>
 <mailinglist>4</mailinglist>
 <format>html</format>
 <confirmed>yes</confirmed>
 <customfields>

<item>
 <fieldid>2</fieldid>
 <value>%%fname%%</value>
 </item>
<item>
 <fieldid>4</fieldid>
 <value>%%phone%%</value>
</item>

</customfields>
 </details>
</xmlrequest>
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* <your_interspire_url>, <username> and <usertoken> can be obtained from your Interspire setup.

 


Email Leads Individually

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://lftools1.listflex.com/api/emaillead2client.php
Post Variables *
to=<to_emails>&from_email=<from_email>&from_name=Listflex&subject=You have a new Lead&leadinfo_FirstName=%%fname%%&leadinfo_LastName=%%lname%%&leadinfo_Email=%%email%%&leadinfo_Phone=%%phone%%&leadinfo_Address=%%address%%&leadinfo_City=%%city%%&leadinfo_State=%%state%%&leadinfo_Zip=%%zip%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* <to_emails> are the email addresses (separated by comma) that you want to send the lead information to. <from_email> is the email address you want the lead info to appear to have come from.

 


Active Campaign Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
https://<active_campaign_domain>.api-us1.com/admin/api.php
Post Variables *
api_action=contact_add&api_key=<api_key>&
email=%%email%%&p[<list_ld>]=<list_id>&status[<list_id>]=<list_id>&first_name=%%fname%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
result_code>1<

* Please refer to your Active Campaign account for these variables: <active_campaign_domain> <api_key> <list_id>. You may also have to whitelist the Listflex IP in your system (ask your sales rep for this). See this screenshot for directions to whitelist.

API Documentation: https://www.activecampaign.com/api/example.php?call=contact_add

 


Mailwizz Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://<your_domain>/<path>/index.php/lists/<list_id>/subscribe
Post Variables *
EMAIL=%%email%%&FNAME=%%fname%%&LNAME=%%lname%%&CURRENT_DOMAIN_URL=%%offer_url%%&DATE=%%date_subscribed%%&SUBSCRIBER_IP=%%ip%%&COMPANY_CITY=%%city%%&COMPANY_ZONE=%%state%%&COMPANY_ZIP=%%zip%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
Congratulations

* <your_domain> is where you have installed the MailWizz software. <path> is the folder your mailwizz lives in. E.g. email or mailer. <list_id> is the list id you are posting leads into.

 


Integrating with Emercury

Emercury has an excellent tutorial on how to intergrate with Listflex here.

 


Market Hero Example

API Description
Give your api a good name
API Type
Regular API
API Endpoint
http://api.markethero.io/v1/api/tag-lead
Post Variables *
{"apiKey":"<api_key>", "firstName":"%%fname%%", "lastName":"%%lname%%", "email":"%%email%%", "tags":["<tags>"]}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
ok

* Please refer to your Market Hero account for these variables: <api_key> <tags>.

API Documentation: https://markethero2.docs.apiary.io/#reference/0/leads/tag-lead

 


Drip Example

 

API Description
Give your api a good name
API Type
Regular API
API Endpoint
https://api.getdrip.com/v2/<account_id>/campaigns/<campaign_id>/subscribers
Post Variables *
{"subscribers":[{"email":"%%email%%","custom_fields":{"name":"%%fname%% %%lname%%"}}]}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
subscribers.account
Headers (advanced options)
Content-Type:application/json,authorization: Basic <AUTH_TOKEN>

* Please refer to your Drip account for these variables: <account_id> <campaign_id>. Contact your support rep for <AUTH_TOKEN>

API Documentation: https://developer.drip.com/#create-or-update-a-subscriber

 


ConvertKit Example

 

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
https://api.convertkit.com/v3/forms/<form_id>/subscribe
Post Variables *
{"api_key": "<api_key>", "email": "%%email%%", "first_name":"%%fname%%"}
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
created_at
Headers (advanced options)
Content-Type:application/json

* Please refer to your CK account for these variables: <form_id> and <api_key>.

API Documentation: https://developers.convertkit.com/#add-subscriber-to-a-form

 


Ontraport Example

 

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
https://api.ontraport.com/1/Contacts
Post Variables *
firstname=%%fname%%&lastname=%%lname%%&email=%%email%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
firstname
Headers (advanced options)
Content-Type:application/x-www-form-urlencoded,Api-Key:<apikey>,Api-Appid:<appid>

* Please refer to your Ontraport account for these variables: <apikey> and <appid>.

API Documentation: https://api.ontraport.com/doc/#create-a-contact

 


Imnica Mail Example

 

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://www.imnicamail.com/v4/api.php
Post Variables *
Command=Subscriber.Subscribe&ResponseFormat=JSON&ListID=<list_id>&EmailAddress=%%email%%&CustomField1=%%fname%%&IPAddress=%%ip%%&OptInDate=%%date_subscribed%%&SubscriptionDate%%date_subscribed%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
GET
Successful Response
true

* Please refer to your Imnica Mail account for these variable: <list_id>

API Documentation

 


SendShark Example

 

API Description
Give your api a good name
API Type
Regular API
API Endpoint *
http://gogvo.com/api/eresponder/add_subscriber
Post Variables *
api_key=<api_key>&CampaignId=<campaign_id>&Email=%%email%%&FullName=%%fname%%
Timeout After
30 Seconds
Date Format
Y-m-d H:i:s
URL Encode
NO
Request Type
POST
Successful Response
success

* Please refer to your SendShark account for these variable: <api_key> and <campaign_id>

Share This Post
Share on facebook
Share on linkedin
Share on twitter
Share on email
Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Do You Want To Boost Your Business?

drop us a line and keep in touch

Click on the Calendar to schedule
a quick chat with an Expert