curl --request POST \
--url https://api.eflow.team/v1/networks/usm/datapoints \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"identifier": "ltv_90d",
"name": "90-Day LTV",
"type": "number",
"status": "active",
"description": "Modelled 90-day customer lifetime value"
}
'import requests
url = "https://api.eflow.team/v1/networks/usm/datapoints"
payload = {
"identifier": "ltv_90d",
"name": "90-Day LTV",
"type": "number",
"status": "active",
"description": "Modelled 90-day customer lifetime value"
}
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({
identifier: 'ltv_90d',
name: '90-Day LTV',
type: 'number',
status: 'active',
description: 'Modelled 90-day customer lifetime value'
})
};
fetch('https://api.eflow.team/v1/networks/usm/datapoints', 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/usm/datapoints",
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([
'identifier' => 'ltv_90d',
'name' => '90-Day LTV',
'type' => 'number',
'status' => 'active',
'description' => 'Modelled 90-day customer lifetime value'
]),
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/usm/datapoints"
payload := strings.NewReader("{\n \"identifier\": \"ltv_90d\",\n \"name\": \"90-Day LTV\",\n \"type\": \"number\",\n \"status\": \"active\",\n \"description\": \"Modelled 90-day customer lifetime value\"\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/usm/datapoints")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifier\": \"ltv_90d\",\n \"name\": \"90-Day LTV\",\n \"type\": \"number\",\n \"status\": \"active\",\n \"description\": \"Modelled 90-day customer lifetime value\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/usm/datapoints")
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 \"identifier\": \"ltv_90d\",\n \"name\": \"90-Day LTV\",\n \"type\": \"number\",\n \"status\": \"active\",\n \"description\": \"Modelled 90-day customer lifetime value\"\n}"
response = http.request(request)
puts response.read_body{
"identifier": "ltv_90d",
"name": "90-Day LTV",
"type": "text",
"status": "active",
"network_usm_data_point_id": 1,
"network_id": 1,
"description": "<string>",
"time_created": 1788398582,
"time_saved": 1788398592
}{
"error": "<string>"
}Create Data Point
Create a Customer Value data point. The identifier is the key you send with conversions and reference from rule goals, and it must be unique within the network.
curl --request POST \
--url https://api.eflow.team/v1/networks/usm/datapoints \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"identifier": "ltv_90d",
"name": "90-Day LTV",
"type": "number",
"status": "active",
"description": "Modelled 90-day customer lifetime value"
}
'import requests
url = "https://api.eflow.team/v1/networks/usm/datapoints"
payload = {
"identifier": "ltv_90d",
"name": "90-Day LTV",
"type": "number",
"status": "active",
"description": "Modelled 90-day customer lifetime value"
}
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({
identifier: 'ltv_90d',
name: '90-Day LTV',
type: 'number',
status: 'active',
description: 'Modelled 90-day customer lifetime value'
})
};
fetch('https://api.eflow.team/v1/networks/usm/datapoints', 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/usm/datapoints",
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([
'identifier' => 'ltv_90d',
'name' => '90-Day LTV',
'type' => 'number',
'status' => 'active',
'description' => 'Modelled 90-day customer lifetime value'
]),
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/usm/datapoints"
payload := strings.NewReader("{\n \"identifier\": \"ltv_90d\",\n \"name\": \"90-Day LTV\",\n \"type\": \"number\",\n \"status\": \"active\",\n \"description\": \"Modelled 90-day customer lifetime value\"\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/usm/datapoints")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifier\": \"ltv_90d\",\n \"name\": \"90-Day LTV\",\n \"type\": \"number\",\n \"status\": \"active\",\n \"description\": \"Modelled 90-day customer lifetime value\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/usm/datapoints")
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 \"identifier\": \"ltv_90d\",\n \"name\": \"90-Day LTV\",\n \"type\": \"number\",\n \"status\": \"active\",\n \"description\": \"Modelled 90-day customer lifetime value\"\n}"
response = http.request(request)
puts response.read_body{
"identifier": "ltv_90d",
"name": "90-Day LTV",
"type": "text",
"status": "active",
"network_usm_data_point_id": 1,
"network_id": 1,
"description": "<string>",
"time_created": 1788398582,
"time_saved": 1788398592
}{
"error": "<string>"
}usm in the path comes from.
The identifier is the contract between your conversions and your rules: you send it with conversion data, and rule goals reference it through metric_data_point_identifier. It must be unique within the network — reusing one returns 400 Duplicate identifiers are not allowed.
Pick type to match how you intend to compare the value. A number data point works with the greater_than and less_than goal operators; a text one works with exact_match, contains, begins_with and ends_with.
| Field | Notes |
|---|---|
identifier | Unique within the network; max 255 characters. |
name | Display name; max 255 characters. |
type | text or number. |
status | active or inactive. |
description | Optional; max 500 characters. |
Authorizations
The Everflow API key generated from the Control Center > Security.
Body
The key you send with conversions and reference from rule goals. Required, and unique within the network.
255"ltv_90d"
The display name shown in the Everflow UI.
255"90-Day LTV"
The value type. Use number for data points compared with greater_than or less_than, and text for those matched with exact_match, contains, begins_with or ends_with.
text, number Whether the data point is collected and evaluated.
active, inactive Optional free-text note about what the data point holds.
500Response
The key you send with conversions and reference from rule goals. Required, and unique within the network.
255"ltv_90d"
The display name shown in the Everflow UI.
255"90-Day LTV"
The value type. Use number for data points compared with greater_than or less_than, and text for those matched with exact_match, contains, begins_with or ends_with.
text, number Whether the data point is collected and evaluated.
active, inactive Unique data point ID.
1
Network ID.
1
Optional free-text note about what the data point holds.
500Unix timestamp of creation.
1788398582
Unix timestamp of last update.
1788398592
Was this page helpful?
