GrowSurf MCP Server
OfficialGrowSurf MCP Server
Официальный интерфейс командной строки (CLI) GrowSurf и сервер Model Context Protocol (MCP) с открытым исходным кодом для внедрения реферальных и партнёрских программ GrowSurf с пошаговыми инструкциями и безопасными обёртками REST API.
Подключите его к ИИ-агенту, и на простом языке агент сможет создать реферальную или партнёрскую программу, настроить вознаграждения, установить отслеживание, добавлять и управлять участниками, а также читать аналитику — всё на основе REST API GrowSurf.
Узнайте больше о GrowSurf на https://growsurf.com
Узнайте больше об этом MCP-сервере на https://docs.growsurf.com/build-with-ai
Для кого это
Этот MCP-сервер предназначен для:
Разработчиков, использующих инструменты, совместимые с MCP (Claude Code, Codex, Cursor, Copilot и другие MCP-клиенты)
Команд, которым нужны управляемые интеграции GrowSurf с помощью ИИ
Этот MCP-сервер НЕ предназначен для:
Пользователей, работающих только в браузере и желающих локальную установку stdio. ChatGPT web, Claude.ai и Claude Desktop не запускают локальный MCP-сервер, но все три подключаются к GrowSurf через размещённый удалённый коннектор по адресу
https://mcp.growsurf.com. Полный список клиентов и настройку см. на https://docs.growsurf.com/build-with-ai#mcp.
Related MCP server: agentfuse-mcp
Что вы получаете
Управляемая интеграция:
Установка универсального кода
Рекомендации по внедрению нативных iOS/Android SDK
Рекомендации по нативному окну GrowSurf
Поток регистрации
Поток квалифицирующего действия
Отслеживание продаж / транзакций партнёров
Вебхуки
Рецепты для агентов:
MCP-промпты для создания реферальных программ, создания партнёрских программ, встраивания виджета, перечисления и получения программ и участников, настройки вознаграждений, подключения вебхуков и чтения аналитики
Устанавливаемый набор навыков агента в
skills/growsurf-agent-toolkitНаправление на проверку стартового дизайна, писем, параметров, установки, вознаграждений и содержимого окна GrowSurf перед внесением изменений
Промпты для одноразового создания программы и проверки приёмки для стартового содержимого и проверки конфигурации
Обёртки REST API для счастливого пути:
Создание аккаунта и получение API-ключа без существующих учётных данных
Чтение и переименование привязанной команды, запрос верификации команды и повторная отправка письма с подтверждением владельцу команды
Перечисление и получение кампаний
Получение аналитики кампании (итоги, необязательные временные ряды по периодам, метрики электронной почты, итоги за предыдущий период, счётчики статусов и коэффициенты)
Создание, обновление и клонирование программ (кампаний)
Перечисление, создание, обновление и удаление вознаграждений кампании
Получение/обновление конфигурации дизайна, писем, параметров и установки
Создание временных предварительных снимков экрана GrowSurf, когда пользователь явно запрашивает визуальное подтверждение
Перечисление, создание, обновление, удаление и тестирование вебхуков программы
Перечисление, получение и добавление участников
Обновление участника, отправка письма участнику и получение аналитики и журналов активности участника
Начисление реферального кредита (для реферальных программ) с возможностью отложенного начисления (1–90 дней)
Отмена ожидающего отложенного реферального триггера (для реферальных программ)
Запись продажи/транзакции партнёра (для партнёрских программ)
Создание мобильных токенов участников для вошедших в систему пользователей нативных приложений
Официальные фрагменты библиотеки API:
TypeScript
Python
PHP
Ruby
Java
Помощники:
Вычисление HMAC-хэша для автоматической аутентификации участника
Нормализация полезных нагрузок вебхуков
Генерация ключей идемпотентности с максимальным усилием для дедупликации вебхуков
Требования
Node.js 22+
Аккаунт GrowSurf для размещённого OAuth
API-ключ GrowSurf для локальной настройки stdio или ручной удалённой настройки с API-ключом. Ключ с ограниченными правами подойдёт, если он имеет доступ к инструментам и программам, которые агент должен использовать.
Идентификатор кампании (программы) для инструментов, ограниченных кампанией. Установите
GROWSURF_CAMPAIGN_IDпо умолчанию, передайте аргументcampaignIdдля конкретной программы или вызовитеgrowsurf_list_campaigns, чтобы найти доступные программы. Для новой программы передайтеid, возвращённыйgrowsurf_create_campaign, в другие инструменты.Статические инструменты с руководствами и фрагментами могут работать без учётных данных
Исключение:
growsurf_create_accountне требует API-ключа. Он создаёт новый аккаунт и возвращает API-ключ. Инструментам уровня команды не нужен идентификатор кампании.Каждый перечисленный инструмент публикует стандартные подсказки безопасности MCP: только чтение, деструктивные, идемпотентные и открытые. Ограниченные бизнес-действия остаются доступными; ротация API-ключей намеренно не является инструментом MCP. Вращайте ключи в настройках GrowSurf или через прямой REST/SDK-клиент.
Официальный CLI
Пакет npm устанавливает команду growsurf-mcp. Запустите её без глобальной установки:
npx -y @growsurfteam/growsurf-mcpCLI запускает локальный stdio-сервер MCP GrowSurf. Установите GROWSURF_API_KEY для действий, использующих API, и GROWSURF_CAMPAIGN_ID для программы по умолчанию. Публичные ресурсы для разработчиков и статические руководства по интеграции работают без учётных данных.
Проверьте установленную команду, не запуская stdio-сервер:
npx -y @growsurfteam/growsurf-mcp --help
npx -y @growsurfteam/growsurf-mcp --versionПоддерживаемые MCP-хосты
Рекомендуемый путь — размещённая конечная точка OAuth GrowSurf по адресу https://mcp.growsurf.com, если ваш хост поддерживает удалённый Streamable HTTP с OAuth. Используйте локальный сервер npx, если вашему хосту нужен процесс stdio или ручная настройка API-ключа. Ещё нет аккаунта GrowSurf? Агент может подключиться к размещённой конечной точке онбординга https://mcp.growsurf.com/onboard без учётных данных и вызвать growsurf_create_account для регистрации.
Сервер MCP GrowSurf работает с любым хостом, совместимым с MCP. Примеры ниже охватывают несколько хостов на основе конфигурации и CLI. Полный актуальный список поддерживаемых клиентов (включая ChatGPT web, Claude.ai, Claude Desktop, GitHub Copilot, Gemini CLI, Devin Desktop и Cline) с пошаговой настройкой см. на https://docs.growsurf.com/build-with-ai#mcp.
Cursor
Claude Code (на основе CLI)
Antigravity
Codex (на основе CLI)
Cursor
Откройте или создайте глобальную MCP-конфигурацию Cursor в
~/.cursor/mcp.json.Добавьте сервер с именем
growsurfс размещённой конечной точкой OAuth:
{
"mcpServers": {
"growsurf": {
"type": "http",
"url": "https://mcp.growsurf.com"
}
}
}Для локального stdio вместо этого используйте:
{
"mcpServers": {
"growsurf": {
"command": "npx",
"args": ["-y", "@growsurfteam/growsurf-mcp"],
"env": {
"GROWSURF_API_KEY": "YOUR_API_KEY",
"GROWSURF_CAMPAIGN_ID": "YOUR_CAMPAIGN_ID"
}
}
}
}Claude Code (на основе CLI)
Откройте терминал и подключите Claude Code к размещённой конечной точке OAuth:
claude mcp add --transport http --scope user growsurf https://mcp.growsurf.com
claude mcp login growsurfДля локального stdio вместо этого установите сервер непосредственно в Claude Code:
claude mcp add growsurf \
-e GROWSURF_API_KEY=your_api_key \
-e GROWSURF_CAMPAIGN_ID=your_campaign_id \
-- npx -y @growsurfteam/growsurf-mcpAntigravity
Откройте Antigravity.
Нажмите меню … на панели справа и выберите MCP Servers.
Нажмите Manage MCP Servers > View raw config.
Рекомендуется: в файле
mcp_config.jsonдобавьте размещённую конечную точку OAuth:
{
"mcpServers": {
"growsurf": {
"serverUrl": "https://mcp.growsurf.com"
}
}
}Сохраните конфигурацию, откройте Settings > Customizations и выберите Authenticate для GrowSurf.
Для локального stdio вместо этого используйте:
{
"mcpServers": {
"growsurf": {
"command": "npx",
"args": ["-y", "@growsurfteam/growsurf-mcp"],
"env": {
"GROWSURF_API_KEY": "YOUR_API_KEY",
"GROWSURF_CAMPAIGN_ID": "YOUR_CAMPAIGN_ID"
}
}
}
}Codex
Рекомендуется: подключите Codex к размещённой конечной точке OAuth:
codex mcp add growsurf --url https://mcp.growsurf.com
codex mcp login growsurfИли создайте или отредактируйте ~/.codex/config.toml:
[mcp_servers.growsurf]
url = "https://mcp.growsurf.com"Для локального stdio вместо этого добавьте следующее:
[mcp_servers.growsurf]
command = "npx"
args = ["-y", "@growsurfteam/growsurf-mcp"]
[mcp_servers.growsurf.env]
GROWSURF_API_KEY = "YOUR_API_KEY"
GROWSURF_CAMPAIGN_ID = "YOUR_CAMPAIGN_ID"Или настройте локальный stdio из CLI:
codex mcp add growsurf \
--env GROWSURF_API_KEY=YOUR_API_KEY \
--env GROWSURF_CAMPAIGN_ID=YOUR_CAMPAIGN_ID \
-- npx -y @growsurfteam/growsurf-mcpКонфигурация
Установите следующие переменные окружения при запуске MCP-сервера:
GROWSURF_API_KEY(необязательно для запуска; требуется для инструментов, вызывающих API. Используйте ключ с областями доступа и доступом к программам, которые нужны этим инструментам)GROWSURF_CAMPAIGN_ID(необязательно; программа по умолчанию для инструментов, ограниченных кампанией. АргументcampaignIdинструмента переопределяет его, поэтому один сервер может работать с любыми вашими программами)GROWSURF_API_BASE_URL(необязательно; по умолчаниюhttps://api.growsurf.com/v2. Полезно для локальных или размещённых MCP-шлюзов, которые должны вызывать другой источник API GrowSurf)GROWSURF_PARTICIPANT_AUTH_SECRET(необязательно; используется помощником хэширования)GROWSURF_WEBHOOK_TOKEN(необязательно; используется для вашей собственной схемы токенов URL вебхуков)
Запуск с npx
После публикации этого пакета клиенты могут запустить:
npx @growsurfteam/growsurf-mcpДля локальной разработки в этом репозитории:
npm install
npm run build
node dist/cli.jsИнструменты MCP
Каждый инструмент объявляет схему вывода MCP и возвращает structuredContent, поэтому хосты знают форму результата каждого инструмента. Инструменты REST возвращают ответ API (плюс текстовый блок JSON для старых клиентов); инструменты с руководствами и фрагментами возвращают свой документ Markdown в поле markdown.
Управляемая интеграция
growsurf_integration_guideПошаговые рекомендации по внедрению реферальной или партнёрской программы GrowSurf.growsurf_mobile_sdk_guideРекомендации по нативным iOS/Android SDK для атрибуции,shareUrl,trackShareи нативного окна GrowSurf.growsurf_api_library_snippetsОфициальные фрагменты библиотеки REST API для TypeScript, Python, PHP, Ruby и Java.growsurf_get_integration_connect_linkПолучите ссылку на панель управления, которая открывает панель подключения конкретной интеграции (Stripe, PayPal, Tango Card, Mailchimp и многие другие). Передайте её пользователю, когда он захочет подключить интеграцию. Подключение происходит в панели управления, а не через API.
Фрагменты для клиента и интерфейса
growsurf_client_snippetsПримеры JavaScript SDK, окна GrowSurf и встраиваемых элементов. Включает напоминание об использовании рабочего процесса дизайна интерфейса при размещении или стилизации встраиваемого интерфейса.growsurf_embeddable_element_snippetHTML-фрагмент для конкретного встраиваемого элемента GrowSurf.growsurf_grsf_config_snippetФрагмент<head>для настройкиwindow.grsfConfigи автоматической аутентификации участника.
Онбординг аккаунта
growsurf_create_accountСоздайте аккаунт GrowSurf и получите API-ключ. Это единственный инструмент, который не требуетGROWSURF_API_KEY. Возвращённый ключ показывается один раз и блокируется (403EMAIL_NOT_VERIFIED_ERROR), пока владелец не подтвердит свою электронную почту. Ключ ротируется при первом входе владельца в панель управления. Создание аккаунта означает согласие от имени владельца аккаунта с Условиями предоставления услуг и Политикой конфиденциальности GrowSurf.
Команда
growsurf_get_teamПолучите команду, привязанную к API-ключу или OAuth-подключению, включая состояние верификации GrowSurf.growsurf_update_teamОбновите отображаемое имя привязанной команды.growsurf_request_team_verificationЗапросите у GrowSurf верификацию привязанной команды, которая требуется перед отправкой писем участникам программы.growsurf_resend_team_owner_verification_emailПовторно отправьте письмо с подтверждением владельцу привязанной команды, не раскрывая его адрес электронной почты.
API и отслеживание
growsurf_get_campaignПолучить конфигурацию кампании.growsurf_list_campaignsВывести список программ, доступных для учетных данных. Используйте этот инструмент, чтобы найтиcampaignIdперед вызовом инструментов, ограниченных кампанией.growsurf_get_campaign_analyticsПолучить аналитику программы с опциональными данными за периодseries, сравнением, статусом, ставкой, а также данными о доставке писем и вовлеченности черезinclude=email.growsurf_create_campaignСоздать новую программу (кампанию) со стартовым контентом, соответствующим типу, и опциональными встроенными вознаграждениями (требуется толькоGROWSURF_API_KEY, неGROWSURF_CAMPAIGN_ID). Проверьте сгенерированный контент во вкладках Design, Emails, Options, Installation, вознаграждения и GrowSurf Window перед внесением изменений.growsurf_agent_program_creation_evalСгенерировать одноразовые eval-промпты для создания программы и проверки приемки: стартовый контент, консервативные вознаграждения, проверка конфигурации, доказательство установки на фронтенде и чистый публичный текст.growsurf_update_campaignОбновить идентичность и жизненный цикл программы: название, брендинг компании и статус (изменяются только те поля, которые вы отправляете).growsurf_clone_campaignКлонировать программу в новую программу со статусомDRAFT(интеграции и учетные данные не копируются).growsurf_list_campaign_rewardsВывести список настроенных вознаграждений программы.growsurf_create_campaign_rewardСоздать вознаграждение кампании.growsurf_update_campaign_rewardОбновить вознаграждение кампании по его ключу вознаграждения.growsurf_delete_campaign_rewardУдалить вознаграждение кампании по его ключу вознаграждения.growsurf_get_campaign_design/growsurf_update_campaign_designПрочитать или изменить конфигурацию дизайна, включая вкладку Design в редакторе программы и текст страницы подтверждения способа выплаты.growsurf_get_campaign_emails/growsurf_update_campaign_emailsПрочитать или изменить конфигурацию вкладки Emails в редакторе программы.growsurf_get_campaign_options/growsurf_update_campaign_optionsПрочитать или изменить конфигурацию вкладки Options в редакторе программы.growsurf_get_campaign_installation/growsurf_update_campaign_installationПрочитать или изменить конфигурацию вкладки Installation в редакторе программы.growsurf_capture_referral_flow_screenshotsСделать временные скриншоты предпросмотра GrowSurf для текущей программы после того, как пользователь явно запросит визуальное подтверждение. Этот инструмент возвращает контролируемый опыт реферера и приглашенного друга; для подтверждения установки на сайте пользователя используйте автоматизацию браузера.growsurf_list_campaign_webhooksВывести список вебхуков программы (секреты никогда не возвращаются).growsurf_create_campaign_webhookДобавить вебхук в программу (с событиями и секретом подписи только для записи).growsurf_update_campaign_webhookОбновить вебхук по id (primaryдля основного вебхука программы).growsurf_delete_campaign_webhookУдалить вебхук по id.growsurf_test_campaign_webhookОтправить живое тестовое событие на вебхук, используя его сохраненные URL и секрет.growsurf_add_participantДобавить участника (или приглашенного участника) при регистрации.growsurf_list_participantsВывести список участников текущей программы с пагинацией поnextId. Используйте этот инструмент, чтобы найти ID участника перед вызовом инструментов, ограниченных участником.growsurf_get_participantПолучить одного участника по GrowSurf ID участника или адресу электронной почты.growsurf_update_participantОбновить участника по ID или email (включая внутренниеnotes).growsurf_bulk_delete_participantsНавсегда удалить до 200 участников (по ID и/или email, смешанные списки допускаются) одним запросом, с результатамиDELETED/NOT_FOUND/DUPLICATE/ERRORпо каждой строке. Необратимо — удаляет реферальные ссылки участников, вознаграждения, комиссии и записи о выплатах.growsurf_email_participantОтправить письмо участнику, используя настроенный шаблон или свободную тему/текст.growsurf_get_participant_analyticsПолучить данные одного участника: вовлеченность, рейтинг, шеринг, доход от партнерской программы, комиссию, выплаты и опциональные email-метрики. Используйтеinclude=series,include=emailили оба значения через запятую.growsurf_get_participant_activity_logsВывести список журналов активности участника (пагинация по offset/limit).growsurf_trigger_referralАктивировать реферальную ссылку (только для реферальных программ). Опционально передайтеdelayInDays(1-90), чтобы удержать начисление на N дней перед выдачей (например, для покрытия периода возврата).growsurf_cancel_delayed_referralОтменить ожидающую отложенную активацию реферальной ссылки до истечения задержки (например, при возврате/отмене).growsurf_get_participant_payout_destinationПолучить статус способа выплаты участника по каждому провайдеру, включенному для программы (PayPal и/или Wise): статус по провайдеру, подтвержденный email для выплат, юридический тип получателя и причину исправления.growsurf_request_participant_payout_destination_confirmationПопросить участника подтвердить способ выплаты для провайдера — отправить ему одноразовую ссылку для подтверждения (подтвердить может только сам участник).growsurf_record_saleЗаписать продажи или транзакции партнерской программы (только для партнерских программ).growsurf_refund_transactionЗаписать корректировку (возврат, частичный возврат или чарджбэк) по записанной транзакции; отменяет или корректирует комиссию реферера (только для партнерских программ). Обратная операция кgrowsurf_record_sale.growsurf_create_mobile_participant_tokenСоздать или получить участника, затем создать токен мобильного SDK с областью участника для авторизованного мобильного пользователя.
Вспомогательные инструменты
growsurf_participant_auth_hashСгенерировать HMAC-хеши автоматической аутентификации участника (для автоматической аутентификации участников).growsurf_webhook_normalizeНормализовать полезные нагрузки вебхуков и сгенерировать ключи идемпотентности (для дедупликации доставок вебхуков).
Вебхуки
Вебхуки GrowSurf уведомляют ваш сервер о важных событиях реферальной или партнерской программы, например, когда создаются новые объекты, такие как участники, реферальные ссылки, вознаграждения или транзакции. Вот распространенные сценарии использования:
Автоматическое выполнение вознаграждений
Поддержание внутренних систем баллов или кредитов
Синхронизация данных об участниках и реферальных ссылках в вашу базу данных
Обработка дублирующихся доставок
Обработчики вебхуков должны быть идемпотентными, потому что одно и то же событие может прийти более одного раза. Сохраняйте ключ идемпотентности перед любыми изменениями в вашей системе.
Безопасность вебхуков и идемпотентность
GrowSurf подписывает доставки вебхуков, когда у вебхука настроен secret: каждая доставка включает HMAC-заголовок GrowSurf-Signature, вычисленный с этим секретом (секрет доступен только для записи и никогда не возвращается). Для безопасного использования вебхуков мы рекомендуем следующее:
Установите
secretна вебхуке и проверяйте заголовокGrowSurf-Signatureпри полученииПроверяйте форму полезной нагрузки и ожидаемый тип события
Дедуплицируйте события вебхуков с помощью ключа идемпотентности, потому что одно и то же событие может прийти более одного раза
MCP-сервер GrowSurf предоставляет вспомогательный инструмент (growsurf_webhook_normalize), который нормализует полезные нагрузки вебхуков и генерирует ключ идемпотентности по мере возможности, чтобы упростить безопасную обработку вебхуков.
Разработка и тестирование
npm run dev
npm testДополнительные ресурсы
Ознакомьтесь с документацией для разработчиков по следующим ссылкам:
Справочник JavaScript SDK: https://docs.growsurf.com/developer-tools/javascript-sdk/api-reference
Справочник REST API: https://docs.growsurf.com/developer-tools/rest-api/api-reference
Библиотеки REST API: https://docs.growsurf.com/developer-tools/rest-api/api-libraries
Руководство для нативных мобильных приложений: https://docs.growsurf.com/getting-started-for-native-mobile
Android SDK: https://docs.growsurf.com/developer-tools/android-sdk
Начало работы с GrowSurf: https://docs.growsurf.com/getting-started
MCP-сервер GrowSurf помогает клиентам GrowSurf быстро внедрять реферальные и партнерские программы.
Available Tools
71 toolsgrowsurf_add_participantAdd ParticipantAInspect
Add or fetch a participant by email. If the email already exists, the existing participant is returned unchanged. One exception: if that participant claimed an offer in the Claim Offer Popup and the signup is not complete yet, this call completes the signup with the original referrer and saves any non-blank firstName, lastName, and metadata you send. This is trusted direct enrollment and bypasses the public application review flow for affiliates. For affiliate programs, set isAffiliate to true to enroll a new participant as approved or false to create a non-affiliate. If you omit it, a valid referredBy creates a referred non-affiliate; without a valid referrer, the new participant is enrolled as approved. A valid referredBy can be combined with isAffiliate: true. A 409 means the same participant is already being added or cannot join right now, so do not retry in a loop. A 422 means the program's fraud rules blocked the participant. A 409 with STATE_RESTRICTED means the program is not available in the person's US state, so the participant is not added. Pass usState to check the state. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: email (required), campaignId (required), groupId, usState, +11 more. Returns: The created participant, or the existing participant when the email already exi…
growsurf_agent_program_creation_evalGenerate Program Creation ChecksARead-onlyIdempotentInspect
Generate Markdown prompts and acceptance checks for evaluating an agent's program-creation workflow: starter content, rewards, configuration, and frontend installation. Does not create a program or run the checks. Use growsurf_program_design_advisor to choose a program design, or growsurf_integration_guide to plan its web integration.
Inputs: programType, includeOneShotPrompts. Returns: Program-creation eval prompts and acceptance checks, as a markdown document.
growsurf_api_library_snippetsGenerate REST API Library SnippetsARead-onlyIdempotentInspect
Generate Markdown code examples for the official backend REST API libraries in TypeScript, Python, PHP, Ruby, and Java. Select language and workflow; both default to all. Covers setup, program lookup, participant creation, referral credit, sales, and mobile participant tokens. Returns code without executing API calls. Use growsurf_client_snippets for browser JavaScript or growsurf_mobile_sdk_guide for native or React Native app setup.
Inputs: email, language, workflow, campaignId, +2 more. Returns: REST API integration snippets for the official libraries, as a markdown documen…
growsurf_bulk_delete_participantsBulk Delete ParticipantsADestructiveIdempotentInspect
Bulk delete participants from your GrowSurf program in one request. DESTRUCTIVE: deletion is permanent and cannot be undone. Successful rows lose participant access immediately; related record cleanup completes automatically, subject to required financial record retention. Each entry in participants is a GrowSurf participant ID or an email address (mixed lists are allowed), up to 200 entries per request — chunk larger lists across multiple calls. Returns a summary (total, deletedCount, notFoundCount, duplicateCount, errorCount) plus per-row results in request order, each with status DELETED, NOT_FOUND, DUPLICATE (resolves to the same participant as an earlier entry), or ERROR — both 200 and 202 responses can include NOT_FOUND or ERROR rows, and the summary reports these outcomes. A 202 response includes analyticsErasure when analytics erasure is pending. DELETED means participant access was removed; reports can retain the participant until cleanup completes. Do not repeat successful rows to finish cleanup. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), participants (required). Returns: Bulk delete outcome. A `202` response includes `analyticsErasure` when analytic…
growsurf_bulk_move_participantsBulk Move ParticipantsADestructiveIdempotentInspect
Move participants in your GrowSurf program to a group, or to Default with groupId: null. Each entry in participants is a GrowSurf participant ID or an email address (mixed lists are allowed), up to 200 entries per request. All found participants move together: if the move fails, no one moves. A move is a manual placement, so the groups' email and domain rules do not override it later. A move applies to new referrals only; rewards already earned keep their amounts. Returns a summary (total, groupId, movedCount, notFoundCount, duplicateCount, errorCount) plus per-row results in request order, each with status MOVED, NOT_FOUND, DUPLICATE, or ERROR. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: groupId (required), campaignId (required), participants (required). Returns: Bulk move outcome. A `200` can include `NOT_FOUND`, `DUPLICATE`, or `ERROR` row…
growsurf_cancel_delayed_referralCancel Delayed ReferralADestructiveIdempotentInspect
Cancel a pending delayed referral trigger for a participant before the delay elapses (e.g. on refund/cancellation). Returns { success, message }; success is false when the participant has no pending delayed trigger. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), participantId, participantEmail. Returns: message, success
growsurf_capture_referral_flow_screenshotsCapture Referral Flow ScreenshotsAInspect
Capture temporary GrowSurf preview screenshots after a draft program is saved. Returns short-lived URLs for what a participant sees when they share and what a referred friend sees: the program's GrowSurf-hosted pages when it uses them, otherwise the GrowSurf window and the referred-friend experience on a sample page, with an expiresAt timestamp in UTC. If a hosted page cannot be loaded, that image shows the sample page instead. The screenshots reflect the saved program at capture time and do not verify installation on the customer's site. A failed inline image alone does not establish that the URL expired. This tool does not accept arbitrary URLs, HTML, JavaScript, or external screenshot targets. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: Private, temporary screenshots of the program's referral flow. The URLs are sig…
growsurf_client_snippetsGenerate Browser JavaScript SnippetsARead-onlyIdempotentInspect
Generate Markdown browser JavaScript and CSS examples for referral tracking, embeddable elements, and the GrowSurf Window, with placement guidance. Does not install code or change a program. Use growsurf_embeddable_element_snippet for one HTML element, growsurf_grsf_config_snippet for window.grsfConfig, or growsurf_api_library_snippets for backend REST code.
Inputs: programType, singlePageApp, referralTrigger, includeUnreadBadge, +4 more. Returns: JavaScript SDK, GrowSurf window, and embeddable examples, as a markdown documen…
growsurf_clone_campaignClone ProgramAInspect
Clone your GrowSurf program (campaign) into a new DRAFT program. Integrations and credentials are not copied; active rewards are cloned. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: The newly cloned program. Same shape as the `growsurf_get_campaign` result.
growsurf_create_campaignCreate ProgramAInspect
Create a new GrowSurf program (campaign) with type-appropriate starter content and optional inline rewards. Starter content includes Design, Emails, Options, Installation, and GrowSurf Window defaults. Only type is required. The program starts in DRAFT status and is owned by the credential's bound team. currencyISO defaults to USD and is immutable after creation. goal sets the sharing settings at creation and cannot be set later. Incentives require the customer's chosen amount or commission rate. Without rewards, GrowSurf's starter rewards are switched off and award nothing. Editor-tab configuration is not accepted here. Does not require GROWSURF_CAMPAIGN_ID. The response includes the new program id.
Inputs: type (required), goal, name, rewards, +3 more. Returns: The created program. Same shape as the `growsurf_get_campaign` result.
growsurf_create_campaign_groupCreate Campaign GroupAInspect
Create an empty group on your GrowSurf program. Add Campaign Rewards with this group's groupId before adding participants or rules. Omit rules or send an empty array; nonempty rules return 400. Use growsurf_update_campaign_group to add rules after configuring rewards. Group names must be unique, ignoring case; Default is reserved. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: name (required), campaignId (required), rules. Returns: A group of participants who earn their own rewards: the Campaign Rewards whose…
growsurf_create_campaign_rewardCreate Campaign RewardAInspect
Create a new campaign reward (reward config) on your GrowSurf program. type must be compatible with the program type (affiliate programs support only AFFILIATE rewards; referral programs support the other types). An AFFILIATE reward also requires commissionStructure. A DOUBLE_SIDED reward has two descriptions: set description to what the referrer gets and referralDescription to what the referred friend gets. A concurrent edit can return 409; reload the program before retrying. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: type (required), campaignId (required), event, limit, +21 more. Returns: The created campaign reward. Same shape as the items in the `growsurf_list_camp…
growsurf_create_campaign_webhookCreate WebhookAInspect
Add a webhook to your GrowSurf program. payloadUrl is required. events is the list of events this webhook is subscribed to. Omit it to subscribe the webhook to every event its program type offers, or send [] for none. An event the program type does not offer returns 400. A program can have up to 5 webhooks, counting the primary webhook, so you can create up to 4. Creating another returns 400. secret is write-only — GrowSurf uses it to sign deliveries (the GrowSurf-Signature HMAC header) and never returns it. A program can have only one saved Bask Health webhook across all bask.ninja hosts and paths, including disabled webhooks. A second Bask Health webhook returns 400. A concurrent change to webhook settings can return 409; reload the webhooks before retrying. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), payloadUrl (required), events, secret, +1 more. Returns: The created webhook. Same shape as the items in the `growsurf_list_campaign_web…
growsurf_create_mobile_participant_tokenCreate Mobile Participant TokenAInspect
Create or fetch a participant, then create a participant-scoped mobile SDK token via GrowSurf REST. Participant creation is trusted direct enrollment and bypasses the public application review flow for affiliates. The program must have mobile SDK access enabled. A 409 with STATE_RESTRICTED means the program is not available in the person's US state, so no token is created. Pass usState to check the state. isNew is false when the participant already existed; a repeat call can return true while the first signup is still finishing. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: email (required), campaignId (required), usState, language, +10 more. Returns: isNew, expiresIn, participant, participantToken
growsurf_create_program_resourceCreate Program ResourceAInspect
Create a FILE, LINK, or TEXT resource for participants. LINK requires an HTTPS url. TEXT requires plain text. A FILE up to 10 MB requires a one-time uploadTicket and the unmodified uploadResult from GrowSurf's secure upload flow. New resources default to draft unless isPublished is set. API reference: https://growsurf.com/openapi.json. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: type (required), title (required), campaignId (required), url, +6 more. Returns: The created resource. Same shape as the items in the `growsurf_list_program_res…
growsurf_delete_campaign_groupDelete Campaign GroupADestructiveIdempotentInspect
Delete a group from your GrowSurf program. Its members move to Default, and its Campaign Rewards are removed from the program. Rewards already earned keep their amounts and can still be sent. Returns { id, success, movedToDefault }. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: groupId (required), campaignId (required). Returns: id, success, movedToDefault
growsurf_delete_campaign_rewardDelete Campaign RewardADestructiveIdempotentInspect
Delete a campaign reward (reward config) from your GrowSurf program. The reward is deactivated, removed from the program's reward set, and any connected upfront-discount coupons are cleaned up. campaignRewardId is the reward key. Returns { id, success }. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), campaignRewardId (required). Returns: id, success
growsurf_delete_campaign_webhookDelete WebhookADestructiveIdempotentInspect
Remove a webhook from your GrowSurf program by id. Returns { id, success }. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: webhookId (required), campaignId (required). Returns: id, success
growsurf_delete_program_resourceDelete Program ResourceADestructiveIdempotentInspect
Delete a participant resource from your GrowSurf program. This does not remove its reusable Media Center asset. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), resourceId (required). Returns: id, success
growsurf_email_participantEmail ParticipantADestructiveInspect
Send an email to a participant (by GrowSurf participant ID or email). Provide EITHER emailType to trigger one of the program's configured email templates, OR subject + body for a free-form email (optionally preheader). For programs with settings.design.layoutMode set to INLINE, body must include {{emailFooter}}; {{emailHeader}} is optional. Free-form emails are sent with the same compliance handling (company name, postal address, and an unsubscribe link are added automatically, and unsubscribed participants are suppressed). Sending requires the team to be verified by GrowSurf and a verified custom email domain on the program (set up in Program Editor > 3. Emails > Email Settings). Returns 400 until one is verified. Returns 400 while the program's emails are paused because too many emails bounced or were marked as spam. Goal, winner, commission, and payout emails still send. Resume emails in Program Editor > 3. Emails. The email is accepted for delivery. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), body, subject, emailType, +3 more. Returns: status, success
growsurf_embeddable_element_snippetGenerate Embeddable Element HTMLARead-onlyIdempotentInspect
Generate one embeddable element's HTML as Markdown. Choose element; optionally include participant authentication attributes. Does not install the element or change a program. Use growsurf_client_snippets for a broader browser integration or growsurf_grsf_config_snippet for page-level participant auto authentication.
Inputs: element (required), participant, withAuthAttributes. Returns: The snippet for one embeddable GrowSurf element, as a markdown document.
growsurf_get_campaignGet ProgramARead-onlyIdempotentInspect
Fetch your GrowSurf campaign (program) details via REST. Embedded reward settings do not establish that an individual reward was earned, approved, or delivered. Earned reward records belong to the individual participant. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: A GrowSurf program (campaign).
growsurf_get_campaign_activation_analyticsGet Activation AnalyticsARead-onlyIdempotentInspect
Fetch strict activation for eligible participants in one enrollment cohort. Referral programs group by enrolledAsAdvocateAt; affiliate programs group by approvedAsAffiliateAt. The ordered stages are ELIGIBLE, PORTAL_VIEWED, SHARE_ACTION, UNIQUE_REFERRAL_VISIT, LEAD, and CREDITED_REFERRAL. Each participant gets the selected 7- or 30-day observation window. Omit both cohort bounds for the latest fully matured cohort. Read coverageStartAt, state, and reason before interpreting a null or zero; unavailable history does not mean an action never happened. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), cohortTo, timezone, cohortFrom, +2 more. Returns: Activation grouped by eligibility cohort, with a fixed observation window per p…
growsurf_get_campaign_analyticsGet Program AnalyticsARead-onlyIdempotentInspect
Fetch analytics for your GrowSurf program: participants, referrals, impressions, per-channel shares, and affiliate revenue, commission, and payout metrics when applicable. Pass interval (day, week, or month) for a per-period series. Pass comma-separated include values for previousPeriod, statusCounts, rates, email, or engagement. engagement groups unique active, sharing, repeat, and retained participants by when portal views and share actions occurred. Its coverageStartAt, state, and reason distinguish measured zeroes from partial or unavailable history. Scope the timeframe with days (default 365, max 1825) or an explicit startDate/endDate window. Explicit dates must both be positive Unix timestamps in milliseconds, with endDate >= startDate and a maximum span of 1825 days. timezone and platform apply to engagement only. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), days, endDate, include, +4 more. Returns: email, rates, series, endDate, +5 more
growsurf_get_campaign_custom_domainGet Program Custom DomainARead-onlyIdempotentInspect
Fetch the custom domain that serves your GrowSurf program's landing pages, such as https://refer.example.com. Returns domain (null when none is set), isVerified, verifiedAt, and dnsRecord, the CNAME record to add at the DNS provider. This read does not check DNS; use growsurf_verify_campaign_custom_domain for a live check. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: The custom domain that serves the program's landing pages.
growsurf_get_campaign_designGet Program DesignARead-onlyIdempotentInspect
Fetch the configured design fields for your GrowSurf program, including GrowSurf Window content, colors, sharing sections, participant avatars under participantAvatarStyle, referred-visitor content such as the Claim Offer Popup, the Terms page, FAQ page, and How it works text under landingPages.content, the website widget under widget, the participant Traffic report under trafficInsights (it starts on for new affiliate programs and hidden for referral programs, and every setting is returned with its default copy), participant sign-in copy under login, payout-destination confirmation page copy under payoutDestinationConfirmation, country-name overrides under countryLabels, and the participant Settings panel under participantSettings (its languageSectionTitle and languageSectionInstructionsText label the language picker shown when the program has more than one language). participantAvatarStyle is CHARACTERS, INITIALS, ANIMALS, or GRADIENT; missing or unknown values mean INITIALS. visualStyle is the program Style (GLOW, CLEAN, FLAT, ROUND, TINT, or GLASS) and is omitted when the program has no saved Style. The confirmation section is omitted when no confirmation fields are stored. Stored null fields are returned as null; omitted and null fields use localized defaults. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: A program's design configuration, organized by section. The sections available…
growsurf_get_campaign_emailsGet Program EmailsARead-onlyIdempotentInspect
Fetch the Emails tab configuration for your GrowSurf program, including participant email templates, settings, and read-only fields. settings.sender.fromEmail is read-only and can be changed in the dashboard after domain verification. When updating, omit unchanged sender fields; fromName and replyToEmail cannot be cleared with null. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: A program's email configuration. Each template property is an object with `subj…
growsurf_get_campaign_installationGet Program InstallationARead-onlyIdempotentInspect
Fetch the Installation tab configuration for your GrowSurf program (embed/installation and tracking setup). Returns the full object with every field and its current value — the same shape you send back on update. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: A program's installation configuration. `referralTrigger` is only present for r…
growsurf_get_campaign_optionsGet Program OptionsARead-onlyIdempotentInspect
Fetch the Options tab configuration for your GrowSurf program (referral triggers, anti-fraud lists and toggles, US state restrictions under compliance, affiliate enrollment and application review, notifications, the program's languages under languages, and other behavior options). languages.baseLanguageTranslation is read-only: it counts Program Editor text that is not in a non-English base language yet, which the customer can translate from Options > Languages in the dashboard. Returns the full object with every field and its current value, the same shape you send back on update. autoFulfillRewards: false permits manual fulfillment and does not prove that any reward went undelivered. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: A program's options. Some fields are program-type specific. `GET` returns the f…
growsurf_get_integration_connect_linkGet Integration Connect LinkARead-onlyIdempotentInspect
Return a dashboard link to an integration's connect panel in the GrowSurf Program Editor (Options > Integrations). Connecting Stripe, PayPal, Wise, or another account requires the user to complete the dashboard flow; the API cannot connect an account on their behalf. integration accepts supported keys, including camelCase keys such as constantContact and helpScout. The result reports whether the integration is connected, enabled, or autoDisabled. If the program check cannot run, programVerified is false and the result still includes a production dashboard link. Tango Card, Tremendous, Bask Health, CareValidate, MD Integrations, Lithos, and Telegra apply only to referral programs. Wise applies only to affiliate programs. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: integration (required), campaignId. Returns: url, note, label, enabled, +7 more
growsurf_get_participantGet ParticipantARead-onlyIdempotentInspect
Fetch a single participant by GrowSurf participant ID or email address. referralStatus describes credit to their referrer; referralCount counts referrals this participant generated, so zero is consistent with CREDIT_AWARDED. In rewards, approved records approval; status, isFulfilled, and fulfilledAt record fulfillment marking, not confirmation of delivery. When no participant matches, the tool returns an error result, not an empty result. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), participantId, participantEmail. Returns: A program participant.
growsurf_get_participant_activity_logsGet Participant Activity LogsARead-onlyIdempotentInspect
List a participant's activity logs (by GrowSurf participant ID or email), most recent first, offset/limit paginated. limit is 1-100 (default 20); offset skips logs. The response offset is the cursor for the next page (null when there are no more). Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), limit, offset, participantId, +1 more. Returns: limit, offset, activityLogs
growsurf_get_participant_analyticsGet Participant AnalyticsARead-onlyIdempotentInspect
Fetch analytics for one participant by GrowSurf participant ID or email. The base response includes all-time engagement, rank, share, and applicable affiliate revenue, commission, and payout metrics. Add activation to include for the program-specific eligibility anchor and covered first milestones, including firstPortalViewedAt and firstShareChannel. A null milestone with a partial or unavailable state is unknown, not proof that the action never happened. Request both activation and series for covered portalViews and shareActions buckets. Filter optional series and email data with days (up to 1825) or both startDate and endDate as positive Unix timestamps in milliseconds. endDate must be at or after startDate, and the range can span at most 1825 days. These date parameters do not filter the base response or activation milestones. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), days, endDate, include, +4 more. Returns: email, ranks, series, endDate, +4 more
growsurf_get_participant_payout_destinationGet Payout DestinationARead-onlyIdempotentInspect
Get a participant's payout-destination status (by GrowSurf participant ID or email) across every payout provider enabled for the program (PayPal, Venmo, or Wise). For each provider it reports the current status, the confirmed payout email, the legal recipient type, and — when a delivery bounced or a recipient was invalidated — the repair reason. activeProvider is the provider that currently gets paid, or null until the participant confirms one. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), participantId, participantEmail. Returns: A participant's payout-destination status across every enabled payout provider.
growsurf_get_teamGet TeamARead-onlyIdempotentInspect
Fetch the team bound to the API key or OAuth connection. verificationStatus is VERIFIED once GrowSurf has verified the team, which is required before a program can email participants. Personal profiles and internal identifiers are not returned. Requires GROWSURF_API_KEY; does not require GROWSURF_CAMPAIGN_ID.
Inputs: no named parameters. Returns: The team bound to the API key or OAuth connection.
growsurf_grsf_config_snippetGenerate Participant Auto Authentication CodeARead-onlyIdempotentInspect
Generate the HTML code for GrowSurf Participant Auto Authentication using window.grsfConfig. The generated code belongs in <head>, before the GrowSurf Universal Code. With no arguments it returns the commented template with placeholder values. Set enableParticipantAutoAuth: true only when you also pass the participant's email and hash; get the hash from growsurf_participant_auth_hash.
Inputs: hash, email, campaignId, affiliateJoin, +3 more. Returns: The `window.grsfConfig` head snippet, as a markdown document.
growsurf_integration_guidePlan Program IntegrationARead-onlyIdempotentInspect
Plan a web integration for a referral or affiliate program. Returns Markdown steps for installing the Universal Code, identifying participants, tracking referrals or sales, and verifying webhooks. Does not inspect or change a program. Use growsurf_client_snippets for browser JavaScript examples, growsurf_api_library_snippets for backend code, or growsurf_mobile_sdk_guide for native or React Native apps.
Inputs: programType, singlePageApp, referralTrigger, webhookSecurity, +1 more. Returns: A guided, happy-path GrowSurf integration plan, as a markdown document.
growsurf_list_campaign_groupsList Campaign GroupsARead-onlyIdempotentInspect
List your GrowSurf program's groups in display order. Groups give some participants a different reward list. Each participant is in one group, and groupId: null is Default, which holds the program's standard rewards and is not in this list. A group's rewards replace Default's whole reward list for its members' new referrals. Leaderboard rewards stay program-wide. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: groups
growsurf_list_campaign_rewardsList Campaign RewardsARead-onlyIdempotentInspect
List your GrowSurf program's configured Campaign Rewards, including switched-off rewards and rewards whose reward type is not selected. Deleted rewards are excluded. A reward can be earned only when it also appears in the campaign response's embedded rewards array. The list includes every group's rewards; each reward's groupId names its group (null is Default). These settings do not establish that a participant earned or received a reward; earned reward records belong to the individual participant. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), groupId. Returns: rewards, rewardEvidence
growsurf_list_campaignsList ProgramsARead-onlyIdempotentInspect
List the GrowSurf programs available to the bound team, including their IDs for program selection. Deleted programs are not returned. Does not require GROWSURF_CAMPAIGN_ID.
Inputs: no named parameters. Returns: campaigns
growsurf_list_campaign_webhooksList WebhooksARead-onlyIdempotentInspect
List your GrowSurf program's webhooks (secrets are never returned). Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: webhooks
growsurf_list_integrationsList IntegrationsARead-onlyIdempotentInspect
List the integrations available to your GrowSurf program, including Stripe, PayPal, Wise, Mailchimp, Slack, Zapier, and Webhooks. Each entry includes connected (credentials stored), enabled (working), autoDisabled (delivery stopped after repeated failures until the user reconnects), and connectUrl (dashboard connection link). Integrations that do not apply to the program type are omitted, such as Wise on a referral program. Read-only. Account connection takes place in the GrowSurf dashboard and is not available through the API. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: integrations
growsurf_list_participantsList ParticipantsARead-onlyIdempotentInspect
List participants in your GrowSurf program, newest page first. limit is 1-100 (default 10). Pass response nextId into the next call to continue paging. Pass metadata to return only participants whose stored metadata matches every given key and value exactly, for example { "customerId": "12345" } to look someone up by your own customer ID; filtered results are ordered by participant ID. Results include participant IDs. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), limit, nextId, groupId, +1 more. Returns: limit, nextId, participants, rewardEvidence
growsurf_list_program_resourcesList Program ResourcesARead-onlyIdempotentInspect
List the participant resources configured for your GrowSurf program, including drafts. Results stay in display order. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: resources
growsurf_mobile_sdk_guideGet Mobile SDK GuideARead-onlyIdempotentInspect
Get Markdown implementation guidance for native iOS/Android SDK 0.10.7 or React Native SDK 0.3.4, including attribution, shareUrl sharing, trackShare, and the native GrowSurf Window. Choose platform and participantState to tailor the guide; includeInstallSnippets controls installation examples. Does not install an SDK or create a participant token. Use growsurf_client_snippets for browser JavaScript or growsurf_api_library_snippets for backend token-creation code.
Inputs: platform, campaignId, mobilePublicKey, participantState, +3 more. Returns: Native iOS/Android or React Native SDK guidance, as a markdown document.
growsurf_participant_auth_hashCompute Participant Auth HashARead-onlyIdempotentInspect
Compute a SHA-256 HMAC using the caller-supplied participantAuthSecret. Server environment secrets are never used. Use a test secret during implementation; keep production signing in your backend. affiliateJoin requires permission for this signed-in user to join the affiliate program directly.
Inputs: email (required), participantAuthSecret (required), affiliateJoin. Returns: The participant authentication hash for the given email.
growsurf_prepare_program_resource_filePrepare Program Resource FileAInspect
Prepare a local file for a FILE Program Resource. Accepts a safe file name, matching supported MIME type, and padded base64 bytes, up to 10 MB. GrowSurf requests a one-time ticket and uploads only to the secure HTTPS destination selected by GrowSurf. Returns the original uploadTicket and uploadResult required for file resource creation or replacement. Altered upload results are not valid. The tool does not accept upload URLs or credentials and never retries an ambiguous upload. Requires GROWSURF_UPLOAD_ALLOWED_ORIGINS on the server; without it, only LINK and TEXT resources are available. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: fileName (required), mimeType (required), campaignId (required), fileBase64 (required). Returns: One-time signed confirmation for a FILE resource create or replacement.
growsurf_program_design_advisorRecommend Program DesignARead-onlyIdempotentInspect
Generate program designs, benchmarks, typical rewards, and metric definitions, including participant-to-referral and lead-to-referral ratios. Read-only. Returns a short draft, complete benchmarkFacts, a proposed configurationPlan, and unresolved decisions. Incentive amounts and qualifying actions remain unresolved unless supplied by the customer. detail: summary returns a configuration draft and reward structure; detail: full adds detailed benchmark tables. Hosted figures describe GrowSurf's high-performing programs; without a bundle, guidance is documentation-based. programType: AFFILIATE selects affiliate advice. industry: other covers local services, pets, hospitality, and agencies. All inputs are optional.
Inputs: goal, detail, audience, industry, +8 more. Returns: Program-design advice and proposed tool calls. The plan is read-only until its…
growsurf_record_saleRecord SaleAIdempotentInspect
Record a sale/transaction for an affiliate program. Use webhooks to know when commissions are added. Requires at least one transaction identifier (externalId, transactionId, orderId, paymentId, invoiceId, paymentIntentId, or chargeId) so repeated calls are de-duplicated instead of double-paying the referrer; reuse the same one when refunding. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: currency (required), campaignId (required), grossAmount (required), paidAt, +24 more. Returns: Result of recording a sale. A new sale returns `success: true` with `firstSale`…
growsurf_refund_transactionRecord Affiliate Refund or ChargebackADestructiveIdempotentInspect
Record a refund, partial refund, or chargeback for a previously recorded affiliate transaction in GrowSurf and reverse or adjust the referrer's commission. This records the amendment without sending a refund through the payment provider. Requires the same transaction identifier as the original sale. Omitted amountRefunded means a full refund. Already-paid commissions are not clawed back and are recorded for tax only. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), amount, orderId, chargeId, +17 more. Returns: deleted, matched, message, success, +5 more
growsurf_remove_campaign_custom_domainRemove Program Custom DomainADestructiveIdempotentInspect
Remove the custom domain from your GrowSurf program. Its landing pages stop loading on that domain and go back to their GrowSurf URL. Returns { domain, success }. Returns 404 when no custom domain is set. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: domain, success
growsurf_request_participant_payout_destination_confirmationRequest Payout Destination ConfirmationADestructiveInspect
Ask a participant to confirm their payout destination for a provider (by GrowSurf participant ID or email). Sends them a one-time confirmation link for the chosen provider; only the participant can open the link and confirm — this just triggers the message, and the provider must be enabled for the program. Returns { status, provider, providerDisplayName, expiresAt }. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: provider (required), campaignId (required), participantId, participantEmail. Returns: Confirmation that a payout-destination confirmation message was requested for t…
growsurf_request_team_verificationRequest Team VerificationAIdempotentInspect
Ask GrowSurf to verify the team bound to the API key or OAuth connection. Verification is required before a program can email participants. Calling this again while a request is pending does not create a duplicate. Returns the team with its updated verificationStatus. Requires GROWSURF_API_KEY; does not require GROWSURF_CAMPAIGN_ID.
Inputs: no named parameters. Returns: The team bound to the API key or OAuth connection.
growsurf_resend_team_owner_verification_emailResend Team Owner Verification EmailADestructiveInspect
Resend the email-verification message to the bound team's owner. The response never reveals the owner's email address. A 200 with status: SENT is returned only when an email was sent. Returns 400 if the email is already verified and 429 if one was sent too recently. Requires GROWSURF_API_KEY; does not require GROWSURF_CAMPAIGN_ID.
Inputs: no named parameters. Returns: status, success
growsurf_set_campaign_custom_domainSet Program Custom DomainADestructiveIdempotentInspect
Set or replace the custom domain for your GrowSurf program's landing pages. Pass a hostname such as refer.example.com in domain; https:// is added if you leave it out. Paths, ports, queries, and http:// return 400. Replacing a domain removes the old one right away, and its pages stop loading there, so confirm with the customer before replacing a domain that is already set. Sending the current domain again changes nothing. A domain used by another program returns 409, and 403 means the account cannot use custom domains yet: a higher plan is needed, or for an affiliate program, a payment method on file. A new domain starts unverified: add the CNAME record from the returned dnsRecord at the DNS provider (dnsRecord.name pointing to dnsRecord.value), then call growsurf_verify_campaign_custom_domain. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: domain (required), campaignId (required). Returns: The custom domain after the change. Same shape as the `growsurf_get_campaign_cu…
growsurf_test_campaign_webhookSend Test WebhookADestructiveInspect
Send a live test event to a webhook on your GrowSurf program using its stored URL and secret. Optionally pass event to choose which event type to simulate; when omitted, the webhook's first enabled event is used (returns 400 if the webhook has no enabled events). Returns the mock payload and the receiving endpoint's response. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: webhookId (required), campaignId (required), event. Returns: payload, success, response
growsurf_trigger_referralTrigger ReferralADestructiveInspect
Trigger referral credit for a referred participant (use when your trigger is Sign up + Qualifying Action). Optionally pass delayInDays (whole days, 0-90) to hold the credit for N days before awarding it (e.g. to cover a refund window). Omit it, or pass 0, to award credit immediately. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), delayInDays, participantId, participantEmail. Returns: message, success
growsurf_troubleshoot_referral_trackingTroubleshoot Referral TrackingARead-onlyIdempotentInspect
Diagnose referral tracking and program problems. Accepts a symptom or description without requiring a program or participant ID. Covers referrals not credited, participant emails not sending, rewards not issued, participants not added, Universal Code not detected, integrations or CRMs not syncing, Zapier errors, fraud flags, and analytics discrepancies. Returns ordered diagnostic checks, likely causes, fixes, and documentation links. It does not read program or participant records. Unknown symptom keys return the available symptoms. A description matches only when it contains a symptom label or alias verbatim; otherwise the symptom list is returned.
Inputs: symptom, campaignId, description, participantId, +1 more. Returns: Ordered diagnostic checks, likely causes, fixes, and doc references for one sym…
growsurf_update_campaignUpdate ProgramADestructiveIdempotentInspect
Update your GrowSurf program's (campaign's) identity and lifecycle: name, companyName, companyLogoImageUrl, and status (set IN_PROGRESS to publish/resume the program, COMPLETE to end it). Only the fields you send are changed. type, urlId, and currencyISO are immutable (currency is chosen once at program creation), so this tool does not accept them. Editor-tab config (design, emails, options, installation) is edited with the dedicated config sub-resource tools, not here. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), name, status, companyName, +1 more. Returns: The updated program. Same shape as the `growsurf_get_campaign` result.
growsurf_update_campaign_designUpdate Program DesignADestructiveIdempotentInspect
Update the design configuration for your GrowSurf program, including participant avatars under participantAvatarStyle, referred-visitor content such as the Claim Offer Popup and the side content of its GrowSurf page (referredExperience.offerPageDescription HTML, up to 5 offerPageSteps of { text, iconKey }, and up to 3 offerPageLinks of { text, url } where an empty url links to the Share URL), the website widget under widget (button or card, placement, timing, and visible pages), the participant Traffic report under trafficInsights, participant sign-in copy under login, payout-destination confirmation page copy under payoutDestinationConfirmation, and the participant Settings panel under participantSettings, such as the language picker's languageSectionTitle (up to 100 characters) and languageSectionInstructionsText (up to 255 characters). trafficInsights.isPublicDisplayed controls visibility; its labels cannot be blank. participantAvatarStyle accepts CHARACTERS, INITIALS, ANIMALS, or GRADIENT. visualStyle accepts GLOW, CLEAN, FLAT, ROUND, TINT, or GLASS; it sets corners, shadows, button shape and background on program pages and the GrowSurf Window. Changing it also fills theme.buttons.borderRadius and the theme.globalBoxShadow fields unless the same request sets them. Text fields use the same character limits as the dashboard Program Editor. Text the Program Editor requires, such as Window labels, button text, and status names, cannot be set to null, empty, or only spaces. Only supplied fields change; omitted fields retain their existing content and arrays replace wholesale. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_design first and use its field names and allowed values exactly, at the same nested path. The Terms page, FAQ page, and How it works text sit under landingPages.content: send fields.landingPages.content.terms (HTML), fields.landingPages.content.termsTitle, and fields.landingPages.content.termsLinkText, never a top-level content. An invalid field returns an error that names the field. When only its parent sections are missing, the error suggests the full path, unless many fields share that name. After a design change is saved, call growsurf_capture_referral_flow_screenshots for short-lived preview screenshots of the referrer and referred-friend experiences. They show the saved program, not the customer's site. Image, icon, and link fields must be hosted http(s) URLs, not data: URIs. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: fields (required), campaignId (required). Returns: The full updated design configuration. Same shape as the `growsurf_get_campaign…
growsurf_update_campaign_emailsUpdate Program EmailsADestructiveIdempotentInspect
Update writable Emails tab fields for your GrowSurf program under fields, in their existing nested shape. settings.sender.fromEmail is read-only; sender address changes require domain verification in the dashboard. settings.sender.fromName and settings.sender.replyToEmail accept non-empty strings, not null. Omit either field to keep its current value, including an unset value returned by a read. The invite and transactional email isEnabled toggles are read-only. An email subject cannot be empty. Email bodies require their template links and footer tokens. When settings.design.layoutMode is INLINE, each body must include {{emailFooter}}; {{emailHeader}} is optional. layoutMode is read-only. Omitted fields retain their existing content; arrays replace wholesale. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_emails first and use its field names and allowed values exactly. An invalid field returns an error that names the field. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: fields (required), campaignId (required). Returns: The full updated email configuration. Same shape as the `growsurf_get_campaign_…
growsurf_update_campaign_groupUpdate Campaign GroupADestructiveIdempotentInspect
Rename, reorder, or change the rules of a group on your GrowSurf program. Sending rules replaces the whole list. An added PARTICIPANT rule moves that participant in now; a removed one moves them back to Default if they are still in this group. Email and domain rule changes move no one. To change the group's rewards, use growsurf_update_campaign_reward. Group names must be unique in the program (case is ignored), and "Default" is reserved. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: groupId (required), campaignId (required), name, order, +1 more. Returns: A group of participants who earn their own rewards: the Campaign Rewards whose…
growsurf_update_campaign_installationUpdate Program InstallationADestructiveIdempotentInspect
Update the Installation tab configuration for your GrowSurf program under fields. Only supplied fields change; omitted fields retain their existing values and arrays replace wholesale. allowedUrls includes permitted browser origins such as http://localhost:3000. An origin missing from both shareUrl and allowedUrls can return 403. Referral links already shared point at the current shareUrl. Replacing an existing Share URL requires the customer's explicit approval and replaceExistingShareUrl: true; otherwise the patch is refused. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_installation first and use its field names and allowed values exactly. An invalid field returns an error that names the field. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: fields (required), campaignId (required), replaceExistingShareUrl. Returns: The full updated installation configuration. Same shape as the `growsurf_get_ca…
growsurf_update_campaign_optionsUpdate Program OptionsADestructiveIdempotentInspect
Update the Options tab configuration for your GrowSurf program under fields, in its existing nested shape. Only supplied fields change; omitted fields retain their existing values and arrays replace wholesale. languages.additionalLanguages takes the full list of extra languages; send [] to turn them off. The base language is dropped from that list and duplicates collapse. languages.showFlags shows or hides the flag next to each language name. languages.flagCountries picks the flag for a language that offers more than one, such as { "en": "GB" }; null restores the default flag. Turning on languages.additionalLanguages returns 403 if your account does not include additional languages. While any are on, every languages change, including turning them off, returns the same 403. Translations are managed in the GrowSurf dashboard, not through this tool. The response's read-only languages.baseLanguageTranslation counts Program Editor text that is not in a non-English base language yet (untranslated of total; null for en, or when the account does not include additional languages). When untranslated is above 0 a few minutes after a baseLanguage change, tell the customer they can translate that text from Options > Languages in the dashboard. The field is ignored if you send it back. Do not rewrite the text yourself. notificationEmails.recipients needs at least one valid email address. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_options first and use its field names and allowed values exactly. An invalid field returns an error that names the field. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: fields (required), campaignId (required). Returns: The full updated options. Same shape as the `growsurf_get_campaign_options` res…
growsurf_update_campaign_rewardUpdate Campaign RewardADestructiveIdempotentInspect
Update an existing campaign reward (reward config) on your GrowSurf program. campaignRewardId is the reward key (e.g. crew_...). The reward type is immutable. On a DOUBLE_SIDED reward, description is what the referrer gets and referralDescription is what the referred friend gets; change each side in its own field. A concurrent edit can return 409; reload the program before retrying. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), campaignRewardId (required), event, limit, +21 more. Returns: The updated campaign reward. Same shape as the items in the `growsurf_list_camp…
growsurf_update_campaign_webhookUpdate WebhookADestructiveIdempotentInspect
Update a webhook on your GrowSurf program by id (webhookId is primary for the program's primary webhook). Only the fields you send are changed. secret is write-only and never returned. A program can have only one saved Bask Health webhook across all bask.ninja hosts and paths, including disabled webhooks. An update that leaves more than one Bask Health webhook returns 400. A concurrent change to webhook settings can return 409; reload the webhooks before retrying. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: webhookId (required), campaignId (required), events, secret, +2 more. Returns: The updated webhook. Same shape as the items in the `growsurf_list_campaign_web…
growsurf_update_participantUpdate ParticipantADestructiveIdempotentInspect
Update a participant by GrowSurf participant ID or email. Only the fields you send are changed; read-only fields such as counters, isAffiliate, origin, and fraud state are rejected with a 400. In affiliate programs, affiliateStatus accepts APPROVED, SUSPENDED, or BANNED; APPROVED enrolls the participant, while SUSPENDED and BANNED require an existing affiliate. Affiliate enrollment cannot be removed through REST. notes is freeform internal notes (never shown to participants). Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), email, notes, groupId, +11 more. Returns: The updated participant. Same shape as the `growsurf_get_participant` result.
growsurf_update_program_resourceUpdate Program ResourceADestructiveIdempotentInspect
Update at least one participant resource field, or move it to a zero-based position. Only supplied fields change. A replacement FILE requires a one-time uploadTicket and the unmodified uploadResult from GrowSurf's secure upload flow. API reference: https://growsurf.com/openapi.json. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required), resourceId (required), url, text, +8 more. Returns: The updated resource. Same shape as the items in the `growsurf_list_program_res…
growsurf_update_teamUpdate TeamADestructiveIdempotentInspect
Update the display name of the team bound to the API key or OAuth connection. Personal profiles, billing, and team ownership are not editable here. Requires GROWSURF_API_KEY; does not require GROWSURF_CAMPAIGN_ID.
Inputs: name (required). Returns: The team bound to the API key or OAuth connection.
growsurf_verify_campaign_custom_domainVerify Program Custom DomainAIdempotentInspect
Check the program's custom domain DNS now and return the result in isVerified. Call it after the CNAME record from dnsRecord is in place. If the record is wrong or has not propagated yet, isVerified stays false; try again later. The first time the check passes, GrowSurf sets up the domain's SSL certificate, and pages can take a few minutes to load over https:// after that. More than one CNAME record on the hostname returns 400. Returns 404 when no custom domain is set. A domain that is already verified is returned as is, without a new check. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Inputs: campaignId (required). Returns: The custom domain after the live DNS check. Same shape as the `growsurf_get_cam…
growsurf_webhook_normalizeNormalize Webhook PayloadARead-onlyIdempotentInspect
Validate/normalize a GrowSurf webhook payload and generate a best-effort idempotency key for dedupe.
Inputs: payload (required). Returns: Webhook payload validation result. `ok: true` includes the normalized envelope…
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 71 tools
Most tools map cleanly to distinct resources and actions, with detailed descriptions separating campaign, participant, reward, group, webhook, and analytics operations. Some ambiguity remains among the many snippet/guide/advisor tools and between broad campaign tools and their subresource-specific counterparts, but the boundaries are usually clarified.
The set is mostly consistent: growsurf_ + verb_noun in snake_case, such as get_campaign, create_campaign_reward, and delete_campaign_webhook. A few names deviate as noun-first or noun-verb forms, including api_library_snippets, webhook_normalize, and participant_auth_hash, but the pattern remains readable.
Seventy-one tools is an extreme surface for a single MCP server and creates substantial cognitive load. Although the GrowSurf domain is broad, many fine-grained configuration, guidance, and snippet tools could be consolidated or moved to documentation.
Coverage is broad: campaign lifecycle, design/options/emails/installation, rewards, groups, resources, participants, analytics, payouts, webhooks, integrations, and SDK/API snippets are all represented. Minor gaps exist, such as no direct campaign deletion or single-participant deletion, but most workflows are supported through other tools or bulk operations.
Maintenance
Related MCP Connectors
Build, launch and manage referral, affiliate and loyalty programs with RefRef from your AI agent.
Read referral campaigns, participants and rewards; add or update participants in GrowSurf.
For businesses that pay affiliates: set up and run your affiliate program from your AI assistant.
Affiliate program data and actions from OpenPromoter. No tool can send money.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables users to manage affiliate marketing directly within Claude by connecting to the Affilync platform. Affiliates can search campaigns and track earnings, while brands can create campaigns, monitor performance, and manage affiliate applications through natural language.201MIT
- AlicenseAqualityDmaintenanceEnables AI agents to access affiliate marketing capabilities through AgentFuse's API, allowing them to browse affiliate programs, generate tracked links, and record conversions without writing HTTP code.7MIT
- AlicenseAqualityDmaintenanceEnables AI agents to automate sales outreach, research leads, and manage campaigns directly in OutreachPilot via natural language commands.31MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage GoHighLevel workspaces through natural language, with 508 tools across 18 domains for complete CRM, marketing, and workflow automation.Apache 2.0