Skip to main content
v1 docs

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: authenticate via org portal, then proxy /api/org/{slug}/… from your backend
  • API keys: send Authorization: Bearer <your-key> when your tenant has API access enabled

Related in this guide