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

# Create Quiz Question API

> Create a new question for an existing quiz from a provided content.



## OpenAPI

````yaml POST /question/create
openapi: 3.0.1
info:
  license:
    name: MIT
  title: QuizRise API
  version: 1.0.0
  description: API for managing quizzes, questions, and related operations
servers:
  - url: https://app.quizrise.com/api/v1
security:
  - bearerAuth: []
paths:
  /question/create:
    post:
      tags:
        - Questions
      summary: Create new questions
      description: Creates new questions based on provided content or URL for a quiz
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - quizId
                - type
                - count
                - source
              properties:
                quizId:
                  type: string
                  description: ID of the quiz
                type:
                  type: string
                  enum:
                    - TRUEFALSE
                    - FILLBLANK
                    - MULTIPLECHOICE
                  description: Type of questions to generate
                difficulty:
                  type: string
                  enum:
                    - EASY
                    - MEDIUM
                    - HARD
                  description: Difficulty level of questions
                count:
                  type: integer
                  minimum: 1
                  description: Number of questions to generate
                content:
                  type: string
                  description: Content to generate questions from
                language:
                  type: string
                  description: Language of the content
                source:
                  type: string
                  enum:
                    - TEXT
                    - PDF
                    - WEBSITE
                    - IMAGE
                  description: Source type of the content
                url:
                  type: string
                  description: URL to fetch content from
      responses:
        '200':
          description: Questions creation initiated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  quizId:
                    type: string
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Question not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unknown error occurred
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````