Vidbyte

API documentation

POSTLivePOSTFocused route reference

POST /api/v1/quizzes/create

Create a Quiz

Create a new quiz with the public v1 request contract. This page covers the request fields, the supported steering values, and the exact response you can parse in production.

Manage keys
Stable public contract

Public endpoint

/api/v1/quizzes/create

Maps to

/api/sandbox/create_quiz

What to know first

The route is live today. The docs use the flat v1 contract language even though the service layer still normalizes into richer nested quiz attributes internally.

Method

POST

Send this operation to /api/v1/quizzes/create on the versioned public host.

Authentication

API key

API key via Authorization: Bearer or x-api-key

Resource model

Direct

The route is live today. The docs use the flat v1 contract language even though the service layer still normalizes into richer nested quiz attributes internally.

Highlights

What this operation does

Generate a quiz resource from a topic, source content, and quiz controls.
The route is live today. The docs use the flat v1 contract language even though the service layer still normalizes into richer nested quiz attributes internally.
Store the encrypted `id` returned by create and list routes exactly as returned if you need to fetch the resource again later.

Request details

Request parameters

Request parameters

These are the parameters that shape /api/v1/quizzes/create. Path parameters and request-body fields are shown together because the docs stay focused on the public route contract.

titlestringOptional

Optional title for the generated quiz resource.

promptstringRequired

Primary user request, learning goal, or topic for generation.

contentstringOptional

Optional raw source material to generate from when you want to bypass a separate upload step.

quiz_typestringOptional

Quiz type selector. Common values include `multiple_choice`, `true_false`, and `open_ended`.

Default

multiple_choice

View supported values3 options
multiple_choice

Return structured answer choices with one or more correct responses.

true_false

Return binary true/false questions with explanations.

open_ended

Return free-response questions with answer guidance and scoring structure.

reasoning_lensstringOptional

Optional reasoning lens selector. Exact accepted values come from the quiz service/validator layer.

View supported values10 options
first_principles_thinking

Rebuild the idea from fundamental truths instead of pattern matching.

deductive_reasoning

Derive conclusions from stated rules or premises.

inductive_reasoning

Generalize from examples and observations.

analogical_reasoning

Map structure from one situation onto another.

systems_thinking

Reason about interactions across a larger system.

second_order_thinking

Consider downstream effects instead of the first visible outcome.

constraint_based_reasoning

Work from the limiting factors and boundaries in the problem.

bayesian_reasoning

Update beliefs as new evidence arrives.

inversion

Solve by flipping the frame and asking what would make the opposite happen.

opportunity_cost_analysis

Evaluate tradeoffs and what each choice gives up.

difficultystringOptional

Optional quiz difficulty steering. Use values accepted by the quiz validator layer.

lengthstringOptional

Optional quiz length control such as micro, short, medium, long, or comprehensive.

View supported values5 options
micro

Generate 3 questions for a very fast knowledge check.

short

Generate 5 questions for a compact assessment.

medium

Generate 10 questions for balanced coverage.

long

Generate 15 questions for broader assessment depth.

comprehensive

Generate 25 questions for the heaviest quiz format.

assessment_intentstringOptional

Optional assessment intent such as formative, summative, diagnostic, or predictive.

View supported values4 options
diagnostic

Identify knowledge gaps and misconceptions.

formative

Support learning while the learner is still building understanding.

summative

Evaluate what the learner has mastered.

predictive

Estimate readiness for harder material or downstream performance.

explanation_lengthstringOptional

Optional explanation depth selector.

View supported values3 options
concise

Keep answer explanations to about one sentence.

standard

Use a normal 2-3 sentence explanation depth.

descriptive

Use a fuller 1-2 paragraph explanation style.

question_stylestringOptional

Optional question style / directness control.

View supported values4 options
direct

Ask plainly without extra framing.

scenario_based

Wrap the question in a realistic situation or problem.

case_study

Use a larger case that requires careful reading first.

multi_step

Force the learner through several reasoning moves before answering.

content_focusstringOptional

Optional control for how tightly the quiz should stay tied to source material.

View supported values5 options
verbatim

Stay extremely close to the source material.

paraphrased

Reword the source while preserving the same meaning.

inferred

Test what is implied rather than explicitly stated.

applied_new_context

Transfer source concepts into a new situation.

synthesized

Combine ideas from multiple parts of the content.

contextobject[]Optional

Optional typed context objects. Use this field to send source text, documents, prior Vidbyte resources, or content you imported from a connected provider into the request.

View supported values9 options
text

Inline plain text you want the route to read directly.

doc

A document payload or extracted document text normalized into the context layer.

pdf

A PDF payload or extracted PDF text normalized into the context layer.

quickhit

A previously generated QuickHit identified by its encrypted public id.

roadmap

A previously generated roadmap identified by its encrypted public id.

quiz

A previously generated quiz identified by its encrypted public id.

exam

A previously generated exam identified by its encrypted public id.

project

A previously generated project identified by its encrypted public id.

vidbyte_project

An alias for project-backed context in the current middleware.

Response shape

What the response contract guarantees

Public responses use the shared envelope: `success`, `id`, `message`, `data`, `token_stats`, `pricing`, and `error`.
The `id` field is always a public/encrypted identifier boundary, never a raw MongoDB `_id`.
Quiz create returns a sanitized quiz resource with `quiz_data`, quiz type, public id, and usage metadata.