Affiliate Campaigns API
GET
/af/campaignsThis endpoint is deprecated and may be removed in a future version.
List the live campaigns open to you: public ones, ones that need approval, and private ones the network assigned you. approvalStatus says which you may run; tracking links and creatives are included only for those (approved). Only active campaigns within their start and end dates are listed, most recently updated first. Results are cached for 60 seconds. Rate limit: 30 requests a minute and 500 a day per affiliate (shared with the other Affiliate API endpoints).
Authentication
Domain ID — your network's tenant ID (header: X-Domain-Id)
Affiliate ID (header: X-Affiliate-Id)
API Key (header: X-Api-Key)
No API key yet? Start a 14-day free trial and generate a key from your dashboard's security settings. No credit card required.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
campaignId | query | string | No | Only these campaigns: one ID or several separated by commas. |
updatedSince | query | string (date-time) | No | Only campaigns changed at or after this date-time (ISO 8601, e.g. 2026-11-01T00:00:00Z) — use it to sync only what changed. The older spelling updated_since is also accepted. |
page | query | integer | No | Page to return, starting at 1. meta.pagination.totalPages says how many there are. |
limit | query | integer | No | Campaigns per page, 1–500. Default 50. |
Responses
| Status | Description |
|---|---|
| 200 | Campaigns open to you, most recently updated first. |
| 400 | Authentication parameters missing (X-Domain-Id, X-Affiliate-Id, X-Api-Key), or unknown domain ID |
| 403 | Invalid credentials, API access switched off for you, IP not on your allowlist, or API access not in the network's plan |
| 422 | A parameter is invalid |
| 429 | Rate limit reached (30 a minute / 500 a day). Wait for Retry-After seconds. |
Response fields (inside data)
| Field | Type | Description |
|---|---|---|
campaignId | integer | |
advertiserId | integer | |
campaignName | string | |
status | string | Always active: only live campaigns are listed. |
approvalStatus | string (approved | pending | rejected | not_requested) | Whether you may run it. approved: run it (public campaigns are approved automatically); pending: your request awaits review; rejected: you may not run it; not_requested: it needs approval and you have not applied — apply with POST /af/campaign-requests. |
previewUrl | string | |
trackingUrl | string | Your tracking link. null unless approvalStatus is approved. |
impressionUrl | string | Impression pixel URL. null unless approvalStatus is approved. |
paymentModel | string | Payment model code, e.g. CPA, CPL, CPS, CPI. |
payout | number | What you earn per conversion, in currency. For percentage models (CPS, CPAS, RevShare, IB) it is a percent of the sale: 12.5 means 12.5%. |
currency | string | |
startDate | string | Y-m-d H:i:s, in the campaign timezone. |
endDate | string | Y-m-d H:i:s, in the campaign timezone. |
terms | string | Plain text (HTML removed). |
description | string | Plain text (HTML removed). |
trafficRules | object | Traffic types the campaign allows; null when it sets no restrictions. |
trafficRules.allowed | array of strings | Traffic type slugs you may use, e.g. email, social. |
trafficRules.requires_approval | array of strings | Traffic types you need permission for. |
trafficRules.not_allowed | array of strings | |
trafficRules.notes | string | |
trafficRules.enforced_on_clicks | boolean | Whether clicks from disallowed traffic are blocked. |
trafficRules.updated_at | string | |
trafficRules.forAffiliate | object | Per traffic type slug, what applies to you after your exceptions: allowed, approval, pending or prohibited. |
applicationQuestions | array of objects | Questions to answer when you request access (empty when there are none). |
applicationQuestions[].key | string | Send the answer under answers.<campaignId>.<key> in POST /af/campaign-requests. |
applicationQuestions[].label | string | |
applicationQuestions[].type | string | |
applicationQuestions[].options | array of strings | |
applicationQuestions[].required | boolean | |
applicationQuestions[].help | string | |
categories | array of strings | |
events | array of objects | Conversion events (goals). |
events[].name | string | |
events[].token | string | |
targetingRules | array of objects | Active targeting rules the network shares with affiliates. |
targetingRules[].id | integer | |
targetingRules[].name | string | |
targetingRules[].action_on | string | |
targetingRules[].conditions | array of objects | |
targetingRules[].fallback_url | string | |
targetingRules[].fallback_campaign_id | integer | |
cappingRules | array of objects | Active caps that apply to you. |
cappingRules[].id | integer | |
cappingRules[].type | string (gross_clicks | unique_clicks | gross_conversions | approved_conversions | pending_conversions) | |
cappingRules[].period | string (hourly | daily | weekly | monthly) | |
cappingRules[].value | integer | Limit per period. |
cappingRules[].event | string | |
cappingRules[].timezone | string | |
payoutRules | array of objects | Active payout rules shared with affiliates that can pay you a different price. |
payoutRules[].id | integer | |
payoutRules[].model | string | |
payoutRules[].conditions | array of objects | |
payoutRules[].payout | number | What you earn under this rule. |
payoutRules[].currency | string | |
creatives | array of objects | Approved creatives; empty unless approvalStatus is approved. |
creatives[].id | integer | |
creatives[].title | string | |
creatives[].type | string | |
creatives[].file | object | |
creatives[].file.url | string | |
creatives[].file.name | string | |
creatives[].file.content_type | string | |
creatives[].email | object | |
creatives[].email.sender_name | string | |
creatives[].email.subject_line | string | |
creatives[].content | object | |
creatives[].content.code | string |