API Reference
This reference documents the LoyaltySurf REST API, including all available public methods and examples of each.
Open in Postman
CAMPAIGNS ↓
Get Campaign
Path Parameters
Name
Type
Description
Response
{
"id": "abc123",
"name": "Pied Piper Advocate Program",
"loyaltyActionCount": 121,
"participantCount": 199,
"winnerCount": 1,
"status": "IN_PROGRESS",
"currencyISO": "USD",
"rewards": [
{
"id": "crew_xyz789",
"description": "Make a LinkedIn post mentioning Pied Piper",
"subdescription": "Post must be less than 1 week old from date of submission",
"instructions": "<div><p><strong>Helpful tips:</strong></p><ul><li>Talk about how you used to do things before using Pied Piper</li><li>Mention specific ROIs (e.g, time saved, revenue generated)</li></ul></div>",
"cta": "Get $25",
"submissionType": "URL",
"submissionExampleUrl": "https://linkedin.com/posts/sarah_s-my-review-of-pied-piper-8195769799870726145-Sr9b",
"submissionFormUrl": "https://linkedin.com/shareArticle",
"submissionFormFields": [
{
"key": "linkedinPostUrl",
"label": "Your LinkedIn Post URL",
"placeholder": "Enter your LinkedIn Post URL here",
"type": "text",
"isRequired": true,
"isVisible": true
}
],
"submissionFormButtonText": "Submit",
"submissionFormMessages": {
"required": "is required",
"reCaptchaRequired": "You must pass the reCAPTCHA verification.",
"success": "Thanks! We have received your response.",
"error": "There was an error. Please try submitting again.",
"alreadySubmitted": "You already submitted this form."
},
"isUnlimited": false,
"limit": 1,
"conversionsRequired": 1,
"imageUrl": "http://res.cloudinary.com/loyaltysurf/image/upload/v1552764861/development/hxdcjrayfhksvxu5u6oz.png"
}
]
}Get Campaigns
Response
LOYALTY ACTIONS ↓
Trigger Loyalty Action by Email
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Response
Trigger Loyalty Action by Participant ID
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Response
PARTICIPANTS ↓
Get Participant by ID
Path Parameters
Name
Type
Description
Response
Get Participant by Email
Path Parameters
Name
Type
Description
Response
Get Participants
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Response
Get Leaderboard
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Response
Add Participant
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Request Examples
Response
Update Participant by ID
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Response
Update Participant by Email
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Response
Remove Participant by ID
Path Parameters
Name
Type
Description
Response
Remove Participant by Email
Path Parameters
Name
Type
Description
Response
PARTICIPANT REWARDS ↓
Get Participant Rewards by Participant ID
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Response
Get Participant Rewards by Participant Email
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Response
Approve Participant Reward
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Response
Fulfill Participant Reward
Path Parameters
Name
Type
Description
Response
Remove Participant Reward
Path Parameters
Name
Type
Description
Response
ANALYTICS ↓
Get Campaign Analytics
Path Parameters
Name
Type
Description
Response
Last updated
Was this helpful?