> ## Documentation Index
> Fetch the complete documentation index at: https://docs.intelliq.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate a quiz

> Generate a quiz based on the given topic and description



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi get /api/v1/quizzes/generate
openapi: 3.1.0
info:
  title: IntelliQ API
  description: API for IntelliQ
  version: 2.0.0
servers:
  - url: http://localhost:8787
    description: Local server
  - url: https://app.intelliq.dev
    description: Production server
security: []
paths:
  /api/v1/quizzes/generate:
    get:
      tags:
        - Quizzes
      summary: Generate a quiz
      description: Generate a quiz based on the given topic and description
      operationId: getApiV1QuizzesGenerate
      parameters:
        - in: query
          name: quizTopic
          schema:
            type: string
            minLength: 1
          required: true
        - in: query
          name: quizDescription
          schema:
            type: string
            minLength: 1
          required: false
        - in: query
          name: numberOfQuestions
          schema:
            type: integer
            minimum: 1
            maximum: 10
          required: true
        - in: query
          name: quizTags
          schema:
            type: array
            items:
              type: string
          required: false
        - in: query
          name: language
          schema:
            type: string
            enum:
              - en
              - de
              - fr
              - es
              - it
              - ro
              - sr
              - tl
              - pl
            default: en
          required: false
        - in: query
          name: quizType
          schema:
            type: string
            enum:
              - singleplayer
              - multiplayer
              - document
              - random
          required: true
      responses:
        '200':
          description: Quiz generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  quiz:
                    type: object
                    properties:
                      quizTitle:
                        type: string
                      questions:
                        type: array
                        items:
                          type: object
                          properties:
                            questionTitle:
                              type: string
                            text:
                              type: string
                            options:
                              type: array
                              items:
                                type: string
                            correctAnswer:
                              type: string
                          required:
                            - questionTitle
                            - text
                            - options
                            - correctAnswer
                    required:
                      - quizTitle
                      - questions
                required:
                  - quiz
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````