Affiliate API
Every endpoint under /api/v1/affiliate. Use a pk_aff_ key.
Account
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/me | Your profile, manager and the network's currency. |
Finance
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/payouts | Your balance per currency: pending, payable and paid. |
GET /api/v1/affiliate/invoices | Your invoices. |
GET /api/v1/affiliate/invoices/{publicId} | |
GET /api/v1/affiliate/invoices/{publicId}/pdf | The invoice as a PDF. |
Links
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/tracking-links | Your tracking links. |
POST /api/v1/affiliate/tracking-links | Build a link for an offer you're approved for, with sub1–sub5 and an optional deep link. Nothing is stored: the values ride on the URL. |
Offers
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/offers | Offers you can see, with your payout and application status. Filters: approved, category, country, q. |
GET /api/v1/affiliate/offers/{publicId} | One offer with its events (your payout per event) and creatives. |
POST /api/v1/affiliate/offers/{publicId}/apply | Apply to run an offer, with an optional note. Public offers are approved at once. |
GET /api/v1/affiliate/offer-requests | Your applications and their status. |
Postbacks
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/postbacks | Your postbacks: global, or for one offer. |
POST /api/v1/affiliate/postbacks | Add a postback: url (with macros such as {click_id}), optional offerId, event (Conversion, Click, Lead, Rejected, All) and trigger (Every, First, Unique). |
PATCH /api/v1/affiliate/postbacks/{publicId} | Change a postback. Fields left out stay as they are. |
DELETE /api/v1/affiliate/postbacks/{publicId} | |
GET /api/v1/affiliate/postbacks/deliveries | Recent postback firings: the URL called, the HTTP status and any error. |
Reports
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/reports/summary | Clicks, conversions, CR, payout and EPC. groupBy: up to 3 of day, hour, offer, country, event, subId1–subId5. |
GET /api/v1/affiliate/conversions | Your conversions, newest first, cursor-paged: status, event, payout, sub IDs. Up to 93 days (default 7). |
GET /api/v1/affiliate/clicks | Your clicks, newest first, cursor-paged. Up to 31 days (default 1). |
Webhooks
| Endpoint | What it does |
|---|---|
GET /api/v1/affiliate/webhooks | Webhook subscriptions. |
POST /api/v1/affiliate/webhooks | Subscribe a URL to events. The signing secret is returned once: verify X-Signature (t=<unix>,v1=<hex HMAC-SHA256 of "t.body">) on every delivery. |
DELETE /api/v1/affiliate/webhooks/{publicId} | Unsubscribe. Deliveries still queued are dropped. |
POST /api/v1/affiliate/webhooks/{publicId}/test | Send a webhook.test event now and see what the endpoint answered. |
GET /api/v1/affiliate/webhooks/{publicId}/deliveries | Recent deliveries: status, attempts, the endpoint's last answer and the next retry. |