ReferralHero MCP by usefulapi

v1.20.1
io.usefulapi/referralhero Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
pageintegerPage 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.

ParameterTypeDescription
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
countintegerHow 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.

ParameterTypeDescription
uuid *stringCampaign (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.

ParameterTypeDescription
name *stringCampaign name.
website *stringDefault 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.

ParameterTypeDescription
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
extra_fieldstringOnly subscribers whose extra field has this value.
extra_field_2stringOnly subscribers whose extra field 2 has this value.
option_fieldstringOnly subscribers whose option field has this value.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringSort order.
stripe_customer_idstringOnly 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}.

ParameterTypeDescription
subscriber_id *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (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.

ParameterTypeDescription
email *stringThe subscriber's email.
uuid *stringCampaign (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.

ParameterTypeDescription
referral_code *stringThe referrer's referral code (the mwr parameter of a referral link).
uuid *stringCampaign (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.

ParameterTypeDescription
name *stringName to search for.
pageintegerPage 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}.

ParameterTypeDescription
subscriber_id *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
scopestringWhich referrals (default all).
sort_bystringSort 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.

ParameterTypeDescription
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-50 (default 10).
statusstringOnly 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.

ParameterTypeDescription
subscriber_id *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
statusstringOnly 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.

ParameterTypeDescription
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
pageintegerPage 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}.

ParameterTypeDescription
coupon_group_id *stringCoupon group id (see referralhero_list_coupon_groups).
uuid *stringCampaign (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.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
advocate_namestringName of the advocate.
conversion_categorystringSubscriber type for reports and segments.
conversion_valuenumberMonetary value of the referral.
crypto_wallet_addressstringWallet address (when it is the unique identifier).
devicestringDevice used to sign up, for analytics.
domainstringURL used for the subscriber's referral link.
double_optinbooleanfalse = do not send the confirmation email. Default: the campaign's setting (usually sends it).
emailstringSubscriber email (when email is the campaign's unique identifier).
extra_fieldstringExtra field value.
extra_field_2stringExtra field 2 value.
namestringSubscriber name.
other_identifier_valuestringCustom identifier value (when a custom id is the unique identifier).
phone_numberstringSubscriber phone number (when phone is the unique identifier).
pointsintegerStarting points (contest campaigns only).
referrerstringReferral code or email of the referrer to credit.
self_reported_sourcestringWhere the subscriber says they heard about the campaign.
sourcestringSource, for analytics.
statusstringcustom_event_pending = set the referral status to pending (multi-step goals).
stripe_customer_idstringStripe customer id to link.
tagsarrayTags to assign.
transaction_idstringUnique 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}.

ParameterTypeDescription
confirm *booleanMust 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 *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
addressstringAddress.
citystringCity.
countrystringCountry.
crypto_wallet_addressstringWallet address (when it is the unique identifier).
emailstringSubscriber email (when email is the campaign's unique identifier).
extra_fieldstringNew extra field value.
extra_field_2stringNew extra field 2 value.
namestringNew name.
other_identifier_valuestringCustom identifier value (when a custom id is the unique identifier).
phone_numberstringSubscriber phone number (when phone is the unique identifier).
pointsintegerNew points total (contest campaigns only).
referral_statusstringMark the referral qualified or unqualified.
stripe_customer_idstringStripe customer id.
tagsarrayTags 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}.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved permanently deleting this subscriber.
subscriber_id *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (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.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations).
points *integerPoints to add.
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
crypto_wallet_addressstringWallet address (when it is the unique identifier).
emailstringSubscriber email (when email is the campaign's unique identifier).
other_identifier_valuestringCustom identifier value (when a custom id is the unique identifier).
phone_numberstringSubscriber 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.

ParameterTypeDescription
amount *numberAmount of the transaction.
confirm *booleanMust be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
crypto_wallet_addressstringWallet address (when it is the unique identifier).
emailstringSubscriber email (when email is the campaign's unique identifier).
lifetime_spendnumberThe subscriber's total lifetime spend.
other_identifier_valuestringCustom identifier value (when a custom id is the unique identifier).
phone_numberstringSubscriber phone number (when phone is the unique identifier).
product_idstringProduct id (for product-based rewards).
reward_valuenumberA reward value to attach to the transaction.
transaction_idstringYour 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.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
conversion_valuenumberReferral conversion value.
crypto_wallet_addressstringWallet address (when it is the unique identifier).
emailstringSubscriber email (when email is the campaign's unique identifier).
other_identifier_valuestringCustom identifier value (when a custom id is the unique identifier).
phone_numberstringSubscriber phone number (when phone is the unique identifier).
subscriber_idstringSubscriber 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.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations).
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
conversion_valuenumberReferral conversion value.
crypto_wallet_addressstringWallet address (when it is the unique identifier).
emailstringSubscriber email (when email is the campaign's unique identifier).
other_identifier_valuestringCustom identifier value (when a custom id is the unique identifier).
phone_numberstringSubscriber phone number (when phone is the unique identifier).
product_idstringProduct id (for product-based rewards).
referrerstringUnique identifier of the referrer (needed to create a missing referral).
stripe_customer_idstringStripe customer id.
tagsarrayTags to assign.
transaction_idstringTransaction 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.

ParameterTypeDescription
confirm *booleanMust 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 *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (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.

ParameterTypeDescription
confirm *booleanMust 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 *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (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.

ParameterTypeDescription
confirm *booleanMust 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 *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (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.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved delivering this reward to the subscriber now.
reward_id *stringId of the promotion reward (see referralhero_list_campaign_rewards).
subscriber_id *stringSubscriber id, e.g. sub_2bad325a25d7 (the id field of a subscriber).
uuid *stringCampaign (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.

ParameterTypeDescription
confirm *booleanMust be true: the user has approved this reward status change (sent/resent can email the reward; canceled withdraws it).
reward_id *stringId of the unlocked reward.
status *stringNew status.
uuid *stringCampaign (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.

ParameterTypeDescription
name *stringCoupon group name.
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).
activebooleanWhether the group is active (default true).
couponsarrayCoupon 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.

ParameterTypeDescription
coupon_group_id *stringCoupon group id (see referralhero_list_coupon_groups).
coupons *arrayCoupon codes to add.
uuid *stringCampaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns).