Skip to content

Offers API

Offers represent the monetization endpoints (affiliate links) in your campaigns. Each offer defines a destination URL, payout amount, and optional capping rules.

All endpoints require either a JWT token or an API key (gf_...) in the Authorization header.

MethodPathScopeDescription
GET/api/v1/offersread:offersList all offers
POST/api/v1/offerswrite:offersCreate an offer
GET/api/v1/offers/{id}read:offersGet offer details
PATCH/api/v1/offers/{id}write:offersUpdate an offer
DELETE/api/v1/offers/{id}write:offersDelete an offer
Terminal window
curl -X POST https://devcore.getghostflow.io/api/v1/offers \
-H "Authorization: Bearer gf_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Weight Loss US",
"url": "https://affiliate.example.com/offer/123?sub1={click_id}",
"networkId": "019d4e56-3d6f-7be2-a77e-000000000010",
"payout": 12.50,
"payoutCurrency": "USD",
"countries": ["US", "CA"]
}'
Terminal window
curl https://devcore.getghostflow.io/api/v1/offers \
-H "Authorization: Bearer gf_your_api_key"