Networks API
Overview
Section titled “Overview”Affiliate networks are the platforms where your offers are hosted (e.g., HasOffers, Everflow, Cake). Networks define postback templates used for conversion tracking.
Authentication
Section titled “Authentication”All endpoints require either a JWT token or an API key (gf_...) in the Authorization header.
Endpoints
Section titled “Endpoints”| Method | Path | Scope | Description |
|---|---|---|---|
| GET | /api/v1/networks | read:networks | List all networks |
| POST | /api/v1/networks | write:networks | Create a network |
| GET | /api/v1/networks/{id} | read:networks | Get network details |
| PATCH | /api/v1/networks/{id} | write:networks | Update a network |
| DELETE | /api/v1/networks/{id} | write:networks | Delete a network |
Examples
Section titled “Examples”Create a Network
Section titled “Create a Network”curl -X POST https://devcore.getghostflow.io/api/v1/networks \ -H "Authorization: Bearer gf_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Everflow", "postbackUrl": "https://www.evtrk.com/postback?click_id={click_id}&amount={payout}", "notes": "Main CPA network" }'const response = await fetch('https://devcore.getghostflow.io/api/v1/networks', { method: 'POST', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ name: 'Everflow', postbackUrl: 'https://www.evtrk.com/postback?click_id={click_id}&amount={payout}', notes: 'Main CPA network', }),});const network = await response.json();import requests
resp = requests.post( "https://devcore.getghostflow.io/api/v1/networks", headers={"Authorization": f"Bearer {api_key}"}, json={ "name": "Everflow", "postbackUrl": "https://www.evtrk.com/postback?click_id={click_id}&amount={payout}", "notes": "Main CPA network", },)network = resp.json()List Networks
Section titled “List Networks”curl https://devcore.getghostflow.io/api/v1/networks \ -H "Authorization: Bearer gf_your_api_key"