1.Introduction

Our API allows product owners and software creators to add FunnelMates integration, giving your software an instant added income streams.

2.API Connection

https://funnelmates.com/api/

All API requests should use the above URL as their base url. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

You can Generate API Key under profile settings after logging in to your member account. (Click Here)

API Key is a bundle of Unique random Block and Small alphabets, For Example - NYLSParfKgz9yFEIRCObAVI4Tw3jqJHx

The URL should be like this - https://funnelmates.com/api/{argument}/xxxxxxxxxxxxxxxxxxxxxx/ (Where, xxxx=API Key).

If you want to get single User then you should pass user id with URL

The URL should be like this - https://funnelmates.com/api/{argument}/xxxxxxxxxxxxxxxxxxxxxx/123 (Where, 123=User ID).

3.Errors

The URL return error if API key is invalid - 'Invalid API-Key'

If You insert an Invalid User ID the API will return error.

If user is there in database but not accessible by user or 'Invalid User ID' if user is not there in database.

4.User Details GET

Using this example, you are getting user details From FunnelMates.

Example Request

<?php
//Set up API path and method
$url = "https://funnelmates.com/api/ud?token=xxxxxxxxxxxxxxxxxxxxxx&user_id=1";

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);      
curl_setopt($ch, CURLOPT_URL, $url);

$result = curl_exec($ch);
echo $result;

Example Response

{
    "status": "1",
    "message": "Success",
    "data": {
        "user_login": "cindy",
        "user_email": "[email protected]",
        "user_registered": "2019-04-02 08:05:49",
        "display_name": "Cindy Donovan"
    }
}

ARGUMENTS

token
The FunnelMates API Key
user_id
FunnelMates User's ID

 

5.Active Funnels GET

Using this example, you will get Active Funnel details for specific User From FunnelMates.

Example Request

<?php
//Set up API path and method
$url = "https://funnelmates.com/api/fi?token=xxxxxxxxxxxxxxxxxxxxxx";

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);      
curl_setopt($ch, CURLOPT_URL, $url);

$result = curl_exec($ch);
echo $result;

Example Response

{
    "status": "1",
    "message": "Success",
    "data": [
        {
            "ID": "5430",
            "post_date": "2021-02-18 12:05:35",
            "post_title": "RankSnap",
            "list_id": "60405c287178b",
			"CCID": "5"
        },
        {
            "ID": "5996",
            "post_date": "2021-03-09 13:17:45",
            "post_title": "Product Dyno",
            "list_id": "606d469e69685",
			"CCID": "5"
        },
	
	]
}

ARGUMENTS

token
The FunnelMates API Key

 

5.Subscribe POST

Using this example, you will subscribe an User for specific Funnel in FunnelMates.

Example Request

<?php
//Set up API path and method
$url = "https://funnelmates.com/api/su";

$data = array('token'=>'XXXXXXXXXXXXXX','list_id'=>'60716c39050ed', 'email'=>'[email protected]', 'name'=>'Cindy', 'CCID'=>'5');


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response  = curl_exec($ch);
curl_close($ch);

echo $response;

Example Response

{
    "status": 1,
    "message": "Confirmation email sent to the subscriber",
    "subscriber_uid": "60fa684424cc9"
}

ARGUMENTS

token
The FunnelMates API Key
list_id
List ID from Active Funnels API
name (Optional)
Name of the user to add for Funnel
email
Email Address you want to Subscribe for a Funnel
CCID
Saved as a custom field, this associates leads sent to our system with the member's account.