FluentAffiliate REST API
This reference covers 94 routes registered in the FluentAffiliate core and Pro route files.
Base URL
https://your-site.com/wp-json/fluent-affiliate/v2
Authentication
- Admin and settings routes: use WordPress Application Passwords (
username:application_passwordvia Basic auth) or a WordPress nonce in theX-WP-Nonceheader. - Portal routes: browser clients use cookie authentication with an
X-WP-Nonceheader; server-to-server integrations can use Application Passwords. - Method override: the FluentAffiliate frontend sends PUT, PATCH, and DELETE requests as POST requests with an
X-HTTP-Method-Overrideheader.
URL Structure
All routes share the single base path /wp-json/fluent-affiliate/v2. There is no separate Pro URL prefix — Pro modules (Groups, Creatives, Connected Sites, License) register their routes under the /settings/ segment alongside core settings routes.
| Pro module | URL prefix |
|---|---|
| Groups | /settings/groups/… |
| Creatives | /settings/creatives/… |
| Connected Sites | /settings/connected-sites-config/… |
| License | /settings/license |
Modules
| Module | Edition | Route Count | Description |
|---|---|---|---|
| Affiliates API | Core | 12 | Affiliate listing, creation, updates, deletion, and per-affiliate statistics and transactions. |
| Referrals API | Core | 6 | Referral listing, manual creation, updates, deletion, and CSV export. |
| Payouts API | Core | 11 | Payout batch management, transaction operations, payout processing, and CSV export. |
| Visits API | Core | 2 | Affiliate visit tracking records — listing and CSV export. |
| Portal API | Core | 6 | Affiliate portal data — stats, referrals, transactions, visits, and settings for the currently authenticated affiliate. |
| Reports API | Core | 4 | Dashboard statistics, chart data, advanced commerce reports, and report provider listing. |
| Settings API | Core | 31 | Email configuration, feature settings, integrations, referral config, page management, migrations, and registration fields. |
| Affiliate Groups API | PRO | 8 | Affiliate group CRUD operations, member listing, overview stats, and group statistics. |
| Creatives API | PRO | 6 | Creative asset management (admin) and portal creative retrieval for authenticated affiliates. |
| Connected Sites API | PRO | 5 | Connected site configuration management, token issuance, and site disconnect operations. |
| License API | PRO | 3 | Pro license status retrieval, activation, and deactivation. |