Install
openclaw skills install @alainhl/genius-referrals-apiInspect and manage Genius Referrals accounts, advocates, campaigns, bonuses, redemption requests, and reports through the public Genius Referrals API.
openclaw skills install @alainhl/genius-referrals-apiUse this skill to inspect, manage, test, or report on a Genius Referrals referral program through the Genius Referrals API.
GR_API_TOKEN from the environment or a user-approved credential source only.X-Auth-Token; never put it in a URL.Default base URL: https://api.geniusreferrals.com
Optional environment variables:
GR_API_TOKEN: Genius Referrals API token.GR_API_BASE_URL: API base URL override.GR_ACCOUNT_SLUG: default account slug.GR_API_BASE_URL and GR_ACCOUNT_SLUG when available.GET /test-authentication before making account-scoped changes.GET /accountsGET /accounts/{account_slug}GET /accounts/{account_slug}/advocatesPOST /accounts/{account_slug}/advocatesPATCH /accounts/{account_slug}/advocates/{advocate_token}POST /accounts/{account_slug}/advocates/{advocate_token}/referralsGET /accounts/{account_slug}/advocates/{advocate_token}/share-linksGET /accounts/{account_slug}/bonusesGET /accounts/{account_slug}/bonuses/checkupPOST /accounts/{account_slug}/bonuses/force after explicit approval only.GET /accounts/{account_slug}/redemption-requestsPATCH /accounts/{account_slug}/redemption-requests/{redemption_request_id} after explicit approval./reports/* endpoints with the required date/account filters from the docs.Use scripts/gr_api.py when available. It uses only Python stdlib and should be run with python3.
Examples:
GR_API_TOKEN=... python3 scripts/gr_api.py GET /test-authentication
GR_API_TOKEN=... GR_ACCOUNT_SLUG=my-account python3 scripts/gr_api.py GET '/accounts/{account_slug}/advocates' --query limit=10
GR_API_TOKEN=... python3 scripts/gr_api.py PATCH '/accounts/{account_slug}/advocates/{advocate_token}' --account my-account --path-param advocate_token=abc123 --json '{"status":"active"}'
The docs use filter with | between clauses and :: between field and value.
Example:
filter=name::Jane|status::active
For advocates, documented filter fields include fullname, name, lastname, email, advocate_token, advocate_code, bonus_exchange_method_slug, campaign_slug, can_refer, is_referral, from, to, created, status, status_date_from, status_date_to, is_email_confirmed, campaign_contract_slug, advocate_referrer_token, and fraudulent.
Before considering a task complete: