API Reference

Contests

Create, list and retrieve contests

Contests

Create campaigns and retrieve information about your contests.


List Contests

GET/api/v1/contests
Public or Private API Key

Returns a paginated-style list of campaigns belonging to the team associated with your API key. Tool contests (content gates and instant win games) are excluded by default.

Query Parameters

toolTypestring optional

Filter by tool type. Omit to return campaigns only (`toolType: null`). Use `content_gate` or `instant_win` to list those tools instead.

Request

bash
curl -X GET https://blitzrocket.com/api/v1/contests \
  -H "x-api-key: your_api_key_here"

Response

json
{
  "success": true,
  "data": [
    {
      "id": "clx1abc123def456",
      "title": "Summer Giveaway 2025",
      "description": "Win amazing prizes this summer!",
      "status": "active",
      "startDate": "2025-06-01T00:00:00.000Z",
      "endDate": "2025-08-31T23:59:59.000Z",
      "isEvergreen": false,
      "mode": "giveaway",
      "slug": "summer-giveaway-2025",
      "entriesCount": 1523
    },
    {
      "id": "clx2def456ghi789",
      "title": "Product Launch Contest",
      "description": null,
      "status": "draft",
      "startDate": null,
      "endDate": null,
      "isEvergreen": true,
      "mode": "leaderboard",
      "slug": "product-launch",
      "entriesCount": 0
    }
  ]
}

Response Fields

idstring

Unique identifier for the contest

titlestring

The contest title

descriptionstring | null

Contest description text

statusstring

Current status: draft, active, ended, or paused

startDatestring | null

ISO 8601 start date, null if not set

endDatestring | null

ISO 8601 end date, null if not set

isEvergreenboolean

Whether the contest runs indefinitely

modestring

Contest mode: giveaway, leaderboard, or waitlist

slugstring

URL-friendly unique identifier

entriesCountnumber

Total number of entries in the contest


Get Contest

GET/api/v1/contests/:contestId
Public or Private API Key

Retrieve detailed information about a specific contest.

Path Parameters

contestIdstring required

The unique contest identifier

Request

bash
curl -X GET https://blitzrocket.com/api/v1/contests/clx1abc123def456 \
  -H "x-api-key: your_api_key_here"

Response

json
{
  "success": true,
  "data": {
    "id": "clx1abc123def456",
    "title": "Summer Giveaway 2025",
    "description": "Win amazing prizes this summer!",
    "status": "active",
    "startDate": "2025-06-01T00:00:00.000Z",
    "endDate": "2025-08-31T23:59:59.000Z",
    "isEvergreen": false,
    "mode": "giveaway",
    "slug": "summer-giveaway-2025",
    "entriesCount": 1523,
    "viewsCount": 12847
  }
}

Error Responses

Common error responses for this endpoint.

StatusErrorDescription
400Missing contestIdThe contestId path parameter is required
401Invalid API keyAPI key is missing or invalid
404Contest not foundNo contest exists with the given ID

Create Contest

POST/api/v1/contests
Private API Key Required

Creates a fully set-up campaign in one call: the campaign, its page design, rewards, bonus actions and tiers. Everything is saved together, so if any part is invalid nothing is created. Unlike the dashboard's campaign wizard, no copy or images are generated: what you send is what you get, and anything you leave out gets the dashboard's defaults.

Unknown fields are rejected with 400 rather than ignored, so typos surface immediately.

Request Body

titlestring required

Campaign title (max 255 characters). Also used for the page headline and the URL slug unless you set them.

descriptionstring optional

Short description (max 255 characters)

modestring optional default: viral

`viral` (giveaway with entries and points), `referral` (referral program on your own site), or `affiliate` (commission-based). Referral and affiliate need a Starter plan or higher.

statusstring optional default: DRAFT

`DRAFT` or `ACTIVE`. `ACTIVE` publishes immediately and counts against your plan's active campaign limit.

startDatestring optional

ISO 8601 start time. Defaults to now.

endDatestring optional

ISO 8601 end time. Required unless `isEvergreen` is true.

isEvergreenboolean optional default: false

Runs with no end date

urlstring optional

Your website. Referral and affiliate links point here.

slugstring optional

Preferred URL slug. Made unique within your team. Defaults to the title.

themestring optional default: light

`light` or `dark`: the starting color palette

designobject optional

Page design: any of the campaign editor's design settings, e.g. `titleHtml`, `descriptionHtml`, `logo`, `header_background_image`, `button_color`, `body_bg_color`, `entry_methods`, `custom_signup_fields`, `showLeaderboard`.

affiliateCommissionobject optional

Affiliate campaigns only: `type` (`percent` or `flat`) and `amount`. Defaults to 15%.

rewardsarray optional

Rewards and prizes (see below)

bonusActionsarray optional

Ways for entrants to earn more points (see below)

tiersarray optional

Referral tiers (see below)

settingsobject optional

Any other campaign setting the dashboard can change, using the contest's field names: e.g. `signupAdvocatePoints`, `signupFriendPoints`, `referralPurchaseAdvocatePoints`, `enableConfirmationEmail`, `confirmationEmailSubject`, `facebookPixel`, `gtmTagId`, `signupWebhookUrl`, `skipVerification`, `preventTempEmails`, `termsOfService`, `privacyPolicy`, `timezone`, `locale`.

Rewards

namestring required

Reward name

typestring optional default: grand_prize

How it is won: `grand_prize`, `1st_place`, `2nd_place`, `3rd_place`, `milestone` (unlocked at `pointCost` points), `points` (redeemed for `pointCost` points), `referral`, or `custom`

pointCostnumber optional

Points needed for `milestone` and `points` rewards

descriptionstring optional

Shown with the reward

imageUrlstring optional

Reward image

quantitynumber optional

How many can be given out. Omit for unlimited.

redeemCodestring optional

Coupon code the winner receives

redeemUrlstring optional

Link the winner receives

Rewards also accept value, redeemDetails, expiryDate, maxRedemptionsPerUser, sendRedemptionEmail, redemptionEmailSubject, redemptionEmailContent, webhookUrl and webhookSecret.

Bonus Actions

actionstring required

Short label, e.g. `Follow us on Instagram`

descriptionstring required

What the entrant should do

pointsnumber required

Points awarded. Use 0 for affiliate campaigns and set `commissionAmount` instead.

confirmationTypestring required

How completion is checked: `none` (on click), `text` (answer `confirmationQuestion`), `upload` (screenshot or photo proof), `apify` (social action checked automatically), `api` (your server reports it via the REST API), or `webhook` (we call `apiVerificationUrl`)

destinationUrlstring optional

Where the action button sends the entrant

socialMediastring optional

Platform name, e.g. `Instagram`, `TikTok`, `X`, `YouTube`

iconstring optional default: fas star

`fas <name>` for a solid icon (star, gift, heart, camera, ...) or `fab <brand>` for a brand logo (instagram, tiktok, youtube, ...)

Bonus actions also accept commissionAmount, verificationDirections, confirmationQuestion, uploadMediaType, apiVerificationUrl, apiVerificationSecret, appStoreUrl, playStoreUrl, isRepeatableDaily, requiresManualReview and order.

Tiers

namestring required

Tier name

pointsRequirednumber optional

Points to reach the tier (viral and referral campaigns)

pointMultipliernumber optional

Point multiplier once reached

commissionRequirednumber optional

Commission in dollars to reach the tier (affiliate campaigns)

commissionMultipliernumber optional

Commission multiplier once reached

rewardIndexnumber optional

Position in `rewards` of the reward this tier unlocks

Tiers also accept color, iconUrl, details and redeemDetails. Each tier needs its own threshold.

Referral Rewards

referralRewards picks which of rewards referrers (advocates) and the friends they refer are given. Each value is a position in rewards.

signupAdvocatenumber optional

Reward for the referrer when a referred friend signs up

signupFriendnumber optional

Reward for the friend who signs up

purchaseAdvocatenumber optional

Reward for the referrer when a referred friend buys

purchaseFriendnumber optional

Reward for the friend who buys

Request

bash
curl -X POST "https://blitzrocket.com/api/v1/contests" \
  -H "x-api-key: your_private_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Win a year of coffee",
    "description": "Enter for a chance to win 52 bags of our house roast.",
    "status": "ACTIVE",
    "endDate": "2026-12-31T23:59:59Z",
    "design": { "logo": "https://example.com/logo.png", "button_color": "#6B4226" },
    "rewards": [
      { "name": "A year of coffee", "type": "grand_prize", "quantity": 1 },
      { "name": "10% off", "type": "milestone", "pointCost": 50, "redeemCode": "BEANS10" }
    ],
    "bonusActions": [
      {
        "action": "Follow us on Instagram",
        "description": "Follow @examplecoffee",
        "points": 5,
        "confirmationType": "upload",
        "socialMedia": "Instagram",
        "icon": "fab instagram",
        "destinationUrl": "https://instagram.com/examplecoffee"
      },
      {
        "action": "Visit our shop",
        "description": "Take a look at our roasts",
        "points": 2,
        "confirmationType": "none",
        "destinationUrl": "https://example.com/shop"
      }
    ],
    "tiers": [
      { "name": "Coffee Lover", "pointsRequired": 50, "rewardIndex": 1 }
    ],
    "settings": { "signupAdvocatePoints": 10, "preventTempEmails": true }
  }'

Response (201 Created)

Returns the campaign with its rewards, bonusActions and tiers, including their ids.

json
{
  "success": true,
  "data": {
    "id": "clx_contest_123",
    "metaTitle": "Win a year of coffee",
    "slug": "win-a-year-of-coffee",
    "status": "ACTIVE",
    "mode": "viral",
    "rewards": [{ "id": "clx_reward_1", "name": "A year of coffee", "type": "grand_prize" }],
    "bonusActions": [{ "id": "clx_ba_1", "action": "Follow us on Instagram", "points": 5 }],
    "tiers": [{ "id": "clx_tier_1", "name": "Coffee Lover", "points_required": 50, "rewardId": "clx_reward_2" }]
  }
}

Error Responses

StatusMeaning
400Invalid body. issues lists each field and what is wrong with it.
403Public key used, ACTIVE would exceed your plan's active campaign limit, your plan does not include referral/affiliate programs, or the subscription is paused
409ACTIVE referral or affiliate program on a domain that already has one