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:

Open the full API reference

The same description is available as an OpenAPI file for your own tools.

Endpoints

All paths start with https://api.loopearn.com/api.

Campaigns

CallWhat it does
GET /campaignsList campaigns
GET /campaigns/{id}Get a campaign

Participants

CallWhat it does
GET /participantsList participants
GET /participants/{id}Get a participant
GET /campaigns/{id}/participantsList a campaign's participants

Reviews

CallWhat it does
GET /reviewsList videos to review
POST /reviews/{id}/approveApprove a video. Needs a Read & write key.
POST /reviews/{id}/rejectReject 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

CallWhat it does
GET /campaigns/{id}/statsGet a campaign's stats
GET /top/videosTop videos
GET /top/accountsTop accounts

Need help? Email support@loopearn.com