Skip to content

REST API

All endpoints live under:

https://yoursite.com/wp-json/fluent-affiliate/v2/

Authentication

Use a WordPress nonce (issued via wp_create_nonce('wp_rest')) in the X-WP-Nonce header. For server-to-server requests, Application Passwords are also supported.

bash
curl https://yoursite.com/wp-json/fluent-affiliate/v2/affiliates \
  -H "X-WP-Nonce: abc123"

Core Resources

ResourceBase PathAuth
Affiliates/affiliatesAdmin or affiliate with fa_view_affiliates capability
Referrals/referralsAdmin or affiliate with fa_view_referrals capability
Payouts/payoutsAdmin or affiliate with fa_view_payouts capability
Visits/visitsAdmin or affiliate with fa_view_visits capability
Portal/portalAny authenticated WordPress user
Reports/reportsAny authenticated WordPress user
Settings/settingsWordPress administrator (manage_options)

Pro Resources

ResourceDescriptionAuth
Affiliate Groups PRORequires FluentAffiliate Pro.WordPress administrator (manage_options)
Creatives PRORequires FluentAffiliate Pro.WordPress administrator (manage_options)
Connected Sites PRORequires FluentAffiliate Pro.WordPress administrator (manage_options)
License PRORequires FluentAffiliate Pro.WordPress administrator (manage_options)

Released under the GPL-2.0 License.