curl --request POST \
--url https://api.eflow.team/v1/networks/campaigns \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"campaign_status": "active",
"redirect_routing_type": "priority",
"campaign_name": "My Smart Link",
"catch_all_network_offer_id": 1,
"network_tracking_domain_id": 1,
"redirects": [
{
"redirect_network_offer_id": 1,
"redirect_network_offer_url_id": 0,
"routing_value": 1
}
]
}
'import requests
url = "https://api.eflow.team/v1/networks/campaigns"
payload = {
"campaign_status": "active",
"redirect_routing_type": "priority",
"campaign_name": "My Smart Link",
"catch_all_network_offer_id": 1,
"network_tracking_domain_id": 1,
"redirects": [
{
"redirect_network_offer_id": 1,
"redirect_network_offer_url_id": 0,
"routing_value": 1
}
]
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaign_status: 'active',
redirect_routing_type: 'priority',
campaign_name: 'My Smart Link',
catch_all_network_offer_id: 1,
network_tracking_domain_id: 1,
redirects: [
{
redirect_network_offer_id: 1,
redirect_network_offer_url_id: 0,
routing_value: 1
}
]
})
};
fetch('https://api.eflow.team/v1/networks/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/networks/campaigns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'campaign_status' => 'active',
'redirect_routing_type' => 'priority',
'campaign_name' => 'My Smart Link',
'catch_all_network_offer_id' => 1,
'network_tracking_domain_id' => 1,
'redirects' => [
[
'redirect_network_offer_id' => 1,
'redirect_network_offer_url_id' => 0,
'routing_value' => 1
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/networks/campaigns"
payload := strings.NewReader("{\n \"campaign_status\": \"active\",\n \"redirect_routing_type\": \"priority\",\n \"campaign_name\": \"My Smart Link\",\n \"catch_all_network_offer_id\": 1,\n \"network_tracking_domain_id\": 1,\n \"redirects\": [\n {\n \"redirect_network_offer_id\": 1,\n \"redirect_network_offer_url_id\": 0,\n \"routing_value\": 1\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/campaigns")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"campaign_status\": \"active\",\n \"redirect_routing_type\": \"priority\",\n \"campaign_name\": \"My Smart Link\",\n \"catch_all_network_offer_id\": 1,\n \"network_tracking_domain_id\": 1,\n \"redirects\": [\n {\n \"redirect_network_offer_id\": 1,\n \"redirect_network_offer_url_id\": 0,\n \"routing_value\": 1\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"campaign_status\": \"active\",\n \"redirect_routing_type\": \"priority\",\n \"campaign_name\": \"My Smart Link\",\n \"catch_all_network_offer_id\": 1,\n \"network_tracking_domain_id\": 1,\n \"redirects\": [\n {\n \"redirect_network_offer_id\": 1,\n \"redirect_network_offer_url_id\": 0,\n \"routing_value\": 1\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"network_campaign_id": 1,
"network_id": 1,
"campaign_name": "My Smart Link",
"campaign_status": "active",
"network_tracking_domain_id": 1,
"is_use_secure_link": false,
"redirect_routing_type": "weight",
"catch_all_network_offer_id": 57,
"is_open_to_affiliates": false,
"run_frequency": "unknown",
"metric": "unknown",
"optimization_goal": 0,
"data_lookback_window": "unknown",
"data_collection_threshold": 0,
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"redirects": {
"total": 123,
"entries": [
{
"network_campaign_redirect_id": 6,
"network_campaign_id": 1,
"redirect_network_offer_id": 11,
"redirect_network_offer_url_id": 0,
"routing_value": 1,
"ruleset": {}
}
]
},
"labels": {
"total": 123,
"entries": [
"<string>"
]
},
"catch_all_offer_basic": {
"network_offer_id": 123,
"network_id": 123,
"name": "<string>",
"offer_status": "<string>"
},
"encoded_value": "<string>"
}
}Create Smart Link
curl --request POST \
--url https://api.eflow.team/v1/networks/campaigns \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"campaign_status": "active",
"redirect_routing_type": "priority",
"campaign_name": "My Smart Link",
"catch_all_network_offer_id": 1,
"network_tracking_domain_id": 1,
"redirects": [
{
"redirect_network_offer_id": 1,
"redirect_network_offer_url_id": 0,
"routing_value": 1
}
]
}
'import requests
url = "https://api.eflow.team/v1/networks/campaigns"
payload = {
"campaign_status": "active",
"redirect_routing_type": "priority",
"campaign_name": "My Smart Link",
"catch_all_network_offer_id": 1,
"network_tracking_domain_id": 1,
"redirects": [
{
"redirect_network_offer_id": 1,
"redirect_network_offer_url_id": 0,
"routing_value": 1
}
]
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaign_status: 'active',
redirect_routing_type: 'priority',
campaign_name: 'My Smart Link',
catch_all_network_offer_id: 1,
network_tracking_domain_id: 1,
redirects: [
{
redirect_network_offer_id: 1,
redirect_network_offer_url_id: 0,
routing_value: 1
}
]
})
};
fetch('https://api.eflow.team/v1/networks/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/networks/campaigns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'campaign_status' => 'active',
'redirect_routing_type' => 'priority',
'campaign_name' => 'My Smart Link',
'catch_all_network_offer_id' => 1,
'network_tracking_domain_id' => 1,
'redirects' => [
[
'redirect_network_offer_id' => 1,
'redirect_network_offer_url_id' => 0,
'routing_value' => 1
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/networks/campaigns"
payload := strings.NewReader("{\n \"campaign_status\": \"active\",\n \"redirect_routing_type\": \"priority\",\n \"campaign_name\": \"My Smart Link\",\n \"catch_all_network_offer_id\": 1,\n \"network_tracking_domain_id\": 1,\n \"redirects\": [\n {\n \"redirect_network_offer_id\": 1,\n \"redirect_network_offer_url_id\": 0,\n \"routing_value\": 1\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/campaigns")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"campaign_status\": \"active\",\n \"redirect_routing_type\": \"priority\",\n \"campaign_name\": \"My Smart Link\",\n \"catch_all_network_offer_id\": 1,\n \"network_tracking_domain_id\": 1,\n \"redirects\": [\n {\n \"redirect_network_offer_id\": 1,\n \"redirect_network_offer_url_id\": 0,\n \"routing_value\": 1\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"campaign_status\": \"active\",\n \"redirect_routing_type\": \"priority\",\n \"campaign_name\": \"My Smart Link\",\n \"catch_all_network_offer_id\": 1,\n \"network_tracking_domain_id\": 1,\n \"redirects\": [\n {\n \"redirect_network_offer_id\": 1,\n \"redirect_network_offer_url_id\": 0,\n \"routing_value\": 1\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"network_campaign_id": 1,
"network_id": 1,
"campaign_name": "My Smart Link",
"campaign_status": "active",
"network_tracking_domain_id": 1,
"is_use_secure_link": false,
"redirect_routing_type": "weight",
"catch_all_network_offer_id": 57,
"is_open_to_affiliates": false,
"run_frequency": "unknown",
"metric": "unknown",
"optimization_goal": 0,
"data_lookback_window": "unknown",
"data_collection_threshold": 0,
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"redirects": {
"total": 123,
"entries": [
{
"network_campaign_redirect_id": 6,
"network_campaign_id": 1,
"redirect_network_offer_id": 11,
"redirect_network_offer_url_id": 0,
"routing_value": 1,
"ruleset": {}
}
]
},
"labels": {
"total": 123,
"entries": [
"<string>"
]
},
"catch_all_offer_basic": {
"network_offer_id": 123,
"network_id": 123,
"name": "<string>",
"offer_status": "<string>"
},
"encoded_value": "<string>"
}
}Authorizations
Body
The redirect mechanism of the campaign. Determines how the Smart Link traffic is distributed between the listed offers. KPI automatically delivers traffic ranked by the best performing offers for your set KPI. Priority checks the first position and continues downward if the user doesn't match targeting/cap. Weight delivers traffic with a percentage split between eligible offers.
priority, weight, kpi The metric used with the KPI campaign. The highest performing offers for your selected metric will be re-ranked towards receiving the majority of the Smart Link traffic. Required if redirect_routing_type is set to kpi.
unknown, profit, cvr, evr, conversions, payout, revenue, rpc, cpc, epc Response
Determines how the Smart Link traffic is distributed between the listed offers. kpi automatically delivers traffic ranked by the best performing offers for your set KPI. priority checks the first position and continues downward if the user doesn't match targeting/cap. weight delivers traffic with a percentage split between eligible offers.
priority, weight, kpi "weight"
The metric used with the KPI campaign. The highest performing offers for your selected metric will be re-ranked towards receiving the majority of the Smart Link traffic. Required if redirect_routing_type is set to kpi.
unknown, profit, cvr, evr, conversions, payout, revenue, rpc, cpc, epc "unknown"
Was this page helpful?
