Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Servidor MCP de GrowSurf

npm version npm downloads license node

La interfaz de línea de comandos (CLI) oficial de GrowSurf y el servidor de código abierto del Model Context Protocol (MCP) para implementar programas de referidos y afiliados de GrowSurf con pasos guiados y envoltorios seguros de la API REST.

Conéctalo a un agente de IA y, en lenguaje natural, el agente puede crear un programa de referidos o afiliados, configurar recompensas, instalar el seguimiento, añadir y gestionar participantes, y leer análisis, todo respaldado por la API REST de GrowSurf.

¿Para quién es esto?

Este servidor MCP es para:

  • Desarrolladores que usan herramientas compatibles con MCP (Claude Code, Codex, Cursor, Copilot y otros clientes MCP)

  • Equipos que quieren integraciones de GrowSurf guiadas y asistidas por IA

Este servidor MCP NO es para:

  • Usuarios solo de navegador que quieren una instalación local de stdio. ChatGPT web, Claude.ai y Claude Desktop no ejecutan un servidor MCP local, pero los tres se conectan a GrowSurf a través del conector remoto alojado en https://mcp.growsurf.com. Consulta la lista completa de clientes y la configuración en https://docs.growsurf.com/build-with-ai#mcp.

Related MCP server: agentfuse-mcp

Lo que obtienes

  • Integración guiada:

    • Instalación del código universal

    • Guía de implementación del SDK nativo para iOS/Android

    • Guía de la ventana nativa de GrowSurf

    • Flujo de registro

    • Flujo de acción de calificación

    • Seguimiento de ventas/transacciones de afiliados

    • Webhooks

  • Recetas de agente:

    • Prompts de MCP para crear programas de referidos, crear programas de afiliados, incrustar el widget, listar y obtener programas y participantes, configurar recompensas, conectar webhooks y leer análisis

    • Paquete de habilidades de agente instalable en skills/growsurf-agent-toolkit

    • Orientación para revisar el contenido inicial de Diseño, Correos, Opciones, Instalación, recompensas y la ventana de GrowSurf antes de aplicar cambios

    • Prompts de evaluación de creación de programas de una sola vez y comprobaciones de aceptación para revisar el contenido inicial y la configuración

  • Envoltorios de la API REST de ruta feliz:

    • Crear una cuenta y obtener una clave de API sin credenciales existentes

    • Leer y renombrar el equipo vinculado, solicitar la verificación del equipo y reenviar el correo de verificación del propietario del equipo

    • Listar y obtener campañas

    • Obtener análisis de campaña (totales, series temporales opcionales por período, métricas de correo, totales del período anterior, recuentos de estados y tasas)

    • Crear, actualizar y clonar programas (campañas)

    • Listar, crear, actualizar y eliminar recompensas de campaña

    • Obtener/actualizar la configuración de Diseño, Correos, Opciones e Instalación

    • Capturar capturas de pantalla temporales de vista previa de GrowSurf cuando el usuario pide explícitamente una prueba visual

    • Listar, crear, actualizar, eliminar y probar webhooks de programa

    • Listar, obtener y añadir participantes

    • Actualizar un participante, enviar un correo a un participante y obtener sus análisis y registros de actividad

    • Activar crédito de referido (para programas de referidos), con concesión retrasada opcional (1-90 días)

    • Cancelar una activación de referido retrasada pendiente (para programas de referidos)

    • Registrar venta/transacción de afiliado (para programas de afiliados)

    • Crear tokens de participante móvil para usuarios de aplicaciones nativas con sesión iniciada

  • Fragmentos de la biblioteca oficial de la API:

    • TypeScript

    • Python

    • PHP

    • Ruby

    • Java

  • Ayudantes:

    • Calcular el hash HMAC de autenticación automática de participante

    • Normalizar cargas útiles de webhook

    • Generar claves de idempotencia de mejor esfuerzo para la deduplicación de webhooks

Requisitos

  • Node.js 22+

  • Una cuenta de GrowSurf para OAuth alojado

  • Una clave de API de GrowSurf para la configuración local de stdio o la configuración remota manual con clave de API. Una clave con ámbito funciona siempre que tenga acceso a las herramientas y programas que quieras que use el agente.

  • Un ID de campaña (programa) para las herramientas con ámbito de campaña. Establece GROWSURF_CAMPAIGN_ID como valor predeterminado, pasa un argumento campaignId para apuntar a un programa específico, o llama a growsurf_list_campaigns para encontrar los programas disponibles. Para un programa recién creado, pasa el id devuelto por growsurf_create_campaign a las demás herramientas.

  • Las herramientas de guía y fragmentos estáticos pueden ejecutarse sin credenciales

  • Excepción: growsurf_create_account no necesita ninguna clave de API. Crea una nueva cuenta y devuelve una clave de API. Las herramientas a nivel de equipo no necesitan un ID de campaña.

  • Cada herramienta listada publica indicaciones estándar de seguridad de MCP de solo lectura, destructivas, idempotentes y de mundo abierto. Las acciones empresariales con ámbito siguen disponibles; la rotación de claves de API no es intencionalmente una herramienta de MCP. Rota las claves en la configuración de GrowSurf o mediante un cliente REST/SDK directo.

CLI oficial

El paquete npm instala el comando growsurf-mcp. Ejecútalo sin una instalación global:

npx -y @growsurfteam/growsurf-mcp

La CLI inicia el servidor MCP local de stdio de GrowSurf. Establece GROWSURF_API_KEY para acciones respaldadas por la API y GROWSURF_CAMPAIGN_ID para un programa predeterminado. Los recursos públicos de desarrollo y la guía de integración estática funcionan sin credenciales.

Inspecciona el comando instalado sin iniciar el servidor stdio:

npx -y @growsurfteam/growsurf-mcp --help
npx -y @growsurfteam/growsurf-mcp --version

Hosts MCP compatibles

La ruta recomendada es el endpoint OAuth alojado de GrowSurf en https://mcp.growsurf.com cuando tu host admite HTTP Streamable remoto con OAuth. Usa el servidor local npx cuando tu host necesite un proceso stdio o configuración manual con clave de API. ¿Aún no tienes una cuenta de GrowSurf? Un agente puede conectarse al endpoint de incorporación alojado https://mcp.growsurf.com/onboard sin credenciales y llamar a growsurf_create_account para registrarse.

El servidor MCP de GrowSurf funciona con cualquier host compatible con MCP. Los ejemplos a continuación cubren algunos hosts basados en configuración y CLI. Para la lista completa y actual de clientes compatibles (incluidos ChatGPT web, Claude.ai, Claude Desktop, GitHub Copilot, Gemini CLI, Devin Desktop y Cline) con configuración paso a paso, consulta https://docs.growsurf.com/build-with-ai#mcp.

  • Cursor

  • Claude Code (basado en CLI)

  • Antigravity

  • Codex (basado en CLI)

Cursor

  1. Abre o crea la configuración global de MCP de Cursor en ~/.cursor/mcp.json.

  2. Añade un servidor llamado growsurf con el endpoint OAuth alojado:

{
  "mcpServers": {
    "growsurf": {
      "type": "http",
      "url": "https://mcp.growsurf.com"
    }
  }
}

Para stdio local en su lugar, usa:

{
  "mcpServers": {
    "growsurf": {
      "command": "npx",
      "args": ["-y", "@growsurfteam/growsurf-mcp"],
      "env": {
        "GROWSURF_API_KEY": "YOUR_API_KEY",
        "GROWSURF_CAMPAIGN_ID": "YOUR_CAMPAIGN_ID"
      }
    }
  }
}

Claude Code (basado en CLI)

Abre tu terminal y conecta Claude Code al endpoint OAuth alojado:

claude mcp add --transport http --scope user growsurf https://mcp.growsurf.com
claude mcp login growsurf

Para stdio local en su lugar, instala el servidor directamente en Claude Code:

claude mcp add growsurf \
  -e GROWSURF_API_KEY=your_api_key \
  -e GROWSURF_CAMPAIGN_ID=your_campaign_id \
  -- npx -y @growsurfteam/growsurf-mcp

Antigravity

  1. Abre Antigravity.

  2. Haz clic en el menú … en el panel de la derecha y selecciona MCP Servers.

  3. Haz clic en Manage MCP Servers > View raw config.

  4. Recomendado: en el archivo mcp_config.json, añade el endpoint OAuth alojado:

{
  "mcpServers": {
    "growsurf": {
      "serverUrl": "https://mcp.growsurf.com"
    }
  }
}
  1. Guarda la configuración, abre Settings > Customizations y selecciona Authenticate para GrowSurf.

Para stdio local en su lugar, usa:

{
  "mcpServers": {
    "growsurf": {
      "command": "npx",
      "args": ["-y", "@growsurfteam/growsurf-mcp"],
      "env": {
        "GROWSURF_API_KEY": "YOUR_API_KEY",
        "GROWSURF_CAMPAIGN_ID": "YOUR_CAMPAIGN_ID"
      }
    }
  }
}

Codex

Recomendado: conecta Codex al endpoint OAuth alojado:

codex mcp add growsurf --url https://mcp.growsurf.com
codex mcp login growsurf

O crea o edita ~/.codex/config.toml:

[mcp_servers.growsurf]
url = "https://mcp.growsurf.com"

Para stdio local en su lugar, añade lo siguiente:

[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"

O configura stdio local desde la CLI:

codex mcp add growsurf \
  --env GROWSURF_API_KEY=YOUR_API_KEY \
  --env GROWSURF_CAMPAIGN_ID=YOUR_CAMPAIGN_ID \
  -- npx -y @growsurfteam/growsurf-mcp

Configuración

Establece las siguientes variables de entorno al ejecutar el servidor MCP:

  • GROWSURF_API_KEY (opcional para el inicio; requerida para las herramientas que llaman a la API. Usa una clave con los ámbitos y el acceso a programas que esas herramientas necesiten)

  • GROWSURF_CAMPAIGN_ID (opcional; el programa predeterminado para las herramientas con ámbito de campaña. El argumento campaignId de una herramienta lo anula, por lo que un solo servidor puede operar en cualquiera de tus programas)

  • GROWSURF_API_BASE_URL (opcional; por defecto https://api.growsurf.com/v2. Útil para pasarelas MCP locales o alojadas que deban llamar a un origen diferente de la API de GrowSurf)

  • GROWSURF_PARTICIPANT_AUTH_SECRET (opcional; usado por el ayudante de hash)

  • GROWSURF_WEBHOOK_TOKEN (opcional; usado para tu propio esquema de token de URL de webhook)

Ejecutar con npx

Después de publicar este paquete, los clientes pueden ejecutar:

npx @growsurfteam/growsurf-mcp

Para desarrollo local en este repositorio:

npm install
npm run build
node dist/cli.js

Herramientas MCP

Cada herramienta declara un esquema de salida de MCP y devuelve structuredContent, para que los hosts conozcan la forma del resultado de cada herramienta. Las herramientas REST devuelven la respuesta de la API (más un bloque de texto JSON para clientes más antiguos); las herramientas de guía y fragmentos devuelven su documento markdown bajo markdown.

Integración guiada

  • growsurf_integration_guide Guía paso a paso para implementar un programa de referidos o afiliados de GrowSurf.

  • growsurf_mobile_sdk_guide Guía del SDK nativo para iOS/Android para atribución, shareUrl, trackShare y la ventana nativa de GrowSurf.

  • growsurf_api_library_snippets Fragmentos de la biblioteca oficial de la API REST para TypeScript, Python, PHP, Ruby y Java.

  • growsurf_get_integration_connect_link Obtén un enlace del panel que abre el panel de conexión de una integración específica (Stripe, PayPal, Tango Card, Mailchimp y muchos más). Entrégalo al usuario cuando quiera conectar una. La conexión se realiza en el panel, no a través de la API.

Fragmentos de cliente y UI

  • growsurf_client_snippets SDK de JavaScript, ventana de GrowSurf y ejemplos incrustables. Incluye un recordatorio de usar un flujo de trabajo de diseño frontend al colocar o estilizar UI incrustable.

  • growsurf_embeddable_element_snippet Fragmento HTML para un elemento incrustable específico de GrowSurf.

  • growsurf_grsf_config_snippet Fragmento <head> para configurar window.grsfConfig y la autenticación automática de participante.

Incorporación de cuenta

  • growsurf_create_account Crea una cuenta de GrowSurf y obtén una clave de API. Esta es la única herramienta que no requiere GROWSURF_API_KEY. La clave devuelta se muestra una vez y queda bloqueada (403 EMAIL_NOT_VERIFIED_ERROR) hasta que el propietario verifique su correo. La clave se rota en el primer inicio de sesión del propietario en el panel. Crear una cuenta acepta, en nombre del titular de la cuenta, los Términos de servicio y la Política de privacidad de GrowSurf.

Equipo

  • growsurf_get_team Obtén el equipo vinculado a la clave de API o a la conexión OAuth, incluido su estado de verificación de GrowSurf.

  • growsurf_update_team Actualiza el nombre para mostrar del equipo vinculado.

  • growsurf_request_team_verification Solicita a GrowSurf que verifique el equipo vinculado, lo cual es necesario antes de que un programa pueda enviar correos a los participantes.

  • growsurf_resend_team_owner_verification_email Reenvía el correo de verificación al propietario del equipo vinculado sin revelar su dirección de correo.

API y seguimiento

  • growsurf_get_campaign Obtener la configuración de la campaña.

  • growsurf_list_campaigns Listar los programas disponibles para la credencial. Úsalo para encontrar un campaignId antes de llamar a las herramientas específicas de campaña.

  • growsurf_get_campaign_analytics Obtener las analíticas del programa, con series opcional por período, comparación, estado, tasa y datos de entrega de correo y participación mediante include=email.

  • growsurf_create_campaign Crear un nuevo programa (campaña) con contenido inicial apropiado para el tipo y recompensas integradas opcionales (solo necesita GROWSURF_API_KEY, no GROWSURF_CAMPAIGN_ID). Revisa el contenido inicial de Diseño, Correos, Opciones, Instalación, recompensas y Ventana de GrowSurf antes de aplicar cambios.

  • growsurf_agent_program_creation_eval Generar indicaciones de evaluación de creación de programas de una sola vez y comprobaciones de aceptación para el contenido inicial, recompensas conservadoras, revisión de configuración, prueba de instalación en el frontend y copia pública limpia.

  • growsurf_update_campaign Actualizar la identidad y el ciclo de vida del programa: nombre, marca de la empresa y estado (solo se cambian los campos que envías).

  • growsurf_clone_campaign Clonar el programa en un nuevo programa DRAFT (las integraciones y credenciales no se copian).

  • growsurf_list_campaign_rewards Listar las recompensas configuradas del programa.

  • growsurf_create_campaign_reward Crear una recompensa de campaña.

  • growsurf_update_campaign_reward Actualizar una recompensa de campaña por su clave de recompensa.

  • growsurf_delete_campaign_reward Eliminar una recompensa de campaña por su clave de recompensa.

  • growsurf_get_campaign_design / growsurf_update_campaign_design Leer o modificar la configuración de diseño, incluida la pestaña Diseño del Editor de Programas y el texto de la página de confirmación del destino de pago.

  • growsurf_get_campaign_emails / growsurf_update_campaign_emails Leer o modificar la configuración de la pestaña Correos del Editor de Programas.

  • growsurf_get_campaign_options / growsurf_update_campaign_options Leer o modificar la configuración de la pestaña Opciones del Editor de Programas.

  • growsurf_get_campaign_installation / growsurf_update_campaign_installation Leer o modificar la configuración de la pestaña Instalación del Editor de Programas.

  • growsurf_capture_referral_flow_screenshots Capturar capturas de pantalla de vista previa temporales de GrowSurf para el programa actual después de que el usuario solicite explícitamente una prueba visual. Esto devuelve la Ventana del referidor controlada y la experiencia del amigo referido; usa la automatización del navegador en su lugar para demostrar el sitio instalado del usuario.

  • growsurf_list_campaign_webhooks Listar los webhooks del programa (los secretos nunca se devuelven).

  • growsurf_create_campaign_webhook Añadir un webhook al programa (con eventos y un secreto de firma de solo escritura).

  • growsurf_update_campaign_webhook Actualizar un webhook por id (primary para el webhook principal del programa).

  • growsurf_delete_campaign_webhook Eliminar un webhook por id.

  • growsurf_test_campaign_webhook Enviar un evento de prueba en vivo a un webhook usando su URL y secreto almacenados.

  • growsurf_add_participant Añadir un participante (o participante referido) durante el registro.

  • growsurf_list_participants Listar los participantes del programa actual, paginados por nextId. Úsalo para encontrar un ID de participante antes de llamar a las herramientas específicas de participante.

  • growsurf_get_participant Obtener un participante por ID de participante de GrowSurf o dirección de correo electrónico.

  • growsurf_update_participant Actualizar un participante por ID o correo electrónico (incluidas las notes internas).

  • growsurf_bulk_delete_participants Eliminar permanentemente hasta 200 participantes (por ID y/o correo electrónico, se permiten listas mixtas) en una sola solicitud, con resultados DELETED/NOT_FOUND/DUPLICATE/ERROR por fila. Irreversible: elimina las referencias, recompensas, comisiones y registros de pago de los participantes.

  • growsurf_email_participant Enviar un correo electrónico a un participante usando una plantilla configurada o un asunto/cuerpo de formato libre.

  • growsurf_get_participant_analytics Obtener la participación, clasificación, compartidos, ingresos de afiliado, comisión, pago y métricas de correo opcionales de un participante. Usa include=series, include=email o ambos separados por comas.

  • growsurf_get_participant_activity_logs Listar los registros de actividad de un participante (paginados por offset/límite).

  • growsurf_trigger_referral Activar la referencia (solo para programas de referidos). Opcionalmente, pasa delayInDays (1-90) para retener el crédito durante N días antes de otorgarlo (por ejemplo, para cubrir un período de reembolso).

  • growsurf_cancel_delayed_referral Cancelar una activación de referencia retrasada pendiente antes de que transcurra el retraso (por ejemplo, en caso de reembolso/cancelación).

  • growsurf_get_participant_payout_destination Obtener el estado del destino de pago de un participante en todos los proveedores habilitados para el programa (PayPal y/o Wise): estado por proveedor, correo de pago confirmado, tipo de destinatario legal y motivo de reparación.

  • growsurf_request_participant_payout_destination_confirmation Pedir a un participante que confirme su destino de pago para un proveedor: le envía un enlace de confirmación de un solo uso (solo el participante puede confirmar).

  • growsurf_record_sale Registrar ventas o transacciones de afiliado (solo para programas de afiliados).

  • growsurf_refund_transaction Registrar una modificación (reembolso, reembolso parcial o contracargo) contra una transacción registrada; revierte o ajusta la comisión del referidor (solo para programas de afiliados). Es la operación inversa de growsurf_record_sale.

  • growsurf_create_mobile_participant_token Crear u obtener un participante y, a continuación, crear un token de SDK móvil específico del participante para un usuario móvil con sesión iniciada.

Ayudantes

  • growsurf_participant_auth_hash Generar hashes HMAC de autenticación automática de participantes (para autenticar participantes automáticamente).

  • growsurf_webhook_normalize Normalizar las cargas útiles de webhook y generar claves de idempotencia (para deduplicar las entregas de webhooks).

Webhooks

Los webhooks de GrowSurf notifican a tu servidor cuando ocurren eventos importantes de referidos o afiliados, como cuando se crean nuevos objetos como participantes, referencias, recompensas o transacciones. Estos son casos de uso comunes:

  • Cumplir recompensas automáticamente

  • Mantener sistemas internos de puntos o créditos

  • Sincronizar los datos de participantes y referencias en tu base de datos

Manejo de Entregas Duplicadas

Los manejadores de webhooks deben ser idempotentes porque el mismo evento puede llegar más de una vez. Almacena una clave de idempotencia antes de cambiar cualquier cosa en tu sistema.

Seguridad e Idempotencia de Webhooks

GrowSurf firma las entregas de webhooks cuando el webhook tiene un secret configurado: cada entrega incluye un encabezado HMAC GrowSurf-Signature calculado con ese secreto (el secreto es de solo escritura y nunca se devuelve). Para usar webhooks de forma segura, recomendamos lo siguiente:

  • Configurar un secret en el webhook y verificar el encabezado GrowSurf-Signature al recibirlo

  • Validar la forma de la carga útil y el tipo de evento esperado

  • Deduplicar los eventos de webhook usando una clave de idempotencia, porque el mismo evento puede llegar más de una vez

El servidor MCP de GrowSurf proporciona una herramienta auxiliar (growsurf_webhook_normalize ) que normaliza las cargas útiles de webhook y genera una clave de idempotencia de mejor esfuerzo para simplificar el procesamiento seguro de webhooks.

Desarrollo y Pruebas

npm run dev
npm test

Recursos Adicionales

Lee la documentación para desarrolladores en los siguientes enlaces:

El servidor MCP de GrowSurf ayuda a los clientes de GrowSurf a implementar programas de referidos y programas de afiliados rápidamente.

Available Tools

71 tools
growsurf_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 ChecksA
Read-onlyIdempotent
Inspect

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 SnippetsA
Read-onlyIdempotent
Inspect

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 ParticipantsA
DestructiveIdempotent
Inspect

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 ParticipantsA
DestructiveIdempotent
Inspect

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 ReferralA
DestructiveIdempotent
Inspect

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 SnippetsA
Read-onlyIdempotent
Inspect

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 GroupA
DestructiveIdempotent
Inspect

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 RewardA
DestructiveIdempotent
Inspect

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 WebhookA
DestructiveIdempotent
Inspect

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 ResourceA
DestructiveIdempotent
Inspect

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 ParticipantA
Destructive
Inspect

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 HTMLA
Read-onlyIdempotent
Inspect

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 ProgramA
Read-onlyIdempotent
Inspect

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 AnalyticsA
Read-onlyIdempotent
Inspect

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 AnalyticsA
Read-onlyIdempotent
Inspect

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 DomainA
Read-onlyIdempotent
Inspect

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 DesignA
Read-onlyIdempotent
Inspect

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 EmailsA
Read-onlyIdempotent
Inspect

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 InstallationA
Read-onlyIdempotent
Inspect

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 OptionsA
Read-onlyIdempotent
Inspect

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_participantGet ParticipantA
Read-onlyIdempotent
Inspect

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 LogsA
Read-onlyIdempotent
Inspect

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 AnalyticsA
Read-onlyIdempotent
Inspect

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 DestinationA
Read-onlyIdempotent
Inspect

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 TeamA
Read-onlyIdempotent
Inspect

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 CodeA
Read-onlyIdempotent
Inspect

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 IntegrationA
Read-onlyIdempotent
Inspect

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 GroupsA
Read-onlyIdempotent
Inspect

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 RewardsA
Read-onlyIdempotent
Inspect

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 ProgramsA
Read-onlyIdempotent
Inspect

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 WebhooksA
Read-onlyIdempotent
Inspect

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 IntegrationsA
Read-onlyIdempotent
Inspect

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 ParticipantsA
Read-onlyIdempotent
Inspect

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 ResourcesA
Read-onlyIdempotent
Inspect

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 GuideA
Read-onlyIdempotent
Inspect

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 HashA
Read-onlyIdempotent
Inspect

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 DesignA
Read-onlyIdempotent
Inspect

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 SaleA
Idempotent
Inspect

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 ChargebackA
DestructiveIdempotent
Inspect

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 DomainA
DestructiveIdempotent
Inspect

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 ConfirmationA
Destructive
Inspect

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 VerificationA
Idempotent
Inspect

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 EmailA
Destructive
Inspect

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 DomainA
DestructiveIdempotent
Inspect

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 WebhookA
Destructive
Inspect

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 ReferralA
Destructive
Inspect

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 TrackingA
Read-onlyIdempotent
Inspect

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 ProgramA
DestructiveIdempotent
Inspect

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 DesignA
DestructiveIdempotent
Inspect

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 EmailsA
DestructiveIdempotent
Inspect

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 GroupA
DestructiveIdempotent
Inspect

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 InstallationA
DestructiveIdempotent
Inspect

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 OptionsA
DestructiveIdempotent
Inspect

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 RewardA
DestructiveIdempotent
Inspect

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 WebhookA
DestructiveIdempotent
Inspect

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 ParticipantA
DestructiveIdempotent
Inspect

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 ResourceA
DestructiveIdempotent
Inspect

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 TeamA
DestructiveIdempotent
Inspect

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 DomainA
Idempotent
Inspect

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 PayloadA
Read-onlyIdempotent
Inspect

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

    A3.8/5.0

    Scored across 71 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      20
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      7
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to automate sales outreach, research leads, and manage campaigns directly in OutreachPilot via natural language commands.
      31
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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