REST API

Use the REST API to add new participants, trigger referrals, get program data, and get participant data from a secure environment.

circle-info

If you're using an AI tool such as Cursor, ChatGPT Codex, or Claude Code to help you implement GrowSurf, we recommend utilizing our MCP serverarrow-up-right.

Getting started

circle-info

Note: The REST API is available to the following types of programs (campaigns):

  • Referral programs: Users on a GrowSurf paid subscription plan

  • Affiliate programs: Users who have a valid payment method on file

Step 1: Get your API key

  1. Generate a new API key (if you don't already have one) or click on your existing API key to copy it to your clipboard

circle-info

Your API key holds many privileges, so be sure to keep it secure! Do not share your API key in publicly accessible areas such as GitHub, Bitbucket, Web Browsers, and Front End client code.

triangle-exclamation

Step 2: Set up authentication

The GrowSurf REST API uses your API key to authenticate requests. Here's how to set up authentication:

  1. Set a plain text header named Authorization with the contents being Bearer <YOUR_API_ACCESS_KEY> where <YOUR_API_ACCESS_KEY> is your API key.

Example Authenticated Request

curl -X "GET" "https://api.growsurf.com/v2/campaign/4pdlhb" -H "Authorization: Bearer TWZ4X4NXESMX03MT66HHS6Z9Z91E"

Base URL

All endpoints for the GrowSurf REST API start with the same base URL:

Next steps

Run in Postmanarrow-up-right

Last updated

Was this helpful?