Skip to main content

Quickstart

Getting Started

First request, environments, credentials, and recommended integration patterns.

The fastest path is: load bootstrap → confirm paid session → start quiz → submit completion with attempt token. Practice quizzes on the intro page work without payment.

const BASE = "https://www.iqearners.online";

// 1) Session + platform context (browser: credentials include cookies)
const boot = await fetch(`${BASE}/api/bootstrap`, {
  credentials: "include",
  cache: "no-store",
});
const session = await boot.json();

// 2) Newest published daily quiz metadata (public)
const newest = await fetch(`${BASE}/api/quizzes/newest`);
const quizMeta = await newest.json();
Server integrations should run from your backend. Never embed API keys or admin credentials in mobile or web client bundles.
  • Browser apps: credentials: "include" on fetch
  • Org server jobs: org login → store httpOnly cookie → proxy /api/org/{slug}/…
  • Bearer keys: Authorization: Bearer iq_live_… when your tenant has v1 access enabled

Related in this guide