Quizzes
Create a quiz
Creates a quiz from a JSON definition. The quiz is live immediately.
Omit the Authorization header entirely to create a sandbox quiz (no account needed): it expires in 72 hours, caps at 10 responses, and returns a claim_url to keep it. A wrong or revoked key still returns 401 — sandbox only triggers when no Authorization header is present.
post/quizzes
Request
- Base URL: https://quizgen.dev/api/v1
- URL: https://quizgen.dev/api/v1/quizzes
- Auth: one of:
- HTTP bearer
- none
Headers
X-Creator-Emailstring email
Sandbox only. Email the claim link to this address immediately, plus one reminder before expiry. Never send an address the user didn't give you (422 invalid_creator_email).
Idempotency-Keystring
Safely retry a create without duplicating the quiz.
Request body
Response
Quiz created and live.
Example response
{
"id": "qz_1f6b...",
"slug": "x7km2p",
"url": "https://quizgen.dev/q/x7km2p",
"status": "live",
"definition_version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.