A AfroLink

Developer Corner

API integration guide

AfroLink API integrations are server-side partner app integrations. Keys are secret and scoped; examples below use placeholders only.

Base URL and authentication

Use the configured AfroLink API base URL for the current environment and send the partner key in the request header.

Base URL: https://admin.kongokafe.com/wp-json/kongokafe/v1
Header: X-AfroLink-Partner-Key: afl_live_xxxxxxxx
Compatibility: Authorization: Bearer afl_live_xxxxxxxx

Verify a key

Plugins and dashboards should verify a key before saving it.

curl -X POST https://admin.kongokafe.com/wp-json/kongokafe/v1/afrolink/developer/verify-key \
  -H "X-AfroLink-Partner-Key: afl_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"partner":"kongokafe"}'

Partner endpoints

The partner slug must match the API key partner.

Endpoint Purpose
GET /afrolink/partner-widget?partner=kongokafe Combined widget payload
GET /afrolink/public/profiles/recent?partner=kongokafe Recent public profiles
GET /afrolink/public/profiles?partner=kongokafe Filtered partner directory
GET /afrolink/public/profiles/{slug}?partner=kongokafe Protected profile detail
GET /afrolink/public/banner?partner=kongokafe Partner banner
GET /afrolink/public/countries?partner=kongokafe Countries
GET /afrolink/public/industries?partner=kongokafe Industries
GET /afrolink/public/plans?partner=kongokafe Pricing plans
GET /afrolink/partner/reports/summary?partner=kongokafe Partner report summary
GET /afrolink/partner/reports/activity?partner=kongokafe Redacted partner report activity

Scopes by feature

Enable only the scopes needed by the active plugin modules.

Scope Feature
read:partner-widget Combined widget
read:profiles Recent profiles, directory and profile details
read:banner Banner embeds
read:countries Country filters
read:industries Industries and filters
read:plans Pricing
create:partner-signups Signup forms
read:partner-reports Partner reporting