ReferralHero MCP by usefulapi
v1.20.1Read ReferralHero campaigns, subscribers, referrals and rewards; add subscribers and points.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
referralhero_list_campaigns List campaigns
List the active ReferralHero campaigns (lists) in the account: uuid, name, subscriber count and creation time. The uuid is needed by every other tool. 10 per page. GET /lists.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
referralhero_get_leaderboard Get campaign leaderboard
The leaderboard of a campaign: its top subscribers (10 to 100) with referral counts, points and position. GET /lists/{uuid}/leaderboard.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
count | integer | How many top subscribers, 10-100 (default 10). |
referralhero_list_campaign_rewards List campaign rewards
The rewards configured for a campaign (title, description, referrals needed to win each). This is the reward setup, not who earned what: see referralhero_list_unlocked_rewards for that. GET /lists/{uuid}/bonuses.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_create_campaign Create campaign
WRITE: create a new ReferralHero campaign (list) with a name and a default referral URL. It adds a campaign and changes nothing existing. POST /lists.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign name. |
website * | string | Default referral URL (https://...). |
referralhero_list_subscribers List subscribers
List the subscribers of a campaign, 50 per page, with referral code, referral link, points, position, people referred, status and referrer. Sort and filter by the extra fields. GET /lists/{uuid}/subscribers.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
extra_field | string | Only subscribers whose extra field has this value. |
extra_field_2 | string | Only subscribers whose extra field 2 has this value. |
option_field | string | Only subscribers whose option field has this value. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Sort order. |
stripe_customer_id | string | Only the subscriber linked to this Stripe customer id. |
referralhero_get_subscriber Get subscriber
One subscriber by id: contact data, referral code and link, points, position, referrals by level, status, fraud risk level, tags. Only verified subscribers are found. GET /lists/{uuid}/subscribers/{id}.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_get_subscriber_by_email Find subscriber by email
Find one subscriber of a campaign by email. Only verified subscribers are found. GET /lists/{uuid}/subscribers/retrieve_by_email.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email. |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_get_subscriber_by_referral_code Find subscriber by referral code
Find the subscriber who owns a referral code (the mwr value in a referral link). Only verified subscribers are found. GET /lists/{uuid}/subscribers/retrieve_by_mwr.
| Parameter | Type | Description |
|---|---|---|
referral_code * | string | The referrer's referral code (the mwr parameter of a referral link). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_search_subscribers_by_name Search subscribers by name
Search subscribers by name across all campaigns of the account, 50 per page. GET /subscribers/search_by_name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name to search for. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
referralhero_list_referrals List a subscriber's referrals
The people a subscriber referred, 50 per page. scope: all (pending, unconfirmed and confirmed, default), level_1_confirmed, level_2_confirmed, level_3_confirmed (confirmed only, by referral level), level_2_all or level_3_all (every status at that level). GET /lists/{uuid}/subscribers/{id}/{referred|level_N_referrals|level_N_all_referrals}.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
scope | string | Which referrals (default all). |
sort_by | string | Sort order. |
referralhero_list_unlocked_rewards List earned rewards (campaign-wide)
Rewards unlocked by subscribers across a whole campaign: reward name, status (sent, resent, canceled, pending, flagged), value, subscriber email and id, coupon code, transaction. Filter by status to find rewards still to pay out. GET /lists/{uuid}/rewards.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-50 (default 10). |
status | string | Only rewards in this status. |
referralhero_list_subscriber_rewards List a subscriber's rewards
Rewards one subscriber has unlocked, with status, value and coupon code. The reward id is what referralhero_update_reward_status needs. GET /lists/{uuid}/subscribers/{id}/rewards.
| Parameter | Type | Description |
|---|---|---|
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
status | string | Only rewards in this status. |
referralhero_list_coupon_groups List coupon groups
Coupon groups of a campaign (id, name, active flag, coupons with availability), 50 per page. GET /lists/{uuid}/coupon_groups.
| Parameter | Type | Description |
|---|---|---|
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
referralhero_get_coupon_group Get coupon group
One coupon group with all its coupons (code, available, sent_at). GET /lists/{uuid}/coupon_groups/{id}.
| Parameter | Type | Description |
|---|---|---|
coupon_group_id * | string | Coupon group id (see referralhero_list_coupon_groups). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_add_subscriber Add subscriber
WRITE: add a subscriber (or a referred person) to a campaign. Give the campaign's unique identifier (email, phone, wallet or custom id). By default ReferralHero sends the subscriber a confirmation (double opt-in) email and any welcome automation of the campaign: set double_optin=false to suppress the confirmation email. Set referrer (a referral code or the referrer's email) to credit a referral. POST /lists/{uuid}/subscribers.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
advocate_name | string | Name of the advocate. |
conversion_category | string | Subscriber type for reports and segments. |
conversion_value | number | Monetary value of the referral. |
crypto_wallet_address | string | Wallet address (when it is the unique identifier). |
device | string | Device used to sign up, for analytics. |
domain | string | URL used for the subscriber's referral link. |
double_optin | boolean | false = do not send the confirmation email. Default: the campaign's setting (usually sends it). |
email | string | Subscriber email (when email is the campaign's unique identifier). |
extra_field | string | Extra field value. |
extra_field_2 | string | Extra field 2 value. |
name | string | Subscriber name. |
other_identifier_value | string | Custom identifier value (when a custom id is the unique identifier). |
phone_number | string | Subscriber phone number (when phone is the unique identifier). |
points | integer | Starting points (contest campaigns only). |
referrer | string | Referral code or email of the referrer to credit. |
self_reported_source | string | Where the subscriber says they heard about the campaign. |
source | string | Source, for analytics. |
status | string | custom_event_pending = set the referral status to pending (multi-step goals). |
stripe_customer_id | string | Stripe customer id to link. |
tags | array | Tags to assign. |
transaction_id | string | Unique id of the purchase this referral came from. |
referralhero_update_subscriber Update subscriber
WRITE: change fields of a subscriber (overwrites the given fields): name, contact identifiers, extra fields, points (contest campaigns), tags, address, referral status (qualified/unqualified). Only fields you pass change. Only verified subscribers can be updated. POST /lists/{uuid}/subscribers/{id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
address | string | Address. |
city | string | City. |
country | string | Country. |
crypto_wallet_address | string | Wallet address (when it is the unique identifier). |
email | string | Subscriber email (when email is the campaign's unique identifier). |
extra_field | string | New extra field value. |
extra_field_2 | string | New extra field 2 value. |
name | string | New name. |
other_identifier_value | string | Custom identifier value (when a custom id is the unique identifier). |
phone_number | string | Subscriber phone number (when phone is the unique identifier). |
points | integer | New points total (contest campaigns only). |
referral_status | string | Mark the referral qualified or unqualified. |
stripe_customer_id | string | Stripe customer id. |
tags | array | Tags to assign. |
referralhero_delete_subscriber Delete subscriber
WRITE, DESTRUCTIVE: permanently delete a subscriber from a campaign, with their referral standing. This cannot be undone. DELETE /lists/{uuid}/subscribers/{id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved permanently deleting this subscriber. |
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_add_points Add points to a subscriber
WRITE: add points to an existing subscriber (not idempotent: each call adds again). May unlock point-based rewards. The subscriber is identified by the campaign's unique identifier. POST /lists/{uuid}/subscribers/add_points.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
points * | integer | Points to add. |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
crypto_wallet_address | string | Wallet address (when it is the unique identifier). |
email | string | Subscriber email (when email is the campaign's unique identifier). |
other_identifier_value | string | Custom identifier value (when a custom id is the unique identifier). |
phone_number | string | Subscriber phone number (when phone is the unique identifier). |
referralhero_track_transaction Track a transaction
WRITE: record a purchase/transaction for a subscriber (amount required) so revenue-based rewards and reports count it (not idempotent unless a transaction_id is reused). The subscriber is identified by the campaign's unique identifier. POST /lists/{uuid}/subscribers/add_transactions.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount of the transaction. |
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
crypto_wallet_address | string | Wallet address (when it is the unique identifier). |
email | string | Subscriber email (when email is the campaign's unique identifier). |
lifetime_spend | number | The subscriber's total lifetime spend. |
other_identifier_value | string | Custom identifier value (when a custom id is the unique identifier). |
phone_number | string | Subscriber phone number (when phone is the unique identifier). |
product_id | string | Product id (for product-based rewards). |
reward_value | number | A reward value to attach to the transaction. |
transaction_id | string | Your unique transaction id. |
referralhero_confirm_referral Confirm a referral
WRITE: confirm a verified referral when its third conversion event happens (campaigns whose goal tracks three events; otherwise ReferralHero returns an error). Confirming can unlock the referrer's rewards and send reward emails. Identify the referral by subscriber_id, or by the campaign's unique identifier. POST /lists/{uuid}/subscribers/{id}/confirm or /subscribers/confirm.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
conversion_value | number | Referral conversion value. |
crypto_wallet_address | string | Wallet address (when it is the unique identifier). |
email | string | Subscriber email (when email is the campaign's unique identifier). |
other_identifier_value | string | Custom identifier value (when a custom id is the unique identifier). |
phone_number | string | Subscriber phone number (when phone is the unique identifier). |
subscriber_id | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
referralhero_track_conversion_event Track a referral conversion event
WRITE: report a conversion event for a referral (campaigns whose goal tracks two or three events). Updates the referral from pending to confirmed (two events) or unconfirmed (three). If the referral is unknown but a referrer is given, the referral is created. May unlock rewards. POST /lists/{uuid}/subscribers/track_referral_conversion_event.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
conversion_value | number | Referral conversion value. |
crypto_wallet_address | string | Wallet address (when it is the unique identifier). |
email | string | Subscriber email (when email is the campaign's unique identifier). |
other_identifier_value | string | Custom identifier value (when a custom id is the unique identifier). |
phone_number | string | Subscriber phone number (when phone is the unique identifier). |
product_id | string | Product id (for product-based rewards). |
referrer | string | Unique identifier of the referrer (needed to create a missing referral). |
stripe_customer_id | string | Stripe customer id. |
tags | array | Tags to assign. |
transaction_id | string | Transaction id for the event. |
referralhero_qualify_referral Mark referral qualified
WRITE: mark a referral as qualified, so it counts toward the referrer's rewards. POST /lists/{uuid}/subscribers/{id}/qualify.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_unqualify_referral Mark referral unqualified
WRITE: mark a referral as unqualified (for example fraud or a refund), so it no longer counts toward the referrer's rewards. POST /lists/{uuid}/subscribers/{id}/unqualify.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_promote_subscriber Promote subscriber (winner)
WRITE: promote a subscriber to the campaign's winners list (contests and giveaways). Only verified subscribers can be promoted; an already promoted subscriber returns an error. POST /lists/{uuid}/subscribers/{id}/promote.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). |
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_unlock_promoted_reward Trigger a manual reward
WRITE: unlock a promoted-winner or one-off reward for a subscriber. This delivers the reward and may email the subscriber and use coupon codes. POST /lists/{uuid}/subscribers/{id}/unlock_promoted_reward.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved delivering this reward to the subscriber now. |
reward_id * | string | Id of the promotion reward (see referralhero_list_campaign_rewards). |
subscriber_id * | string | Subscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber). |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_update_reward_status Update reward status
WRITE: set the status of an unlocked reward to sent, resent or canceled. Marking sent/resent can trigger the reward delivery email to the subscriber. Get the reward_id from referralhero_list_subscriber_rewards or referralhero_list_unlocked_rewards. POST /lists/{uuid}/subscribers/update_reward_status.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: the user has approved this reward status change (sent/resent can email the reward; canceled withdraws it). |
reward_id * | string | Id of the unlocked reward. |
status * | string | New status. |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
referralhero_create_coupon_group Create coupon group
WRITE: create a coupon group for a campaign, optionally with its first coupon codes. It only adds a group. POST /lists/{uuid}/coupon_groups.
| Parameter | Type | Description |
|---|---|---|
name * | string | Coupon group name. |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |
active | boolean | Whether the group is active (default true). |
coupons | array | Coupon codes to put in the group. |
referralhero_add_coupons Add coupons to a group
WRITE: add coupon codes to an existing coupon group. It only adds codes. POST /lists/{uuid}/coupons.
| Parameter | Type | Description |
|---|---|---|
coupon_group_id * | string | Coupon group id (see referralhero_list_coupon_groups). |
coupons * | array | Coupon codes to add. |
uuid * | string | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). |