Skip to main content
POST
/
networks
/
trafficsource
Create Traffic Source
curl --request POST \
  --url https://api.eflow.team/v1/networks/trafficsource \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "name": "traffic source 3",
  "postback_url": "https://www.postbackurl.com",
  "is_public": false,
  "parameters": [
    {
      "tracking_parameter": "param1",
      "tracking_value": "value1"
    },
    {
      "tracking_parameter": "param2",
      "tracking_value": "value2"
    }
  ]
}
'
{
  "network_traffic_source_id": 1,
  "network_id": 1,
  "name": "traffic source 3",
  "postback_url": "https://www.testpostback.com",
  "time_created": 1774721376,
  "time_saved": 1774721376,
  "relationship": {
    "parameters": {
      "total": 2,
      "entries": [
        {
          "network_traffic_source_id": 1,
          "network_id": 1,
          "tracking_parameter": "param1",
          "tracking_value": "value1"
        },
        {
          "network_traffic_source_id": 1,
          "network_id": 1,
          "tracking_parameter": "param2",
          "tracking_value": "value2"
        }
      ]
    }
  },
  "is_public": false
}
Create a new traffic source. Traffic sources define tracking parameters and values that are appended to affiliate tracking links.

Authorizations

X-Eflow-Api-Key
string
header
required

The Everflow API key generated from the Control Center > Security.

Body

application/json
name
string
required

Name of the traffic source.

is_public
boolean
required

When true, affiliates will be able to select this traffic source when generating tracking links.

parameters
object[]
required

An array of parameter/value pairs that define the tracking parameters for this traffic source. At least one entry is required.

postback_url
string

An optional postback URL for this traffic source.

Response

200 - application/json

OK

network_traffic_source_id
integer

Unique traffic source ID.

network_id
integer

Network ID.

name
string

Name of the traffic source.

postback_url
string

Postback URL for this traffic source.

time_created
integer

Unix timestamp of creation.

Example:

1734455015

time_saved
integer

Unix timestamp of last update.

Example:

1734455015

relationship
object
is_public
boolean

When true, affiliates can select this traffic source when generating tracking links.