API reference
Every endpoint, and where to find the details.
The full reference lists every endpoint with its parameters, fields and sample code. It's generated from the API itself, so it always matches what's live:
The same description is available as an OpenAPI file for your own tools.
Endpoints
All paths start with https://api.loopearn.com/api.
Campaigns
| Call | What it does |
|---|---|
GET /campaigns | List campaigns |
GET /campaigns/{id} | Get a campaign |
Participants
| Call | What it does |
|---|---|
GET /participants | List participants |
GET /participants/{id} | Get a participant |
GET /campaigns/{id}/participants | List a campaign's participants |
Reviews
| Call | What it does |
|---|---|
GET /reviews | List videos to review |
POST /reviews/{id}/approve | Approve a video. Needs a Read & write key. |
POST /reviews/{id}/reject | Reject a video. Needs a Read & write key. |
Rejecting needs a reason: invalidProof, duplicateSubmission, outOfTimeWindow, didNotMeetCriteria or other. You can add a note, which the creator sees instead of the reason:
curl -X POST https://api.loopearn.com/api/reviews/VIDEO_ID/reject \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "reason": "didNotMeetCriteria", "note": "Please show the product." }'Analytics
| Call | What it does |
|---|---|
GET /campaigns/{id}/stats | Get a campaign's stats |
GET /top/videos | Top videos |
GET /top/accounts | Top accounts |
Need help? Email support@loopearn.com