Embed & API
Everything here is live in this deployment (https://spin.igamingcareer.com). Swap in your custom domain (e.g. spin.igamingcareer.com) once connected.
Copy-paste iframe
No SDK, login or third-party cookies required.
Embed modes
default— full branded player.compact— smaller wheel, no subtitle or footer (sidebars, ≥320px).fullscreen— fills the viewport height.transparent— no background; inherits the host page.
Flexible URL options
These options affect only this iframe; they never edit the saved event. Separate multiple tags with commas. Text and colors must be URL-encoded when necessary. Invalid values fall back safely.
| Parameter | Values / behavior |
|---|---|
| tags | Comma-separated tags; questions matching any tag are included, e.g. networking,icebreaker. |
| category | Category ID or exact label (case-insensitive). Can be combined with tags. |
| slices | Visible wheel slices, clamped to 6–12. The larger matching question pool stays available. |
| bonus | off disables gifts in this embed. on preserves the organizer's setting; it cannot enable a disabled campaign. |
| prizeName | Display-only gift label, up to 60 characters. Prize odds, inventory and claims remain server-controlled. |
| title | Event/header and intro title, up to 60 characters. |
| spinBtn | Center spin button label, up to 14 characters. |
| cta | Kicker above the intro title, e.g. Ready to connect?. |
| endingCta | Text below the question. Uses the event's saved ending URL when one exists; otherwise displays as text. |
| hideHeader | 1 hides the event title/logo. Accessibility and playback controls remain available. |
| hideFooter | 1 hides sponsors, credit and the privacy link. |
| hideSound | 1 hides the sound toggle. |
| theme | purple, neon, gold, minimal or teal (full preset IDs also work). |
| accent | Hex accent color such as %23C9F64A. Other CSS is not accepted. |
| sound | 1 enables sound for interactions; 0 starts muted. Browsers still require a tap before audio plays. |
| spinDuration | Spin duration in seconds, clamped to 2.5–4. |
| autoReset | Seconds before returning to the next guest, clamped to 5–600; 0 disables result auto-reset. Gift celebrations are never cut short. |
If the filters match no questions, the embed shows a clear empty state instead of spinning the unfiltered pool.
Server headers (important)
/embed/:slug responds with Content-Security-Policy: frame-ancestors 'self' <allowed origins> built from the event's allowlist (or * if none). Framing permission is enforced by HTTP headers and cannot be bypassed or granted from frontend code. If your hosting/CDN adds X-Frame-Options, remove it for /embed/* or embedding will be blocked. Verify on your deployed domain with a real cross-origin page.
postMessage protocol
Messages are objects { type, version: 1, eventSlug, payload? }. Outbound messages are posted only to allowlisted origins (or * when the allowlist is empty — payloads contain only public question text). Inbound messages are accepted only from the parent window with an exact allowlisted origin.
| type | direction | payload |
|---|---|---|
| igc-spin:ready | → parent | { segments } |
| igc-spin:resize | → parent | { height } |
| igc-spin:started | → parent | { manual } |
| igc-spin:completed | → parent | { category, question, questionId, manual } |
| igc-spin:question-shown | → parent | { question, questionId } |
| igc-spin:reset | ↔ both | — (parent may send to reset for next guest) |
| igc-spin:error | → parent | { message } |
Optional JS SDK
Next.js client component
REST API v1
Base: https://spin.igamingcareer.com/api/public/v1. Management endpoints need Authorization: Bearer igc_live_… (create keys in Dashboard → Integrations; only a SHA-256 hash is stored). Rate limited per key/IP (best-effort per edge instance).
- GET /events/:slug — public config of a published event
- POST /events/:slug/track — anonymous batched activity (used by the player)
- GET /manage/events — scope events:read
- GET /manage/events/:id/questions — scope questions:read
- POST /manage/events/:id/questions — scope questions:write
- GET /manage/events/:id/metrics — scope metrics:read (aggregates; sessions ≠ people)
Webhooks
Events: spin.completed, question.shown, event.viewed — sent only when analytics are enabled for the event. Each POST carries IGC-Signature: t=<unix>,v1=<hex> where v1 = HMAC-SHA256(secret, "t.body"), plus IGC-Delivery-Id for dedupe. Up to 3 attempts with backoff (0 s, 0.8 s, 2.5 s); then the delivery is marked dead and visible in the dashboard. Reject timestamps older than 5 minutes.
Django / DRF / Wagtail
Local embed test
Open /embed-test.html. For a true cross-origin test, serve the public/ folder on another port (npx serve public -l 3000), open http://localhost:3000/embed-test.html?origin=https://spin.igamingcareer.com, and add http://localhost:3000 to the event's allowed origins.
Roadmap (not yet implemented)
- Native connectors: Zapier/Make/n8n apps, HubSpot, Salesforce, Mailchimp, SendPulse (use webhooks today).
- Consent-aware GA4/GTM/PostHog dispatch (today: forward
igc-spin:completedyourself after consent). - Service-worker app-shell caching (today: loaded events keep working offline and the pack is cached per device).
- Team invitations by email, queued webhook retries beyond the inline window, billing plans.
Spin