API 참조
콘테스트
콘테스트 생성, 목록 조회 및 상세 정보 조회
콘테스트
캠페인을 생성하고 콘테스트 정보를 조회합니다.
콘테스트 목록 조회
/api/v1/contestsAPI 키와 연결된 팀에 속한 캠페인 목록을 페이지 형식으로 반환합니다. 도구형 콘테스트(콘텐츠 게이트 및 즉석 당첨 게임)는 기본적으로 제외됩니다.
쿼리 매개변수
toolTypestring optional 도구 유형으로 필터링합니다. 생략하면 캠페인만 반환합니다(`toolType: null`). 해당 도구의 목록을 조회하려면 `content_gate` 또는 `instant_win`을 사용하세요.
요청
curl -X GET https://blitzrocket.com/api/v1/contests \
-H "x-api-key: your_api_key_here"
응답
{
"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
}
]
}
응답 필드
idstring콘테스트 고유 식별자
titlestring콘테스트 제목
descriptionstring | null콘테스트 설명 텍스트
statusstring현재 상태: draft, active, ended, 또는 paused
startDatestring | nullISO 8601 시작 날짜, 설정되지 않은 경우 null
endDatestring | nullISO 8601 종료 날짜, 설정되지 않은 경우 null
isEvergreenboolean콘테스트가 무기한 진행되는지 여부
modestring콘테스트 모드: giveaway, leaderboard, 또는 waitlist
slugstringURL 친화적인 고유 식별자
entriesCountnumber콘테스트의 총 참가 내역 수
콘테스트 조회
/api/v1/contests/:contestId특정 콘테스트에 대한 상세 정보를 조회합니다.
경로 매개변수
contestIdstring required 고유 콘테스트 식별자
요청
curl -X GET https://blitzrocket.com/api/v1/contests/clx1abc123def456 \
-H "x-api-key: your_api_key_here"
응답
{
"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
}
}
오류 응답
이 엔드포인트에서 자주 발생하는 오류 응답입니다.
| 상태 | 오류 | 설명 |
|---|---|---|
400 | contestId 누락 | contestId 경로 매개변수가 필요합니다 |
401 | 유효하지 않은 API 키 | API 키가 없거나 유효하지 않습니다 |
404 | 콘테스트를 찾을 수 없음 | 주어진 ID에 해당하는 콘테스트가 없습니다 |
콘테스트 생성
/api/v1/contests한 번의 호출로 캠페인, 페이지 디자인, 보상, 보너스 액션, 티어까지 모두 갖춘 캠페인을 생성합니다. 모든 항목이 함께 저장되므로 일부라도 유효하지 않으면 아무것도 생성되지 않습니다. 대시보드의 캠페인 마법사와 달리 문구나 이미지는 생성되지 않습니다. 보낸 내용이 그대로 반영되며, 생략한 항목에는 대시보드 기본값이 적용됩니다.
알 수 없는 필드는 무시되지 않고 400으로 거부되므로 오타를 바로 발견할 수 있습니다.
요청 본문
titlestring required 캠페인 제목 (최대 255자). 별도로 설정하지 않으면 페이지 헤드라인과 URL 슬러그에도 사용됩니다.
descriptionstring optional 짧은 설명 (최대 255자)
modestring optional default: viral`viral`(참가 내역과 포인트를 사용하는 경품 이벤트), `referral`(자체 사이트에서 운영하는 추천 프로그램), `affiliate`(커미션 기반) 중 하나입니다. 추천 및 제휴 프로그램은 Starter 이상 요금제가 필요합니다.
statusstring optional default: DRAFT`DRAFT` 또는 `ACTIVE`. `ACTIVE`는 즉시 게시되며 요금제의 활성 캠페인 한도에 포함됩니다.
startDatestring optional ISO 8601 시작 시각. 기본값은 현재 시각입니다.
endDatestring optional ISO 8601 종료 시각. `isEvergreen`이 true가 아니면 필수입니다.
isEvergreenboolean optional default: false종료일 없이 진행
urlstring optional 웹사이트 주소. 추천 링크와 제휴 링크가 이 주소로 연결됩니다.
slugstring optional 원하는 URL 슬러그. 팀 내에서 고유하도록 조정됩니다. 기본값은 제목입니다.
themestring optional default: light`light` 또는 `dark`: 시작 색상 팔레트
designobject optional 페이지 디자인: 캠페인 편집기의 모든 디자인 설정을 사용할 수 있습니다. 예: `titleHtml`, `descriptionHtml`, `logo`, `header_background_image`, `button_color`, `body_bg_color`, `entry_methods`, `custom_signup_fields`, `showLeaderboard`.
affiliateCommissionobject optional 제휴 캠페인 전용: `type`(`percent` 또는 `flat`)과 `amount`. 기본값은 15%입니다.
rewardsarray optional 보상 및 경품 (아래 참조)
bonusActionsarray optional 참가자가 포인트를 더 획득할 수 있는 방법 (아래 참조)
tiersarray optional 추천 티어 (아래 참조)
settingsobject optional 대시보드에서 변경할 수 있는 그 밖의 모든 캠페인 설정으로, 콘테스트의 필드 이름을 사용합니다. 예: `signupAdvocatePoints`, `signupFriendPoints`, `referralPurchaseAdvocatePoints`, `enableConfirmationEmail`, `confirmationEmailSubject`, `facebookPixel`, `gtmTagId`, `signupWebhookUrl`, `skipVerification`, `preventTempEmails`, `termsOfService`, `privacyPolicy`, `timezone`, `locale`.
보상
namestring required 보상 이름
typestring optional default: grand_prize획득 방식: `grand_prize`, `1st_place`, `2nd_place`, `3rd_place`, `milestone`(`pointCost` 포인트에 도달하면 잠금 해제), `points`(`pointCost` 포인트로 교환), `referral`, `custom` 중 하나
pointCostnumber optional `milestone` 및 `points` 보상에 필요한 포인트
descriptionstring optional 보상과 함께 표시되는 설명
imageUrlstring optional 보상 이미지
quantitynumber optional 지급 가능한 수량. 생략하면 무제한입니다.
redeemCodestring optional 당첨자가 받는 쿠폰 코드
redeemUrlstring optional 당첨자가 받는 링크
보상에는 value, redeemDetails, expiryDate, maxRedemptionsPerUser, sendRedemptionEmail, redemptionEmailSubject, redemptionEmailContent, webhookUrl, webhookSecret도 지정할 수 있습니다.
보너스 액션
actionstring required 짧은 레이블. 예: `Follow us on Instagram`
descriptionstring required 참가자가 해야 할 일
pointsnumber required 지급되는 포인트. 제휴 캠페인에서는 0을 사용하고 대신 `commissionAmount`를 설정하세요.
confirmationTypestring required 완료 확인 방식: `none`(클릭 시), `text`(`confirmationQuestion`에 답변), `upload`(스크린샷 또는 사진 증빙), `apify`(소셜 액션 자동 확인), `api`(서버에서 REST API로 완료를 알림), `webhook`(Blitz Rocket이 `apiVerificationUrl`을 호출)
destinationUrlstring optional 액션 버튼을 누르면 참가자가 이동하는 주소
socialMediastring optional 플랫폼 이름. 예: `Instagram`, `TikTok`, `X`, `YouTube`
iconstring optional default: fas star솔리드 아이콘은 `fas <name>`(star, gift, heart, camera, ...), 브랜드 로고는 `fab <brand>`(instagram, tiktok, youtube, ...)
보너스 액션에는 commissionAmount, verificationDirections, confirmationQuestion, uploadMediaType, apiVerificationUrl, apiVerificationSecret, appStoreUrl, playStoreUrl, isRepeatableDaily, requiresManualReview, order도 지정할 수 있습니다.
티어
namestring required 티어 이름
pointsRequirednumber optional 티어에 도달하는 데 필요한 포인트 (바이럴 및 추천 캠페인)
pointMultipliernumber optional 티어 도달 후 적용되는 포인트 배수
commissionRequirednumber optional 티어에 도달하는 데 필요한 커미션(달러) (제휴 캠페인)
commissionMultipliernumber optional 티어 도달 후 적용되는 커미션 배수
rewardIndexnumber optional 이 티어가 잠금 해제하는 보상의 `rewards` 내 위치
티어에는 color, iconUrl, details, redeemDetails도 지정할 수 있습니다. 각 티어에는 고유한 기준값이 있어야 합니다.
추천 보상
referralRewards는 rewards 중 어떤 보상을 추천인(advocate)과 추천받은 친구에게 지급할지 지정합니다. 각 값은 rewards 내 위치입니다.
signupAdvocatenumber optional 추천받은 친구가 가입하면 추천인에게 지급되는 보상
signupFriendnumber optional 가입한 친구에게 지급되는 보상
purchaseAdvocatenumber optional 추천받은 친구가 구매하면 추천인에게 지급되는 보상
purchaseFriendnumber optional 구매한 친구에게 지급되는 보상
요청
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 }
}'
응답 (201 Created)
캠페인을 rewards, bonusActions, tiers와 함께 각 항목의 ID를 포함해 반환합니다.
{
"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" }]
}
}
오류 응답
| 상태 | 의미 |
|---|---|
400 | 유효하지 않은 본문입니다. issues에 각 필드와 문제점이 나열됩니다. |
403 | 공개 키를 사용했거나, ACTIVE로 설정하면 요금제의 활성 캠페인 한도를 초과하거나, 요금제에 추천/제휴 프로그램이 포함되어 있지 않거나, 구독이 일시 중지된 경우 |
409 | 이미 추천 또는 제휴 프로그램이 있는 도메인에 ACTIVE 추천 또는 제휴 프로그램을 만들려는 경우 |