Getting Started
Authentication
Secure your API requests with API keys
Authentication
All Blitz Rocket API v1 endpoints require authentication via an API key. API keys are scoped to a team and can be managed from your team settings page.
Creating an API Key
- Log in to your Blitz Rocket dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Choose a key type (Public or Private)
- Copy your key — it will only be shown once
Key Types
Public Key
Public keys provide read-only access and are safe to use in client-side code. They can access:
GET /api/v1/contests— List contestsGET /api/v1/contests/:contestId— Get contest detailsGET /api/v1/contests/:contestId/leaderboard— Get leaderboardGET /api/v1/contests/:contestId/entries— List entriesGET /api/v1/contests/:contestId/analytics— Get analyticsGET /api/v1/entries/:entryId— Get entry detailsGET /api/v1/entries/:entryId/bonus-actions— Get bonus actionsPOST /api/v1/entries/:entryId/bonus-actions/:bonusActionId/complete— Complete bonus action
Private Key
Private keys provide full read/write access to all endpoints. Keep these secret and only use them in server-side code. In addition to all public key endpoints, private keys can access:
POST /api/v1/contests/:contestId/entries— Create entriesPUT /api/v1/entries/:entryId— Update entriesPOST /api/v1/entries/:entryId/disqualify— Disqualify entriesPOST /api/v1/entries/:entryId/points— Adjust pointsPOST /api/v1/contests/:contestId/purchases— Record purchases
Sending Your API Key
Pass your API key in the x-api-key request header. Do not send API keys in query parameters — they can leak via logs, browser history, and referrer headers.
curl -X GET https://blitzrocket.com/api/v1/contests \
-H "x-api-key: vk_live_abc123def456"
Authentication Errors
If your API key is missing or invalid, you'll receive a 401 Unauthorized response:
{
"success": false,
"error": "Missing or invalid API key"
}
If you use a public key on a private-only endpoint, you'll receive a 403 Forbidden response:
{
"success": false,
"error": "This endpoint requires a private API key"
}
Security Best Practices
- Never expose private keys in client-side code, public repositories, or browser requests
- Rotate keys regularly — delete and recreate keys periodically
- Use public keys for any client-side or browser-based integrations
- Use private keys only in secure server-side environments
- Store keys in environment variables, never hardcode them