REST API
Use the REST API to add new participants, trigger referrals, get program data, and get participant data from a secure environment.
Getting started
Step 1: Get your API key
Step 2: Set up authentication
Example Authenticated Request
curl -X "GET" "https://api.growsurf.com/v2/campaign/4pdlhb" -H "Authorization: Bearer TWZ4X4NXESMX03MT66HHS6Z9Z91E"OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.growsurf.com/v2/campaign/4pdlhb")
.get()
.addHeader("Authorization", "Bearer TWZ4X4NXESMX03MT66HHS6Z9Z91E")
.build();
Response response = client.newCall(request).execute();const request = require("request");
const options = {
method: 'GET',
url: 'https://api.growsurf.com/v2/campaign/4pdlhb',
headers: {
Authorization: 'Bearer TWZ4X4NXESMX03MT66HHS6Z9Z91E'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});Base URL
Next steps
Last updated
Was this helpful?