API Reference

UGC Collectors

Collect, moderate and reward photo and video submissions

UGC Collectors

A UGC collector is a hosted page or embed where people upload photos or videos. Each approved submission earns the collector's reward (a coupon code, a unique code from a pool, or a prize URL). With reviewMode: "manual", submissions wait for you to approve them.


List UGC Collectors

GET/api/v1/ugc-collectors
Public or Private API Key

Query Parameters

pagenumber optional default: 1

Page number, starting at 1

limitnumber optional default: 20

Items per page (1-100)

Request

bash
curl -X GET "https://blitzrocket.com/api/v1/ugc-collectors?page=1&limit=20" \
  -H "x-api-key: your_api_key_here"

Response

json
{
  "success": true,
  "data": [
    {
      "id": "clx_ugc_123",
      "metaTitle": "Show us your setup",
      "status": "ACTIVE",
      "slug": "show-us-your-setup",
      "publishAs": "landing",
      "signupCount": 42,
      "submissionCount": 57,
      "approvedCount": 31,
      "reviewMode": "manual",
      "showGallery": true
    }
  ],
  "pagination": { "page": 1, "limit": 20, "total": 1, "totalPages": 1 }
}

Get UGC Collector

GET/api/v1/ugc-collectors/:collectorId
Private API Key Required

Returns the collector's settings and its reward, including the coupon code or prize URL, so it needs a private key.

Path Parameters

collectorIdstring required

UGC collector identifier


Create UGC Collector

POST/api/v1/ugc-collectors
Private API Key Required

Request Body

titlestring required

Collector title (max 120 characters)

descriptionstring optional

Short description (max 500 characters)

submitCtaLabelstring required

Submit button label (max 80 characters)

mediaTypestring required

`photo`, `video`, or `either`

maxFilesnumber required

Files per submission (1-5)

maxFileSizeMbnumber required

Maximum size per file in MB (1-800)

captionEnabledboolean required

Ask for a caption

captionLabelstring optional

Caption field label (max 80 characters)

captionMaxLengthnumber optional

Caption length limit (1-2000)

collectNameboolean optional

Ask for the submitter's name

collectHandleboolean optional

Ask for the submitter's social handle

requireConsentboolean required

Require a consent checkbox. Needs `consentText`.

consentTextstring optional

Consent checkbox text (max 500 characters)

reviewModestring required

`auto` approves submissions immediately; `manual` waits for moderation

entryLimitstring required

`none`, `daily`, or `once` per email

requireEmailVerificationboolean optional

Verify the submitter's email before they can submit

showGalleryboolean required

Show approved submissions in a public gallery

galleryLayoutstring required

`masonry` or `grid`

rewardobject required

`name`, `deliveryType` (`code`, `unique`, or `url`) and the matching `redeemCode`, `uniqueCodes` array, or `redeemUrl`

publishAsstring required

`landing` or `embed`

embedUrlstring optional

Required when `publishAs` is `embed`

Request

bash
curl -X POST "https://blitzrocket.com/api/v1/ugc-collectors" \
  -H "x-api-key: your_private_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Show us your setup",
    "submitCtaLabel": "Submit my photo",
    "mediaType": "photo",
    "maxFiles": 3,
    "maxFileSizeMb": 25,
    "captionEnabled": true,
    "requireConsent": true,
    "consentText": "I agree that my photo may be featured.",
    "reviewMode": "manual",
    "entryLimit": "once",
    "showGallery": true,
    "galleryLayout": "masonry",
    "reward": { "name": "15% off", "deliveryType": "code", "redeemCode": "SETUP15" },
    "publishAs": "landing"
  }'

Returns 201 Created with the new collector.


Update UGC Collector

PUT/api/v1/ugc-collectors/:collectorId
Private API Key Required

Send only the fields to change. Accepts every create field except slug, plus status (DRAFT, ACTIVE, or FINISHED). Set embedUrl to null to switch back to a landing page.


Delete UGC Collector

DELETE/api/v1/ugc-collectors/:collectorId
Private API Key Required

Deletes the collector with its entries and submissions. If it has entries, pass ?force=true or the API returns 409.

Query Parameters

forceboolean optional

Required when the collector already has entries


List Submissions

GET/api/v1/ugc-collectors/:collectorId/submissions
Private API Key Required

Submissions include the submitter's email and name, so this needs a private key.

Query Parameters

statusstring optional

`pending`, `approved`, or `rejected`

pagenumber optional default: 1

Page number, starting at 1

limitnumber optional default: 20

Items per page (1-100)


Moderate Submission

POST/api/v1/ugc-collectors/:collectorId/submissions/:submissionId/moderate
Private API Key Required

Approving a submission grants the submitter the collector's reward; the response includes the couponCode assigned, if any.

Request Body

actionstring required

`approve` or `reject`

notestring optional

Internal note (max 500 characters)

bash
curl -X POST "https://blitzrocket.com/api/v1/ugc-collectors/clx_ugc_123/submissions/clx_sub_456/moderate" \
  -H "x-api-key: your_private_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "action": "approve" }'