Genius Referrals Api
Inspect and manage Genius Referrals accounts, advocates, campaigns, bonuses, redemption requests, and reports through the public Genius Referrals API.
Alain Hernandez
@alainhl
What This Skill Does
Programmatic interface to the Genius Referrals API for inspecting and managing referral programs, including accounts, advocates, campaigns, bonuses, redemption requests, and reports. Supports read, write, and report operations with built-in safety guards for high-impact actions.
Replaces manual dashboard navigation and ad-hoc API scripting by providing a structured, safe CLI-style interface for all Genius Referrals operations.
When to Use It
- List all Genius Referrals accounts and inspect their details
- Look up advocates and their referral activity for a specific account
- Generate and retrieve referral share links for an advocate
- Review pending redemption requests and update their status
- Run a bonus checkup report for a given account and date range
- Test API authentication and verify token validity before making changes
Install
$ openclaw skills install @alainhl/genius-referrals-apiGenius Referrals API
Use this skill to inspect, manage, test, or report on a Genius Referrals referral program through the Genius Referrals API.
Boundaries
- Never store API tokens in the skill.
- Use
GR_API_TOKENfrom the environment or a user-approved credential source only. - Send the token as
X-Auth-Token; never put it in a URL. - Default to read-only actions until the target environment, account slug, and intended change are clear.
- Treat production writes, payouts, redemption updates, bonus force actions, and deletes as high-impact. Ask for explicit confirmation before running them.
- Prefer QA or a non-production account for tests.
Environment
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.
Workflow
- Confirm the requested task category: read/report, create/update, payout/redemption, delete, or docs lookup.
- Identify the environment and account slug. Use
GR_API_BASE_URLandGR_ACCOUNT_SLUGwhen available. - Verify authentication with
GET /test-authenticationbefore making account-scoped changes. - For read-only tasks, call the narrowest endpoint and summarize relevant fields only.
- For write tasks, prepare a dry-run summary first: method, path, account slug, payload keys, expected impact, rollback or cleanup option.
- For high-impact tasks, get explicit approval before execution.
- After execution, report status code, endpoint, resource identifiers, and any next action.
Common Tasks
- List accounts:
GET /accounts - Inspect account:
GET /accounts/{account_slug} - List advocates:
GET /accounts/{account_slug}/advocates - Create advocate or referral candidate:
POST /accounts/{account_slug}/advocates - Update advocate:
PATCH /accounts/{account_slug}/advocates/{advocate_token} - Link referral:
POST /accounts/{account_slug}/advocates/{advocate_token}/referrals - Get share links:
GET /accounts/{account_slug}/advocates/{advocate_token}/share-links - List bonuses:
GET /accounts/{account_slug}/bonuses - Bonus checkup:
GET /accounts/{account_slug}/bonuses/checkup - Force bonus:
POST /accounts/{account_slug}/bonuses/forceafter explicit approval only. - List redemption requests:
GET /accounts/{account_slug}/redemption-requests - Update redemption request:
PATCH /accounts/{account_slug}/redemption-requests/{redemption_request_id}after explicit approval. - Run reports: use
/reports/*endpoints with the required date/account filters from the docs.
Local Helper
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"}'
Filter Notes
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.
Verification
Before considering a task complete:
- Authentication was checked for API operations.
- Target base URL and account slug were stated.
- Mutating calls include method/path/payload summary.
- High-impact calls include explicit approval evidence.
- Returned status and resource identifiers were reported.
Top skills in this category
Edge TTS
@i3130002Text-to-speech conversion using node-edge-tts npm package for generating audio from text. Supports multiple voices, languages, speed adjustment, pitch control, and subtitle generation. Use when: (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.
TuriX Computer Use
@tongyu-yanComputer Use Agent (CUA) for macOS automation using TuriX. Use when you need to perform visual tasks on the desktop, such as opening apps, clicking buttons, or navigating UIs that don't have a CLI or API.
Todoist
@byungkyuTodoist API integration with managed OAuth. Manage tasks, projects, sections, labels, and comments. Use this skill when users want to create, update, complete, or organize tasks and projects in Todoist. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Calls run through the `maton` CLI with OAuth login, or over raw HTTP with a Maton API key where the CLI cannot be installed. Every call is authenticated as the user's connection and reaches only what that connection's authorization allows, which the provider enforces on every request; the endpoints documented here are the ones this skill uses, and any other endpoint of this app needs the user to ask for it by name. Default to read and list calls, and confirm every write or new connection with the user. This file also documents the three constructs that turn a Todoist connection into automation, in the order they are used: the connection (the first step), a hosted function that runs a Todoist action through the Maton SDK, and a trigger that calls that function on a schedule or on an event. Those sections are the platform's own reference text, shared with the api-gateway skill, with Todoist examples; they add no Todoist capability - Todoist is not an event source, a trigger cannot read Todoist data, and the files under `references/<source>/triggers.md` are the platform's event catalogues for the sources Maton offers (time, Calendly, GitHub, Gmail, HubSpot, Linear, Notion, Slack, Stripe).
PowerPoint Automation
@fadelooAutomate common PowerPoint/WPS Presentation operations on Windows via COM (read text/notes/outline, export PDF/images, replace text, insert/delete slides, unify font/size/theme, extract images/media). Use for single-presentation actions (no batch).
Word Automation
@fadelooAutomate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings, headers/footers, page breaks, merge, split, export to PDF/TXT, add/replace images). Use for single-document actions (no batch).